1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/brush.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_GTK_BRUSH_H_
10 #define _WX_GTK_BRUSH_H_
12 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
13 class WXDLLIMPEXP_FWD_CORE wxColour
;
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
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
) );
28 wxBrush( const wxBitmap
&stippleBitmap
);
31 bool operator==(const wxBrush
& brush
) const;
32 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
34 wxBrushStyle
GetStyle() const;
35 wxColour
GetColour() const;
36 wxBitmap
*GetStipple() const;
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
);
43 #if FUTURE_WXWIN_COMPATIBILITY_3_0
44 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
45 { SetStyle((wxBrushStyle
)style
); }
49 virtual wxGDIRefData
*CreateGDIRefData() const;
50 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
52 DECLARE_DYNAMIC_CLASS(wxBrush
)
55 #endif // _WX_GTK_BRUSH_H_