]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/brush.h
Add wxUSE_UIACTIONSIMULATOR and turn it off by default.
[wxWidgets.git] / include / wx / mgl / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mgl/brush.h
3 // Purpose:
4 // Author: Vaclav Slavik
5 // Id: $Id$
6 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __WX_BRUSH_H__
11 #define __WX_BRUSH_H__
12
13 #include "wx/defs.h"
14 #include "wx/object.h"
15 #include "wx/string.h"
16 #include "wx/gdiobj.h"
17 #include "wx/bitmap.h"
18
19 //-----------------------------------------------------------------------------
20 // classes
21 //-----------------------------------------------------------------------------
22
23 class WXDLLIMPEXP_FWD_CORE wxBitmap;
24 class WXDLLIMPEXP_FWD_CORE wxBrush;
25
26 //-----------------------------------------------------------------------------
27 // wxBrush
28 //-----------------------------------------------------------------------------
29
30 class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
31 {
32 public:
33 wxBrush() {}
34 wxBrush(const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
35 #if FUTURE_WXWIN_COMPATIBILITY_3_0
36 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
37 #endif
38 wxBrush(const wxBitmap &stippleBitmap);
39
40 bool operator==(const wxBrush& brush) const;
41 bool operator!=(const wxBrush& brush) const;
42
43 wxBrushStyle GetStyle() const;
44 wxColour GetColour() const;
45 wxBitmap *GetStipple() const;
46
47 void SetColour(const wxColour& col);
48 void SetColour(unsigned char r, unsigned char g, unsigned char b);
49 void SetStyle(wxBrushStyle style);
50 void SetStipple(const wxBitmap& stipple);
51
52 #if FUTURE_WXWIN_COMPATIBILITY_3_0
53 wxDEPRECATED_FUTURE( void SetStyle(int style) )
54 { SetStyle((wxBrushStyle)style); }
55 #endif
56
57 // implementation:
58
59 void* GetMaskPattern() const;
60 void* GetPixPattern() const;
61
62 protected:
63 virtual wxGDIRefData *CreateGDIRefData() const;
64 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
65
66 private:
67 DECLARE_DYNAMIC_CLASS(wxBrush)
68 };
69
70 #endif // __WX_BRUSH_H__