]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/paletteg.h
Use wxGetTranslation() instead of _() in the public headers.
[wxWidgets.git] / include / wx / generic / paletteg.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
88ef3a57 2// Name: wx/generic/paletteg.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
371a5b4e 6// Copyright: (c) 1998 Robert Roebling and Julian Smart
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
10
ce113d5f
VS
11#ifndef __WX_PALETTEG_H__
12#define __WX_PALETTEG_H__
c801d85f 13
c801d85f
KB
14#include "wx/defs.h"
15#include "wx/object.h"
16#include "wx/gdiobj.h"
17#include "wx/gdicmn.h"
18
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
b5dbe15d 23class WXDLLIMPEXP_FWD_CORE wxPalette;
c801d85f
KB
24
25//-----------------------------------------------------------------------------
26// wxPalette
27//-----------------------------------------------------------------------------
28
20123d49 29class WXDLLIMPEXP_CORE wxPalette: public wxPaletteBase
c801d85f 30{
d72f87f6 31public:
8bbe427f 32 wxPalette();
debe6624 33 wxPalette( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue );
d3c7fc99 34 virtual ~wxPalette();
8bbe427f 35
debe6624 36 bool Create( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
88ef3a57 37 int GetPixel( unsigned char red, unsigned char green, unsigned char blue ) const;
debe6624
JS
38 bool GetRGB( int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const;
39
5cfbc8d0 40 virtual int GetColoursCount() const;
d72f87f6 41
8f884a0d
VZ
42protected:
43 virtual wxGDIRefData *CreateGDIRefData() const;
44 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
45
d72f87f6
RR
46private:
47 DECLARE_DYNAMIC_CLASS(wxPalette)
c801d85f
KB
48};
49
ce113d5f 50#endif // __WX_PALETTEG_H__