]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/brush.h
[ 1960295 ] wxWeakRef - Reorganization and comments
[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 WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
24 {
25 public:
26 wxBrush();
27 wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
28 #if FUTURE_WXWIN_COMPATIBILITY_3_0
29 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
30 #endif
31 wxBrush(const wxBitmap& stipple);
32 virtual ~wxBrush();
33
34 virtual void SetColour(const wxColour& col);
35 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
36 virtual void SetStyle(wxBrushStyle style);
37 virtual void SetStipple(const wxBitmap& stipple);
38
39 bool operator==(const wxBrush& brush) const;
40 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
41
42 wxColour GetColour() const;
43 wxBrushStyle GetStyle() const;
44 wxBitmap *GetStipple() const;
45
46 // return the HBRUSH for this brush
47 virtual WXHANDLE GetResourceHandle() const;
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_