1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/colour.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_COLOUR_H_
11 #define _WX_GTK_COLOUR_H_
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxColour
: public wxColourBase
22 DEFINE_STD_WXCOLOUR_CONSTRUCTORS
23 wxColour(const GdkColor
& gdkColor
);
27 bool operator==(const wxColour
& col
) const;
28 bool operator!=(const wxColour
& col
) const { return !(*this == col
); }
30 unsigned char Red() const;
31 unsigned char Green() const;
32 unsigned char Blue() const;
33 unsigned char Alpha() const;
35 // Implementation part
36 void CalcPixel( GdkColormap
*cmap
);
38 const GdkColor
*GetColor() const;
42 InitRGBA(unsigned char r
, unsigned char g
, unsigned char b
, unsigned char a
);
44 virtual bool FromString(const wxString
& str
);
47 DECLARE_DYNAMIC_CLASS(wxColour
)
50 #endif // _WX_GTK_COLOUR_H_