]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/brush.h
Fix a couple of warning that crept back into the GTK backend.
[wxWidgets.git] / include / wx / palmos / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/brush.h
3 // Purpose: wxBrush class
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
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 WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
26 {
27 public:
28 wxBrush();
29 wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
30 #if FUTURE_WXWIN_COMPATIBILITY_3_0
31 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
32 #endif
33 wxBrush(const wxBitmap& stipple);
34 virtual ~wxBrush();
35
36 virtual void SetColour(const wxColour& col);
37 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
38 virtual void SetStyle(wxBrushStyle style);
39 virtual void SetStipple(const wxBitmap& stipple);
40
41 bool operator==(const wxBrush& brush) const;
42 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
43
44 wxColour GetColour() const;
45 wxBrushStyle GetStyle() const;
46 wxBitmap *GetStipple() const;
47
48 #if FUTURE_WXWIN_COMPATIBILITY_3_0
49 wxDEPRECATED_FUTURE( void SetStyle(int style) )
50 { SetStyle((wxBrushStyle)style); }
51 #endif
52
53 // return the HBRUSH for this brush
54 virtual WXHANDLE GetResourceHandle() const;
55
56 protected:
57 virtual wxGDIRefData *CreateGDIRefData() const;
58 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
59
60 private:
61 DECLARE_DYNAMIC_CLASS(wxBrush)
62 };
63
64 #endif // _WX_BRUSH_H_