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