1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/brush.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_BRUSH_H_
11 #define _WX_GTK_BRUSH_H_
13 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
14 class WXDLLIMPEXP_FWD_CORE wxColour
;
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
25 wxBrush( const wxColour
&colour
, int style
= wxSOLID
);
26 wxBrush( const wxBitmap
&stippleBitmap
);
29 bool Ok() const { return IsOk(); }
30 bool IsOk() const { return m_refData
!= NULL
; }
32 bool operator == ( const wxBrush
& brush
) const;
33 bool operator != (const wxBrush
& brush
) const { return !(*this == brush
); }
35 virtual int GetStyle() const;
36 wxColour
&GetColour() const;
37 wxBitmap
*GetStipple() const;
39 void SetColour( const wxColour
& col
);
40 void SetColour( unsigned char r
, unsigned char g
, unsigned char b
);
41 void SetStyle( int style
);
42 void SetStipple( const wxBitmap
& stipple
);
46 virtual wxObjectRefData
*CreateRefData() const;
47 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
49 DECLARE_DYNAMIC_CLASS(wxBrush
)
52 #endif // _WX_GTK_BRUSH_H_