]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/palette.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/palette.h
3 // Purpose: wxPalette class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PALETTE_H_
13 #define _WX_PALETTE_H_
15 #include "wx/gdiobj.h"
17 class WXDLLEXPORT wxPalette
: public wxPaletteBase
22 unsigned char *red
, unsigned char *green
, unsigned char *blue
)
24 Create(n
, red
, green
, blue
);
28 unsigned char *red
, unsigned char *green
, unsigned char *blue
);
30 virtual int GetColoursCount() const;
33 GetPixel(unsigned char red
, unsigned char green
, unsigned char blue
) const;
37 unsigned char *red
, unsigned char *green
, unsigned char *blue
) const;
40 WXHPALETTE
GetHPALETTE() const;
41 void SetHPALETTE(WXHPALETTE pal
);
44 virtual wxGDIRefData
*CreateGDIRefData() const;
45 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
48 DECLARE_DYNAMIC_CLASS(wxPalette
)
51 #endif // _WX_PALETTE_H_