]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mgl/palette.h
Removed extraneous semicolon (partly fixes #10456).
[wxWidgets.git] / include / wx / mgl / palette.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/mgl/palette.h
3// Purpose:
4// Author: Vaclav Slavik
5// Created: 2001/03/11
6// Id: $Id$
7// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef __WX_PALETTE_H__
12#define __WX_PALETTE_H__
13
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
23class WXDLLIMPEXP_FWD_CORE wxPalette;
24struct palette_t;
25
26//-----------------------------------------------------------------------------
27// wxPalette
28//-----------------------------------------------------------------------------
29
30class WXDLLIMPEXP_CORE wxPalette : public wxPaletteBase
31{
32public:
33 wxPalette();
34 wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
35 virtual ~wxPalette();
36
37 bool Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
38 int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
39 bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
40
41 // implementation
42 virtual int GetColoursCount() const;
43
44 palette_t *GetMGLpalette_t() const;
45
46 DECLARE_DYNAMIC_CLASS(wxPalette)
47};
48
49#endif // __WX_PALETTE_H__