]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/colour.h
No real changes, just make wxWindow::CanScroll() virtual.
[wxWidgets.git] / include / wx / gtk1 / colour.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/colour.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
01111366 5// Copyright: (c) 1998 Robert Roebling
65571936 6// Licence: wxWindows licence
c801d85f
KB
7/////////////////////////////////////////////////////////////////////////////
8
c801d85f
KB
9#ifndef __GTKCOLOURH__
10#define __GTKCOLOURH__
11
c801d85f
KB
12#include "wx/defs.h"
13#include "wx/object.h"
14#include "wx/string.h"
15#include "wx/gdiobj.h"
401ec7b6 16#include "wx/palette.h"
c801d85f
KB
17
18//-----------------------------------------------------------------------------
19// classes
20//-----------------------------------------------------------------------------
21
b5dbe15d
VS
22class WXDLLIMPEXP_FWD_CORE wxDC;
23class WXDLLIMPEXP_FWD_CORE wxPaintDC;
24class WXDLLIMPEXP_FWD_CORE wxBitmap;
25class WXDLLIMPEXP_FWD_CORE wxWindow;
c801d85f 26
b5dbe15d 27class WXDLLIMPEXP_FWD_CORE wxColour;
c801d85f
KB
28
29//-----------------------------------------------------------------------------
30// wxColour
31//-----------------------------------------------------------------------------
32
40989e46 33class WXDLLIMPEXP_CORE wxColour : public wxColourBase
c801d85f 34{
e4a81a2e 35public:
edc536d3
WS
36 // constructors
37 // ------------
40989e46 38 DEFINE_STD_WXCOLOUR_CONSTRUCTORS
401eb3de 39
d3c7fc99 40 virtual ~wxColour();
c89f5c02 41
e86d4e59 42 virtual bool FromString(const wxString& str);
40989e46 43
8f884a0d
VZ
44 bool operator==(const wxColour& col) const;
45 bool operator!=(const wxColour& col) const { return !(*this == col); }
c89f5c02 46
c89f5c02
RR
47 unsigned char Red() const;
48 unsigned char Green() const;
49 unsigned char Blue() const;
50
51
52 // Implementation part
53 void CalcPixel( GdkColormap *cmap );
54 int GetPixel() const;
55 GdkColor *GetColor() const;
c0ac1c32 56
68dda785 57protected:
c89f5c02 58 // ref counting code
8f884a0d
VZ
59 virtual wxGDIRefData *CreateGDIRefData() const;
60 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
aad6765c 61
aea95b1c
VZ
62 virtual void
63 InitRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
68dda785
VZ
64
65private:
c89f5c02 66 DECLARE_DYNAMIC_CLASS(wxColour)
c801d85f 67};
c0ac1c32 68
c801d85f 69#endif // __GTKCOLOURH__