1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/brush.h
3 // Purpose: wxBrush class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/gdicmn.h"
16 #include "wx/gdiobj.h"
17 #include "wx/bitmap.h"
19 class WXDLLIMPEXP_FWD_CORE wxBrush
;
21 // ----------------------------------------------------------------------------
23 // ----------------------------------------------------------------------------
25 class WXDLLEXPORT wxBrush
: public wxBrushBase
29 wxBrush(const wxColour
& col
, wxBrushStyle style
= wxBRUSHSTYLE_SOLID
);
30 #if FUTURE_WXWIN_COMPATIBILITY_3_0
31 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
33 wxBrush(const wxBitmap
& stipple
);
36 virtual void SetColour(const wxColour
& col
);
37 virtual void SetColour(unsigned char r
, unsigned char g
, unsigned char b
);
38 virtual void SetStyle(wxBrushStyle style
);
39 virtual void SetStipple(const wxBitmap
& stipple
);
41 bool operator==(const wxBrush
& brush
) const;
42 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
44 wxColour
GetColour() const;
45 virtual wxBrushStyle
GetStyle() const;
46 wxBitmap
*GetStipple() const;
48 // return the HBRUSH for this brush
49 virtual WXHANDLE
GetResourceHandle() const;
52 virtual wxGDIRefData
*CreateGDIRefData() const;
53 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
56 DECLARE_DYNAMIC_CLASS(wxBrush
)
59 #endif // _WX_BRUSH_H_