1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/brush.h
3 // Purpose: wxBrush class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/gdicmn.h"
15 #include "wx/gdiobj.h"
16 #include "wx/bitmap.h"
18 class WXDLLIMPEXP_FWD_CORE wxBrush
;
21 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
25 wxBrush(const wxColour
& col
, wxBrushStyle style
= wxBRUSHSTYLE_SOLID
);
26 #if FUTURE_WXWIN_COMPATIBILITY_3_0
27 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
29 wxBrush(const wxBitmap
& stipple
);
32 virtual void SetColour(const wxColour
& col
) ;
33 virtual void SetColour(unsigned char r
, unsigned char g
, unsigned char b
) ;
34 virtual void SetStyle(wxBrushStyle style
) ;
35 virtual void SetStipple(const wxBitmap
& stipple
) ;
37 bool operator==(const wxBrush
& brush
) const;
38 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
40 wxColour
GetColour() const;
41 wxBrushStyle
GetStyle() const ;
42 wxBitmap
*GetStipple() const ;
44 #if FUTURE_WXWIN_COMPATIBILITY_3_0
45 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
46 { SetStyle((wxBrushStyle
)style
); }
50 virtual wxGDIRefData
*CreateGDIRefData() const;
51 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
54 DECLARE_DYNAMIC_CLASS(wxBrush
)
57 #endif // _WX_BRUSH_H_