1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/brush.h
3 // Purpose: wxBrush class
4 // Author: Julian Smart, Robert Roebling
8 // Copyright: (c) Julian Smart, Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/gdiobj.h"
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 class WXDLLIMPEXP_FWD_CORE wxBrush
;
22 class WXDLLIMPEXP_FWD_CORE wxColour
;
23 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
29 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
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
) );
38 wxBrush( const wxBitmap
&stippleBitmap
);
41 bool operator==(const wxBrush
& brush
) const;
42 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
44 virtual wxBrushStyle
GetStyle() const;
45 wxColour
&GetColour() const;
46 wxBitmap
*GetStipple() const;
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
);
54 virtual wxGDIRefData
*CreateGDIRefData() const;
55 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
57 DECLARE_DYNAMIC_CLASS(wxBrush
)
60 #endif // _WX_BRUSH_H_