1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/palette.h
3 // Purpose: wxPalette class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PALETTE_H_
12 #define _WX_PALETTE_H_
14 #include "wx/gdiobj.h"
16 class WXDLLIMPEXP_CORE wxPalette
: public wxPaletteBase
21 const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
)
23 Create(n
, red
, green
, blue
);
27 const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
29 virtual int GetColoursCount() const;
32 GetPixel(unsigned char red
, unsigned char green
, unsigned char blue
) const;
36 unsigned char *red
, unsigned char *green
, unsigned char *blue
) const;
39 WXHPALETTE
GetHPALETTE() const;
40 void SetHPALETTE(WXHPALETTE pal
);
43 virtual wxGDIRefData
*CreateGDIRefData() const;
44 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
47 DECLARE_DYNAMIC_CLASS(wxPalette
)
50 #endif // _WX_PALETTE_H_