]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/brush.h
Added some missing tests; replaced scrolwin.cpp with scrlwng.cpp
[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 public:
37 wxBrush();
38 wxBrush( const wxColour &colour, int style );
39 wxBrush( const wxBitmap &stippleBitmap );
40 wxBrush( const wxBrush &brush );
41 ~wxBrush();
42 wxBrush& operator = ( const wxBrush& brush );
43 bool operator == ( const wxBrush& brush ) const;
44 bool operator != ( const wxBrush& brush ) const;
45 bool Ok() const;
46
47 int GetStyle() const;
48 wxColour &GetColour() const;
49 wxBitmap *GetStipple() const;
50
51 void SetColour( const wxColour& col );
52 void SetColour( unsigned char r, unsigned char g, unsigned char b );
53 void SetStyle( int style );
54 void SetStipple( const wxBitmap& stipple );
55
56 void Unshare();
57
58 private:
59 DECLARE_DYNAMIC_CLASS(wxBrush)
60 };
61
62 #endif // __GTKBRUSHH__