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