]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/brush.h
cleanup - added whitespace around operators, some blank lines, fixed comment typos...
[wxWidgets.git] / include / wx / gtk / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/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 #include "wx/defs.h"
15 #include "wx/object.h"
16 #include "wx/string.h"
17 #include "wx/gdiobj.h"
18 #include "wx/bitmap.h"
19
20 //-----------------------------------------------------------------------------
21 // classes
22 //-----------------------------------------------------------------------------
23
24 class WXDLLIMPEXP_CORE wxBrush;
25
26 //-----------------------------------------------------------------------------
27 // wxBrush
28 //-----------------------------------------------------------------------------
29
30 class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
31 {
32 public:
33 wxBrush() { }
34
35 wxBrush( const wxColour &colour, int style = wxSOLID );
36 wxBrush( const wxBitmap &stippleBitmap );
37 ~wxBrush();
38
39 bool Ok() const { return m_refData != NULL; }
40
41 bool operator == ( const wxBrush& brush ) const;
42 bool operator != (const wxBrush& brush) const { return !(*this == brush); }
43
44 virtual int 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( int style );
51 void SetStipple( const wxBitmap& stipple );
52
53 protected:
54 // ref counting code
55 virtual wxObjectRefData *CreateRefData() const;
56 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
57
58 DECLARE_DYNAMIC_CLASS(wxBrush)
59 };
60
61 #endif // __GTKBRUSHH__