]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/_palette.i
Add a set for wxMac too
[wxWidgets.git] / wxPython / src / _palette.i
... / ...
CommitLineData
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
22class wxPalette : public wxGDIObject {
23public:
24 wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
25 ~wxPalette();
26
27 int GetPixel(byte red, byte green, byte blue);
28
29 DocDeclA(
30 bool, GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT),
31 "GetRGB(int pixel) -> (R,G,B)");
32
33 bool Ok();
34
35 %pythoncode { def __nonzero__(self): return self.Ok() }
36};
37
38
39
40//---------------------------------------------------------------------------