]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/brush.h
3 // Purpose: wxBrush class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/bitmap.h"
18 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
22 wxBrush(const wxColour
& rCol
, wxBrushStyle nStyle
= wxBRUSHSTYLE_SOLID
);
23 #if FUTURE_WXWIN_COMPATIBILITY_3_0
24 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
26 wxBrush(const wxBitmap
& rStipple
);
29 bool operator == (const wxBrush
& rBrush
) const;
30 inline bool operator != (const wxBrush
& rBrush
) const { return !(*this == rBrush
); }
32 virtual void SetColour(const wxColour
& rColour
);
33 virtual void SetColour(unsigned char cRed
, unsigned char cGreen
, unsigned char cBrush
);
34 virtual void SetPS(HPS hPS
);
35 virtual void SetStyle(wxBrushStyle nStyle
);
36 virtual void SetStipple(const wxBitmap
& rStipple
);
38 wxColour
GetColour(void) const;
39 wxBrushStyle
GetStyle(void) const;
40 wxBitmap
* GetStipple(void) const;
41 int GetPS(void) const;
43 #if FUTURE_WXWIN_COMPATIBILITY_3_0
44 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
45 { SetStyle((wxBrushStyle
)style
); }
53 // Useful helper: create the brush resource
55 bool RealizeResource(void);
56 virtual WXHANDLE
GetResourceHandle(void) const;
57 bool FreeResource(bool bForce
= false);
58 bool IsFree(void) const;
61 virtual wxGDIRefData
*CreateGDIRefData() const;
62 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
65 DECLARE_DYNAMIC_CLASS(wxBrush
)
66 }; // end of CLASS wxBrush