]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/brush.h
Changed wxRectangle to wxRect. Sorry for the bandwidth...
[wxWidgets.git] / include / wx / gtk1 / 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(void);
41 wxBrush( const wxColour &colour, int style );
42 wxBrush( const wxBitmap &stippleBitmap );
43 wxBrush( const wxBrush &brush );
44 wxBrush( const wxBrush *brush );
45 ~wxBrush(void);
46 wxBrush& operator = ( const wxBrush& brush );
47 bool operator == ( const wxBrush& brush );
48 bool operator != ( const wxBrush& brush );
49 bool Ok(void) const;
50
51 int GetStyle(void) const;
52 wxColour &GetColour(void) const;
53 wxBitmap *GetStipple(void) const;
54
55
56 void SetColour( const wxColour& col );
57 void SetColour( unsigned char r, unsigned char g, unsigned char b );
58 void SetStyle( int style );
59 void SetStipple( const wxBitmap& stipple );
60
61 void Unshare(void);
62
63 // no data :-)
64 };
65
66 #endif // __GTKBRUSHH__