]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/brush.h
621b0c28c7de0f7f4692a90b0124b0beb7833dae
[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 class WXDLLIMPEXP_FWD_CORE wxBrush;
16 class WXDLLIMPEXP_FWD_CORE wxColour;
17 class WXDLLIMPEXP_FWD_CORE wxBitmap;
18
19 // ----------------------------------------------------------------------------
20 // wxBrush
21 // ----------------------------------------------------------------------------
22
23 class WXDLLEXPORT wxBrush : public wxBrushBase
24 {
25 public:
26 wxBrush();
27 wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
28 wxBrush(const wxBitmap& stipple);
29 virtual ~wxBrush();
30
31 virtual void SetColour(const wxColour& col);
32 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
33 virtual void SetStyle(wxBrushStyle style);
34 virtual void SetStipple(const wxBitmap& stipple);
35
36 bool operator==(const wxBrush& brush) const;
37 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
38
39 wxColour GetColour() const;
40 virtual wxBrushStyle GetStyle() const;
41 wxBitmap *GetStipple() const;
42
43 // return the HBRUSH for this brush
44 virtual WXHANDLE GetResourceHandle() const;
45
46 protected:
47 virtual wxGDIRefData *CreateGDIRefData() const;
48 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
49
50 private:
51 DECLARE_DYNAMIC_CLASS(wxBrush)
52 };
53
54 #endif // _WX_BRUSH_H_