1
/////////////////////////////////////////////////////////////////////////////
2
// Name: wx/msw/palette.h
3
// Purpose: wxPalette class
4
// Author: Julian Smart
7
// RCS-ID: $Id: palette.h 70040 2011-12-17 23:52:47Z VZ $
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 WXDLLIMPEXP_CORE wxPalette : public wxPaletteBase
22
const unsigned char *red, const unsigned char *green, const unsigned char *blue)
24
Create(n, red, green, blue);
28
const unsigned char *red, const unsigned char *green, const 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_