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 WXDLLEXPORT 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 virtual wxBrushStyle
GetStyle() const;
44 wxBitmap
*GetStipple() const;
46 // return the HBRUSH for this brush
47 virtual WXHANDLE
GetResourceHandle() const;
50 virtual wxGDIRefData
*CreateGDIRefData() const;
51 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
54 DECLARE_DYNAMIC_CLASS(wxBrush
)
57 #endif // _WX_BRUSH_H_