~ubuntu-dev/wxwidgets2.6/upstream-debian

« back to all changes in this revision

Viewing changes to wxPython/src/_palette.i

  • Committer: Daniel T Chen
  • Date: 2006-06-26 10:15:11 UTC
  • Revision ID: crimsun@ubuntu.com-20060626101511-a4436cec4c6d9b35
ImportĀ DebianĀ 2.6.3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////////////////////
 
2
// Name:        _wxPalette.i
 
3
// Purpose:     SWIG interface defs for wxPalette
 
4
//
 
5
// Author:      Robin Dunn
 
6
//
 
7
// Created:     7-July-1997
 
8
// RCS-ID:      $Id: _palette.i,v 1.6 2004/12/13 23:00:57 RD Exp $
 
9
// Copyright:   (c) 2003 by Total Control Software
 
10
// Licence:     wxWindows license
 
11
/////////////////////////////////////////////////////////////////////////////
 
12
 
 
13
// Not a %module
 
14
 
 
15
 
 
16
//---------------------------------------------------------------------------
 
17
 
 
18
// TODO: Create a typemap for the ctor!
 
19
 
 
20
//---------------------------------------------------------------------------
 
21
 
 
22
MustHaveApp(wxPalette);
 
23
 
 
24
class wxPalette : public wxGDIObject {
 
25
public:
 
26
    wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
 
27
    ~wxPalette();
 
28
 
 
29
    int GetPixel(byte red, byte green, byte blue);
 
30
    
 
31
    DocDeclA(
 
32
        bool, GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT),
 
33
        "GetRGB(self, int pixel) -> (R,G,B)");
 
34
 
 
35
    int GetColoursCount() const;
 
36
    bool Ok();
 
37
 
 
38
    %pythoncode { def __nonzero__(self): return self.Ok() }
 
39
};
 
40
 
 
41
 
 
42
 
 
43
//---------------------------------------------------------------------------