1 /////////////////////////////////////////////////////////////////////////////
 
   3 // Purpose:     SWIG interface defs for wxPalette
 
   7 // Created:     7-July-1997
 
   9 // Copyright:   (c) 2003 by Total Control Software
 
  10 // Licence:     wxWindows license
 
  11 /////////////////////////////////////////////////////////////////////////////
 
  16 //---------------------------------------------------------------------------
 
  18 // TODO: Create a typemap for the ctor!
 
  20 //---------------------------------------------------------------------------
 
  22 MustHaveApp(wxPalette);
 
  24 class wxPalette : public wxGDIObject {
 
  26     wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
 
  29     int GetPixel(byte red, byte green, byte blue);
 
  32         bool, GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT),
 
  33         "GetRGB(int pixel) -> (R,G,B)");
 
  37     %pythoncode { def __nonzero__(self): return self.Ok() }
 
  42 //---------------------------------------------------------------------------