]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/palette.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __GTKPALETTEH__
13 #define __GTKPALETTEH__
20 #include "wx/object.h"
21 #include "wx/gdiobj.h"
22 #include "wx/gdicmn.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 class wxPalette
: public wxGDIObject
36 DECLARE_DYNAMIC_CLASS(wxPalette
)
41 wxPalette( int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
42 wxPalette( const wxPalette
& palette
);
43 wxPalette( const wxPalette
* palette
);
45 wxPalette
& operator = ( const wxPalette
& palette
);
46 bool operator == ( const wxPalette
& palette
);
47 bool operator != ( const wxPalette
& palette
);
50 bool Create( int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
51 int GetPixel( const unsigned char red
, const unsigned char green
, const unsigned char blue
) const;
52 bool GetRGB( int pixel
, unsigned char *red
, unsigned char *green
, unsigned char *blue
) const;
57 #define wxColorMap wxPalette
58 #define wxColourMap wxPalette
60 #endif // __GTKPALETTEH__