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