1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/palette.h
3 // Purpose: wxPalette class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PALETTE_H_
12 #define _WX_PALETTE_H_
14 #include "wx/gdiobj.h"
16 #define M_PALETTEDATA ((wxPaletteRefData *)m_refData)
18 class WXDLLIMPEXP_CORE wxPalette
: public wxPaletteBase
23 wxPalette(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
25 bool Create(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
27 int GetPixel(unsigned char red
, unsigned char green
, unsigned char blue
) const;
28 bool GetRGB(int pixel
, unsigned char *red
, unsigned char *green
, unsigned char *blue
) const;
30 virtual int GetColoursCount() const;
33 virtual wxGDIRefData
*CreateGDIRefData() const;
34 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
37 DECLARE_DYNAMIC_CLASS(wxPalette
)
40 #endif // _WX_PALETTE_H_