]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/colour.h
add size parameter to the generic wxFileDialog ctor
[wxWidgets.git] / include / wx / gtk / colour.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/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 _WX_GTK_COLOUR_H_
11 #define _WX_GTK_COLOUR_H_
12
13 //-----------------------------------------------------------------------------
14 // wxColour
15 //-----------------------------------------------------------------------------
16
17 class WXDLLIMPEXP_CORE wxColour : public wxColourBase
18 {
19 public:
20 // constructors
21 // ------------
22 DEFINE_STD_WXCOLOUR_CONSTRUCTORS
23 wxColour(const GdkColor& gdkColor);
24
25 virtual ~wxColour();
26
27 bool operator==(const wxColour& col) const;
28 bool operator!=(const wxColour& col) const { return !(*this == col); }
29
30 unsigned char Red() const;
31 unsigned char Green() const;
32 unsigned char Blue() const;
33 unsigned char Alpha() const;
34
35 // Implementation part
36 void CalcPixel( GdkColormap *cmap );
37 int GetPixel() const;
38 const GdkColor *GetColor() const;
39
40 protected:
41 virtual void
42 InitRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
43
44 virtual bool FromString(const wxString& str);
45
46 private:
47 DECLARE_DYNAMIC_CLASS(wxColour)
48 };
49
50 #endif // _WX_GTK_COLOUR_H_