]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/brush.h
Another inline constructor to facilitate Unicode conversion without #if-ing...
[wxWidgets.git] / include / wx / gtk / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: brush.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __GTKBRUSHH__
12 #define __GTKBRUSHH__
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "wx/defs.h"
19 #include "wx/object.h"
20 #include "wx/string.h"
21 #include "wx/gdiobj.h"
22 #include "wx/bitmap.h"
23
24 //-----------------------------------------------------------------------------
25 // classes
26 //-----------------------------------------------------------------------------
27
28 class wxBrush;
29
30 //-----------------------------------------------------------------------------
31 // wxBrush
32 //-----------------------------------------------------------------------------
33
34 class wxBrush: public wxGDIObject
35 {
36 DECLARE_DYNAMIC_CLASS(wxBrush)
37
38 public:
39
40 wxBrush();
41 wxBrush( const wxColour &colour, int style );
42 wxBrush( const wxBitmap &stippleBitmap );
43 wxBrush( const wxBrush &brush );
44 ~wxBrush();
45 wxBrush& operator = ( const wxBrush& brush );
46 bool operator == ( const wxBrush& brush );
47 bool operator != ( const wxBrush& brush );
48 bool Ok() const;
49
50 int GetStyle() const;
51 wxColour &GetColour() const;
52 wxBitmap *GetStipple() const;
53
54 void SetColour( const wxColour& col );
55 void SetColour( unsigned char r, unsigned char g, unsigned char b );
56 void SetStyle( int style );
57 void SetStipple( const wxBitmap& stipple );
58
59 void Unshare();
60
61 // no data :-)
62 };
63
64 #endif // __GTKBRUSHH__