]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/palette.h
Define SQLUINTEGER
[wxWidgets.git] / include / wx / mgl / palette.h
CommitLineData
32b8ec41
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: palette.h
3// Purpose:
4// Author: Vaclav Slavik
5// Created: 2001/03/11
6// Id: $Id$
52750c2e 7// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
65571936 8// Licence: wxWindows licence
32b8ec41
VZ
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __WX_PALETTE_H__
13#define __WX_PALETTE_H__
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
32b8ec41
VZ
16#pragma interface "palette.h"
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/gdiobj.h"
22#include "wx/gdicmn.h"
23
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class WXDLLEXPORT wxPalette;
29struct palette_t;
30
31//-----------------------------------------------------------------------------
32// wxPalette
33//-----------------------------------------------------------------------------
34
917be7ed 35class WXDLLEXPORT wxPalette: public wxPaletteBase
32b8ec41
VZ
36{
37 DECLARE_DYNAMIC_CLASS(wxPalette)
38
39public:
40 wxPalette();
41 wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
42 wxPalette(const wxPalette& palette);
43 ~wxPalette();
44 wxPalette& operator = (const wxPalette& palette);
45 bool operator == (const wxPalette& palette) const;
46 bool operator != (const wxPalette& palette) const;
917be7ed 47 virtual bool Ok() const;
32b8ec41
VZ
48
49 bool Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
50 int GetPixel(const unsigned char red, const unsigned char green, const unsigned char blue) const;
51 bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
52
53 // implementation
917be7ed
WS
54 virtual int GetColoursCount() const;
55
32b8ec41
VZ
56 palette_t *GetMGLpalette_t() const;
57};
58
32b8ec41 59#endif // __WX_PALETTE_H__