]>
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
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/bitmap.h"
17 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
21 wxBrush(const wxColour
& rCol
, wxBrushStyle nStyle
= wxBRUSHSTYLE_SOLID
);
22 #if FUTURE_WXWIN_COMPATIBILITY_3_0
23 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
25 wxBrush(const wxBitmap
& rStipple
);
28 bool operator == (const wxBrush
& rBrush
) const;
29 inline bool operator != (const wxBrush
& rBrush
) const { return !(*this == rBrush
); }
31 virtual void SetColour(const wxColour
& rColour
);
32 virtual void SetColour(unsigned char cRed
, unsigned char cGreen
, unsigned char cBrush
);
33 virtual void SetPS(HPS hPS
);
34 virtual void SetStyle(wxBrushStyle nStyle
);
35 virtual void SetStipple(const wxBitmap
& rStipple
);
37 wxColour
GetColour(void) const;
38 wxBrushStyle
GetStyle(void) const;
39 wxBitmap
* GetStipple(void) const;
40 int GetPS(void) const;
42 #if FUTURE_WXWIN_COMPATIBILITY_3_0
43 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
44 { SetStyle((wxBrushStyle
)style
); }
52 // Useful helper: create the brush resource
54 bool RealizeResource(void);
55 virtual WXHANDLE
GetResourceHandle(void) const;
56 bool FreeResource(bool bForce
= false);
57 bool IsFree(void) const;
60 virtual wxGDIRefData
*CreateGDIRefData() const;
61 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
64 DECLARE_DYNAMIC_CLASS(wxBrush
)
65 }; // end of CLASS wxBrush