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 wxBrush(const wxBitmap
& stipple
);
31 virtual void SetColour(const wxColour
& col
);
32 virtual void SetColour(unsigned char r
, unsigned char g
, unsigned char b
);
33 virtual void SetStyle(wxBrushStyle style
);
34 virtual void SetStipple(const wxBitmap
& stipple
);
36 bool operator==(const wxBrush
& brush
) const;
37 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
39 wxColour
GetColour() const;
40 virtual wxBrushStyle
GetStyle() const;
41 wxBitmap
*GetStipple() const;
43 // return the HBRUSH for this brush
44 virtual WXHANDLE
GetResourceHandle() const;
47 virtual wxGDIRefData
*CreateGDIRefData() const;
48 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
51 DECLARE_DYNAMIC_CLASS(wxBrush
)
54 #endif // _WX_BRUSH_H_