1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/brush.h
3 // Purpose: wxBrush class
4 // Author: Julian Smart, Robert Roebling
7 // Copyright: (c) Julian Smart, Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/gdiobj.h"
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
20 class WXDLLIMPEXP_FWD_CORE wxBrush
;
21 class WXDLLIMPEXP_FWD_CORE wxColour
;
22 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
33 wxBrush( const wxColour
&colour
, wxBrushStyle style
= wxBRUSHSTYLE_SOLID
);
34 #if FUTURE_WXWIN_COMPATIBILITY_3_0
35 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
37 wxBrush( const wxBitmap
&stippleBitmap
);
40 bool operator==(const wxBrush
& brush
) const;
41 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
43 wxBrushStyle
GetStyle() const;
44 wxColour
GetColour() const;
45 wxBitmap
*GetStipple() const;
47 void SetColour( const wxColour
& col
);
48 void SetColour( unsigned char r
, unsigned char g
, unsigned char b
);
49 void SetStyle( wxBrushStyle style
);
50 void SetStipple( const wxBitmap
& stipple
);
52 #if FUTURE_WXWIN_COMPATIBILITY_3_0
53 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
54 { SetStyle((wxBrushStyle
)style
); }
58 virtual wxGDIRefData
*CreateGDIRefData() const;
59 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
61 DECLARE_DYNAMIC_CLASS(wxBrush
)
64 #endif // _WX_BRUSH_H_