]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/brush.h
Added a flag suppressing node content conversion when saving to XML.
[wxWidgets.git] / include / wx / gtk / brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/brush.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTK_BRUSH_H_
11 #define _WX_GTK_BRUSH_H_
12
13 class WXDLLIMPEXP_FWD_CORE wxBitmap;
14 class WXDLLIMPEXP_FWD_CORE wxColour;
15
16 //-----------------------------------------------------------------------------
17 // wxBrush
18 //-----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
21 {
22 public:
23 wxBrush() { }
24
25 wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
26 #if FUTURE_WXWIN_COMPATIBILITY_3_0
27 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
28 #endif
29 wxBrush( const wxBitmap &stippleBitmap );
30 virtual ~wxBrush();
31
32 bool operator==(const wxBrush& brush) const;
33 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
34
35 wxBrushStyle GetStyle() const;
36 wxColour GetColour() const;
37 wxBitmap *GetStipple() const;
38
39 void SetColour( const wxColour& col );
40 void SetColour( unsigned char r, unsigned char g, unsigned char b );
41 void SetStyle( wxBrushStyle style );
42 void SetStipple( const wxBitmap& stipple );
43
44 #if FUTURE_WXWIN_COMPATIBILITY_3_0
45 wxDEPRECATED_FUTURE( void SetStyle(int style) )
46 { SetStyle((wxBrushStyle)style); }
47 #endif
48
49 protected:
50 virtual wxGDIRefData *CreateGDIRefData() const;
51 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
52
53 DECLARE_DYNAMIC_CLASS(wxBrush)
54 };
55
56 #endif // _WX_GTK_BRUSH_H_