]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/brush.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
19 #include "wx/object.h"
20 #include "wx/string.h"
21 #include "wx/gdiobj.h"
22 #include "wx/bitmap.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 class wxBrush
: public wxGDIObject
39 wxBrush( const wxColour
&colour
, int style
);
40 wxBrush( const wxBitmap
&stippleBitmap
);
43 wxBrush( const wxBrush
&brush
)
46 wxBrush
& operator = ( const wxBrush
& brush
) { Ref(brush
); return *this; }
48 bool Ok() const { return m_refData
!= NULL
; }
50 bool operator == ( const wxBrush
& brush
) const;
51 bool operator != (const wxBrush
& brush
) const { return !(*this == brush
); }
54 wxColour
&GetColour() const;
55 wxBitmap
*GetStipple() const;
57 void SetColour( const wxColour
& col
);
58 void SetColour( unsigned char r
, unsigned char g
, unsigned char b
);
59 void SetStyle( int style
);
60 void SetStipple( const wxBitmap
& stipple
);
64 virtual wxObjectRefData
*CreateRefData() const;
65 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
67 DECLARE_DYNAMIC_CLASS(wxBrush
)
70 #endif // __GTKBRUSHH__