]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/brush.h
The rounded corners look really dumb at this size.
[wxWidgets.git] / include / wx / gtk1 / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/brush.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9
10 #ifndef __GTKBRUSHH__
11 #define __GTKBRUSHH__
12
13 #include "wx/defs.h"
14 #include "wx/object.h"
15 #include "wx/string.h"
16 #include "wx/gdiobj.h"
17 #include "wx/bitmap.h"
18
19 //-----------------------------------------------------------------------------
20 // classes
21 //-----------------------------------------------------------------------------
22
23 class WXDLLIMPEXP_FWD_CORE wxBrush;
24
25 //-----------------------------------------------------------------------------
26 // wxBrush
27 //-----------------------------------------------------------------------------
28
29 class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
30 {
31 public:
32 wxBrush() { }
33
34 wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
35 #if FUTURE_WXWIN_COMPATIBILITY_3_0
36 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
37 #endif
38 wxBrush( const wxBitmap &stippleBitmap );
39 virtual ~wxBrush();
40
41 bool operator==(const wxBrush& brush) const;
42 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
43
44 wxBrushStyle GetStyle() const;
45 wxColour GetColour() const;
46 wxBitmap *GetStipple() const;
47
48 void SetColour( const wxColour& col );
49 void SetColour( unsigned char r, unsigned char g, unsigned char b );
50 void SetStyle( wxBrushStyle style );
51 void SetStipple( const wxBitmap& stipple );
52
53 #if FUTURE_WXWIN_COMPATIBILITY_3_0
54 wxDEPRECATED_FUTURE( void SetStyle(int style) )
55 { SetStyle((wxBrushStyle)style); }
56 #endif
57
58 private:
59 virtual wxGDIRefData *CreateGDIRefData() const;
60 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
61
62 DECLARE_DYNAMIC_CLASS(wxBrush)
63 };
64
65 #endif // __GTKBRUSHH__