]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_palette.i
Add Get/SetLogicalFunction
[wxWidgets.git] / wxPython / src / _palette.i
CommitLineData
d14a1e28
RD
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$
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
ab1f7d2a
RD
22MustHaveApp(wxPalette);
23
d14a1e28
RD
24class wxPalette : public wxGDIObject {
25public:
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);
322913ce
RD
30
31 DocDeclA(
32 bool, GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT),
7aada1e0 33 "GetRGB(self, int pixel) -> (R,G,B)");
322913ce 34
cf4dfd14 35 int GetColoursCount() const;
6c2dd16f
RD
36 bool IsOk();
37 %pythoncode { Ok = IsOk }
d14a1e28 38
6c2dd16f 39 %pythoncode { def __nonzero__(self): return self.IsOk() }
7012bb9f
RD
40
41 %property(ColoursCount, GetColoursCount, doc="See `GetColoursCount`");
d14a1e28
RD
42};
43
44
45
46//---------------------------------------------------------------------------