]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/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"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
39 class wxColour
: public wxGDIObject
41 DECLARE_DYNAMIC_CLASS(wxColour
)
46 wxColour( char red
, char green
, char blue
);
47 wxColour( const wxString
&colourName
);
48 wxColour( const wxColour
& col
);
49 wxColour( const wxColour
* col
);
51 wxColour
& operator = ( const wxColour
& col
);
52 wxColour
& operator = ( const wxString
& colourName
);
53 bool operator == ( const wxColour
& col
);
54 bool operator != ( const wxColour
& col
);
55 void Set( const unsigned char red
, const unsigned char green
, const unsigned char blue
);
56 unsigned char Red(void) const;
57 unsigned char Green(void) const;
58 unsigned char Blue(void) const;
69 void CalcPixel( GdkColormap
*cmap
);
71 GdkColor
*GetColor(void);
76 #endif // __GTKCOLOURH__