1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/brush.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/object.h"
16 #include "wx/string.h"
17 #include "wx/gdiobj.h"
18 #include "wx/bitmap.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 class WXDLLIMPEXP_FWD_CORE wxBrush
;
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
35 wxBrush( const wxColour
&colour
, int style
= wxSOLID
);
36 wxBrush( const wxBitmap
&stippleBitmap
);
39 bool operator==(const wxBrush
& brush
) const;
40 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
42 virtual int GetStyle() const;
43 wxColour
&GetColour() const;
44 wxBitmap
*GetStipple() const;
46 void SetColour( const wxColour
& col
);
47 void SetColour( unsigned char r
, unsigned char g
, unsigned char b
);
48 void SetStyle( int style
);
49 void SetStipple( const wxBitmap
& stipple
);
52 virtual wxGDIRefData
*CreateGDIRefData() const;
53 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
55 DECLARE_DYNAMIC_CLASS(wxBrush
)
58 #endif // __GTKBRUSHH__