]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/colour.h
an extra backslash removed
[wxWidgets.git] / include / wx / gtk1 / colour.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: colour.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifndef __GTKCOLOURH__
13 #define __GTKCOLOURH__
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/object.h"
21 #include "wx/string.h"
22 #include "wx/gdiobj.h"
23 #include "wx/palette.h"
24
25 //-----------------------------------------------------------------------------
26 // classes
27 //-----------------------------------------------------------------------------
28
29 class wxDC;
30 class wxPaintDC;
31 class wxBitmap;
32 class wxWindow;
33
34 class wxColour;
35
36 //-----------------------------------------------------------------------------
37 // wxColour
38 //-----------------------------------------------------------------------------
39
40 class wxColour: public wxGDIObject
41 {
42 DECLARE_DYNAMIC_CLASS(wxColour)
43
44 public:
45
46 wxColour(void);
47 wxColour( char red, char green, char blue );
48 wxColour( const wxString &colourName );
49 wxColour( const wxColour& col );
50 wxColour( const wxColour* col );
51 ~wxColour(void);
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;
60 bool Ok(void) const;
61
62 private:
63 public:
64
65 friend wxDC;
66 friend wxPaintDC;
67 friend wxBitmap;
68 friend wxWindow;
69
70 void CalcPixel( GdkColormap *cmap );
71 int GetPixel(void);
72 GdkColor *GetColor(void);
73
74 // no data :-)
75 };
76
77 #endif // __GTKCOLOURH__