]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/palette.h
removing outdated code
[wxWidgets.git] / include / wx / msw / palette.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/msw/palette.h
3// Purpose: wxPalette class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PALETTE_H_
13#define _WX_PALETTE_H_
14
15#include "wx/gdiobj.h"
16
17class WXDLLIMPEXP_CORE wxPalette : public wxPaletteBase
18{
19public:
20 wxPalette() { }
21 wxPalette(int n,
22 const unsigned char *red, const unsigned char *green, const unsigned char *blue)
23 {
24 Create(n, red, green, blue);
25 }
26
27 bool Create(int n,
28 const unsigned char *red, const unsigned char *green, const unsigned char *blue);
29
30 virtual int GetColoursCount() const;
31
32 int
33 GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
34
35 bool
36 GetRGB(int pixel,
37 unsigned char *red, unsigned char *green, unsigned char *blue) const;
38
39 // implemetation
40 WXHPALETTE GetHPALETTE() const;
41 void SetHPALETTE(WXHPALETTE pal);
42
43protected:
44 virtual wxGDIRefData *CreateGDIRefData() const;
45 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
46
47private:
48 DECLARE_DYNAMIC_CLASS(wxPalette)
49};
50
51#endif // _WX_PALETTE_H_