]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/brush.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/brush.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/object.h"
16 #include "wx/string.h"
17 #include "wx/gdiobj.h"
18 #include "wx/bitmap.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 class WXDLLIMPEXP_CORE wxBrush
;
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
35 wxBrush( const wxColour
&colour
, int style
= wxSOLID
);
36 wxBrush( const wxBitmap
&stippleBitmap
);
39 wxBrush( const wxBrush
&brush
)
42 wxBrush
& operator = ( const wxBrush
& brush
) { Ref(brush
); return *this; }
44 bool Ok() const { return m_refData
!= NULL
; }
46 bool operator == ( const wxBrush
& brush
) const;
47 bool operator != (const wxBrush
& brush
) const { return !(*this == brush
); }
49 virtual int GetStyle() const;
50 wxColour
&GetColour() const;
51 wxBitmap
*GetStipple() const;
53 void SetColour( const wxColour
& col
);
54 void SetColour( unsigned char r
, unsigned char g
, unsigned char b
);
55 void SetStyle( int style
);
56 void SetStipple( const wxBitmap
& stipple
);
60 virtual wxObjectRefData
*CreateRefData() const;
61 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
63 DECLARE_DYNAMIC_CLASS(wxBrush
)
66 #endif // __GTKBRUSHH__