]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/palette.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/palette.h
3 // Purpose: wxPalette class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PALETTE_H_
13 #define _WX_PALETTE_H_
15 #include "wx/gdiobj.h"
17 #define M_PALETTEDATA ((wxPaletteRefData *)m_refData)
19 class WXDLLEXPORT wxPalette
: public wxPaletteBase
24 wxPalette(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
26 bool Create(int n
, const unsigned char *red
, const unsigned char *green
, const unsigned char *blue
);
28 int GetPixel(unsigned char red
, unsigned char green
, unsigned char blue
) const;
29 bool GetRGB(int pixel
, unsigned char *red
, unsigned char *green
, unsigned char *blue
) const;
31 virtual int GetColoursCount() const;
34 virtual wxGDIRefData
*CreateGDIRefData() const;
35 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
38 DECLARE_DYNAMIC_CLASS(wxPalette
)
41 #endif // _WX_PALETTE_H_