]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/palette.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_PALETTE_H__
13 #define __WX_PALETTE_H__
16 #pragma interface "palette.h"
20 #include "wx/object.h"
21 #include "wx/gdiobj.h"
22 #include "wx/gdicmn.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 class WXDLLEXPORT wxPalette
;
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 class WXDLLEXPORT wxPalette
: public wxGDIObject
37 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
) const;
46 bool operator != (const wxPalette
& palette
) 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;
54 int GetColoursCount() const;
55 // FIXME_MGL -- make this method standard part of wx API
56 // FIXME_MGL -- create wxXXXBase classes for all GDI stuff (Vadim wants that)
58 palette_t
*GetMGLpalette_t() const;
61 #define wxColorMap wxPalette
62 #define wxColourMap wxPalette
64 #endif // __WX_PALETTE_H__