1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/brush.h
3 // Purpose: wxBrush class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 class WXDLLIMPEXP_FWD_CORE wxBrush
;
15 class WXDLLIMPEXP_FWD_CORE wxColour
;
16 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
26 wxBrush(const wxColour
& col
, wxBrushStyle style
= wxBRUSHSTYLE_SOLID
);
27 #if FUTURE_WXWIN_COMPATIBILITY_3_0
28 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
30 wxBrush(const wxBitmap
& stipple
);
33 virtual void SetColour(const wxColour
& col
);
34 virtual void SetColour(unsigned char r
, unsigned char g
, unsigned char b
);
35 virtual void SetStyle(wxBrushStyle style
);
36 virtual void SetStipple(const wxBitmap
& stipple
);
38 bool operator==(const wxBrush
& brush
) const;
39 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
41 wxColour
GetColour() const;
42 wxBrushStyle
GetStyle() const;
43 wxBitmap
*GetStipple() const;
45 #if FUTURE_WXWIN_COMPATIBILITY_3_0
46 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
47 { SetStyle((wxBrushStyle
)style
); }
50 // return the HBRUSH for this brush
51 virtual WXHANDLE
GetResourceHandle() const;
54 virtual wxGDIRefData
*CreateGDIRefData() const;
55 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
58 DECLARE_DYNAMIC_CLASS(wxBrush
)
61 #endif // _WX_BRUSH_H_