1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/paletteg.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling and Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_PALETTEG_H__
12 #define __WX_PALETTEG_H__
15 #include "wx/object.h"
16 #include "wx/gdiobj.h"
17 #include "wx/gdicmn.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 class WXDLLIMPEXP_FWD_CORE wxPalette
;
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
29 class WXDLLIMPEXP_CORE wxPalette
: public wxPaletteBase
33 wxPalette( int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
36 bool Create( int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
37 int GetPixel( unsigned char red
, unsigned char green
, unsigned char blue
) const;
38 bool GetRGB( int pixel
, unsigned char *red
, unsigned char *green
, unsigned char *blue
) const;
40 virtual int GetColoursCount() const;
43 virtual wxGDIRefData
*CreateGDIRefData() const;
44 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
47 DECLARE_DYNAMIC_CLASS(wxPalette
)
50 #endif // __WX_PALETTEG_H__