]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/palette.h
changed the notebook control to use AddPage() interface (Julian's version
[wxWidgets.git] / include / wx / gtk1 / palette.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: palette.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifndef __GTKPALETTEH__
13 #define __GTKPALETTEH__
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/object.h"
21 #include "wx/gdiobj.h"
22 #include "wx/gdicmn.h"
23
24 //-----------------------------------------------------------------------------
25 // classes
26 //-----------------------------------------------------------------------------
27
28 class wxPalette;
29
30 //-----------------------------------------------------------------------------
31 // wxPalette
32 //-----------------------------------------------------------------------------
33
34 class wxPalette: public wxGDIObject
35 {
36 DECLARE_DYNAMIC_CLASS(wxPalette)
37
38 public:
39
40 wxPalette(void);
41 wxPalette( const int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue );
42 wxPalette( const wxPalette& palette );
43 wxPalette( const wxPalette* palette );
44 ~wxPalette(void);
45 wxPalette& operator = ( const wxPalette& palette );
46 bool operator == ( const wxPalette& palette );
47 bool operator != ( const wxPalette& palette );
48 bool Ok(void) const;
49
50 bool Create( const 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( const int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const;
53
54 // no data
55 };
56
57 #define wxColorMap wxPalette
58 #define wxColourMap wxPalette
59
60 #endif // __GTKPALETTEH__