1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/paletteg.h
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling and Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_PALETTEG_H__
13 #define __WX_PALETTEG_H__
16 #include "wx/object.h"
17 #include "wx/gdiobj.h"
18 #include "wx/gdicmn.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 class WXDLLIMPEXP_CORE wxPalette
;
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class WXDLLIMPEXP_CORE wxPalette
: public wxPaletteBase
32 DECLARE_DYNAMIC_CLASS(wxPalette
)
37 wxPalette( int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
39 bool operator == ( const wxPalette
& palette
) const;
40 bool operator != ( const wxPalette
& palette
) const;
41 virtual bool Ok() const;
43 bool Create( int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
44 int GetPixel( unsigned char red
, unsigned char green
, unsigned char blue
) const;
45 bool GetRGB( int pixel
, unsigned char *red
, unsigned char *green
, unsigned char *blue
) const;
50 #endif // __WX_PALETTEG_H__