]>
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
) { Ref(brush
); }
44 wxBrush
& operator = ( const wxBrush
& brush
) { Ref(brush
); return *this; }
46 bool Ok() const { return m_refData
!= NULL
; }
48 bool operator == ( const wxBrush
& brush
) const;
49 bool operator != (const wxBrush
& brush
) const { return !(*this == brush
); }
52 wxColour
&GetColour() const;
53 wxBitmap
*GetStipple() const;
55 void SetColour( const wxColour
& col
);
56 void SetColour( unsigned char r
, unsigned char g
, unsigned char b
);
57 void SetStyle( int style
);
58 void SetStipple( const wxBitmap
& stipple
);
62 virtual wxObjectRefData
*CreateRefData() const;
63 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
65 DECLARE_DYNAMIC_CLASS(wxBrush
)
68 #endif // __GTKBRUSHH__