]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/paletteg.h
1 /////////////////////////////////////////////////////////////////////////////
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__
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "paletteg.h"
20 #include "wx/object.h"
21 #include "wx/gdiobj.h"
22 #include "wx/gdicmn.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 class wxPalette
: public wxPaletteBase
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
);
44 wxPalette
& operator = ( const wxPalette
& palette
);
45 bool operator == ( const wxPalette
& palette
);
46 bool operator != ( const wxPalette
& palette
);
47 virtual bool Ok() const;
49 bool Create( int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
50 int GetPixel( const unsigned char red
, const unsigned char green
, const unsigned char blue
) const;
51 bool GetRGB( int pixel
, unsigned char *red
, unsigned char *green
, unsigned char *blue
) const;
56 #endif // __WX_PALETTEG_H__