]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/brush.h
always return 471 from wxApp::GetComCtl32Version() under CE as its commctrl.dll inclu...
[wxWidgets.git] / include / wx / msw / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/brush.h
3 // Purpose: wxBrush class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
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 // ----------------------------------------------------------------------------
22 // wxBrush
23 // ----------------------------------------------------------------------------
24
25 class WXDLLEXPORT wxBrush : public wxBrushBase
26 {
27 public:
28 wxBrush();
29 wxBrush(const wxColour& col, int style = wxSOLID);
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(int 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 virtual int GetStyle() const;
43 wxBitmap *GetStipple() const;
44
45 // return the HBRUSH for this brush
46 virtual WXHANDLE GetResourceHandle() const;
47
48 protected:
49 virtual wxGDIRefData *CreateGDIRefData() const;
50 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
51
52 private:
53 DECLARE_DYNAMIC_CLASS(wxBrush)
54 };
55
56 #endif // _WX_BRUSH_H_