1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/brush.h
3 // Purpose: wxBrush class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 class WXDLLIMPEXP_FWD_CORE wxBrush
;
16 class WXDLLIMPEXP_FWD_CORE wxColour
;
17 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
19 // ----------------------------------------------------------------------------
21 // ----------------------------------------------------------------------------
23 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
27 wxBrush(const wxColour
& col
, wxBrushStyle style
= wxBRUSHSTYLE_SOLID
);
28 #if FUTURE_WXWIN_COMPATIBILITY_3_0
29 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
31 wxBrush(const wxBitmap
& stipple
);
34 virtual void SetColour(const wxColour
& col
);
35 virtual void SetColour(unsigned char r
, unsigned char g
, unsigned char b
);
36 virtual void SetStyle(wxBrushStyle style
);
37 virtual void SetStipple(const wxBitmap
& stipple
);
39 bool operator==(const wxBrush
& brush
) const;
40 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
42 wxColour
GetColour() const;
43 wxBrushStyle
GetStyle() const;
44 wxBitmap
*GetStipple() const;
46 #if FUTURE_WXWIN_COMPATIBILITY_3_0
47 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
48 { SetStyle((wxBrushStyle
)style
); }
51 // return the HBRUSH for this brush
52 virtual WXHANDLE
GetResourceHandle() const;
55 virtual wxGDIRefData
*CreateGDIRefData() const;
56 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
59 DECLARE_DYNAMIC_CLASS(wxBrush
)
62 #endif // _WX_BRUSH_H_