Files
wxWidgets/wxPython/src/_palette.i
Robin Dunn ab1f7d2aa9 All the Window and GDI (pen, bitmap, etc.) classes and also many
toplevel functions will now check that a wx.App object has already
been created and will raise a wx.PyNoAppError exception if not.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-01 21:38:05 +00:00

43 lines
1.1 KiB
OpenEdge ABL

/////////////////////////////////////////////////////////////////////////////
// Name: _wxPalette.i
// Purpose: SWIG interface defs for wxPalette
//
// Author: Robin Dunn
//
// Created: 7-July-1997
// RCS-ID: $Id$
// Copyright: (c) 2003 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// Not a %module
//---------------------------------------------------------------------------
// TODO: Create a typemap for the ctor!
//---------------------------------------------------------------------------
MustHaveApp(wxPalette);
class wxPalette : public wxGDIObject {
public:
wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
~wxPalette();
int GetPixel(byte red, byte green, byte blue);
DocDeclA(
bool, GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT),
"GetRGB(int pixel) -> (R,G,B)");
bool Ok();
%pythoncode { def __nonzero__(self): return self.Ok() }
};
//---------------------------------------------------------------------------