]>
Commit | Line | Data |
---|---|---|
3d0b488b | 1 | ///////////////////////////////////////////////////////////////////////////// |
97c5b168 | 2 | // Name: wx/osx/brush.h |
3d0b488b SC |
3 | // Purpose: wxBrush class |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
3d0b488b SC |
7 | // Copyright: (c) Stefan Csomor |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_BRUSH_H_ | |
12 | #define _WX_BRUSH_H_ | |
13 | ||
14 | #include "wx/gdicmn.h" | |
15 | #include "wx/gdiobj.h" | |
16 | #include "wx/bitmap.h" | |
17 | ||
18 | class WXDLLIMPEXP_FWD_CORE wxBrush; | |
19 | ||
20 | // Brush | |
21 | class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase | |
22 | { | |
23 | public: | |
24 | wxBrush(); | |
25 | wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID); | |
26 | #if FUTURE_WXWIN_COMPATIBILITY_3_0 | |
27 | wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) ); | |
28 | #endif | |
29 | wxBrush(const wxBitmap& stipple); | |
30 | virtual ~wxBrush(); | |
31 | ||
32 | virtual void SetColour(const wxColour& col) ; | |
33 | virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ; | |
34 | virtual void SetStyle(wxBrushStyle style) ; | |
35 | virtual void SetStipple(const wxBitmap& stipple) ; | |
36 | ||
37 | bool operator==(const wxBrush& brush) const; | |
38 | bool operator!=(const wxBrush& brush) const { return !(*this == brush); } | |
39 | ||
40 | wxColour GetColour() const; | |
41 | wxBrushStyle GetStyle() const ; | |
42 | wxBitmap *GetStipple() const ; | |
43 | ||
44 | #if FUTURE_WXWIN_COMPATIBILITY_3_0 | |
45 | wxDEPRECATED_FUTURE( void SetStyle(int style) ) | |
46 | { SetStyle((wxBrushStyle)style); } | |
47 | #endif | |
48 | ||
49 | protected: | |
50 | virtual wxGDIRefData *CreateGDIRefData() const; | |
51 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
52 | ||
53 | private: | |
54 | DECLARE_DYNAMIC_CLASS(wxBrush) | |
55 | }; | |
56 | ||
57 | #endif // _WX_BRUSH_H_ |