]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/colour.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __GTKCOLOURH__
13 #define __GTKCOLOURH__
20 #include "wx/object.h"
21 #include "wx/string.h"
22 #include "wx/gdiobj.h"
23 #include "wx/palette.h"
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class wxColour
: public wxGDIObject
42 DECLARE_DYNAMIC_CLASS(wxColour
)
47 wxColour( char red
, char green
, char blue
);
48 wxColour( const wxString
&colourName
);
49 wxColour( const wxColour
& col
);
50 wxColour( const wxColour
* col
);
52 wxColour
& operator = ( const wxColour
& col
);
53 wxColour
& operator = ( const wxString
& colourName
);
54 bool operator == ( const wxColour
& col
);
55 bool operator != ( const wxColour
& col
);
56 void Set( const unsigned char red
, const unsigned char green
, const unsigned char blue
);
57 unsigned char Red(void) const;
58 unsigned char Green(void) const;
59 unsigned char Blue(void) const;
70 void CalcPixel( GdkColormap
*cmap
);
72 GdkColor
*GetColor(void);
77 #endif // __GTKCOLOURH__