]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/palette.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mgl/palette.h
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_PALETTE_H__
12 #define __WX_PALETTE_H__
15 #include "wx/object.h"
16 #include "wx/gdiobj.h"
17 #include "wx/gdicmn.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 class WXDLLEXPORT wxPalette
;
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class WXDLLEXPORT wxPalette
: public wxPaletteBase
32 DECLARE_DYNAMIC_CLASS(wxPalette
)
36 wxPalette(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
37 wxPalette(const wxPalette
& palette
);
39 wxPalette
& operator = (const wxPalette
& palette
);
40 bool operator == (const wxPalette
& palette
) const;
41 bool operator != (const wxPalette
& palette
) const;
42 virtual bool Ok() const;
44 bool Create(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
45 int GetPixel(unsigned char red
, unsigned char green
, unsigned char blue
) const;
46 bool GetRGB(int pixel
, unsigned char *red
, unsigned char *green
, unsigned char *blue
) const;
49 virtual int GetColoursCount() const;
51 palette_t
*GetMGLpalette_t() const;
54 #endif // __WX_PALETTE_H__