]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/brush.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
20 #include "wx/object.h"
21 #include "wx/string.h"
22 #include "wx/gdiobj.h"
23 #include "wx/bitmap.h"
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 class wxBrush
: public wxGDIObject
37 DECLARE_DYNAMIC_CLASS(wxBrush
)
42 wxBrush( const wxColour
&colour
, int style
);
43 wxBrush( const wxString
&colourName
, int style
);
44 wxBrush( const wxBitmap
&stippleBitmap
);
45 wxBrush( const wxBrush
&brush
);
46 wxBrush( const wxBrush
*brush
);
48 wxBrush
& operator = ( const wxBrush
& brush
);
49 bool operator == ( const wxBrush
& brush
);
50 bool operator != ( const wxBrush
& brush
);
53 int GetStyle(void) const;
54 wxColour
&GetColour(void) const;
55 wxBitmap
*GetStipple(void) const;
58 void SetColour( const wxColour
& col
);
59 void SetColour( const wxString
& col
);
60 void SetColour( unsigned char r
, unsigned char g
, unsigned char b
);
61 void SetStyle( int style
);
62 void SetStipple( const wxBitmap
& stipple
);
69 #endif // __GTKBRUSHH__