]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/brush.h
Add more checks for Intel compiler.
[wxWidgets.git] / include / wx / x11 / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/brush.h
3 // Purpose: wxBrush class
4 // Author: Julian Smart, Robert Roebling
5 // Modified by:
6 // Created: 17/09/98
7 // Copyright: (c) Julian Smart, Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_BRUSH_H_
12 #define _WX_BRUSH_H_
13
14 #include "wx/gdiobj.h"
15
16 //-----------------------------------------------------------------------------
17 // classes
18 //-----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_FWD_CORE wxBrush;
21 class WXDLLIMPEXP_FWD_CORE wxColour;
22 class WXDLLIMPEXP_FWD_CORE wxBitmap;
23
24 //-----------------------------------------------------------------------------
25 // wxBrush
26 //-----------------------------------------------------------------------------
27
28 class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
29 {
30 public:
31 wxBrush() { }
32
33 wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
34 #if FUTURE_WXWIN_COMPATIBILITY_3_0
35 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
36 #endif
37 wxBrush( const wxBitmap &stippleBitmap );
38 virtual ~wxBrush();
39
40 bool operator==(const wxBrush& brush) const;
41 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
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 protected:
58 virtual wxGDIRefData *CreateGDIRefData() const;
59 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
60
61 DECLARE_DYNAMIC_CLASS(wxBrush)
62 };
63
64 #endif // _WX_BRUSH_H_