]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/brush.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxBrush class
4 // Author: Julian Smart, Robert Roebling
8 // Copyright: (c) Julian Smart, Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "brush.h"
19 #include "wx/gdiobj.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 class wxBrush
: public wxGDIObject
38 wxBrush( const wxColour
&colour
, int style
);
39 wxBrush( const wxBitmap
&stippleBitmap
);
42 wxBrush( const wxBrush
&brush
) { Ref(brush
); }
43 wxBrush
& operator = ( const wxBrush
& brush
) { Ref(brush
); return *this; }
45 bool Ok() const { return m_refData
!= NULL
; }
47 bool operator == ( const wxBrush
& brush
) const;
48 bool operator != (const wxBrush
& brush
) const { return !(*this == brush
); }
51 wxColour
&GetColour() const;
52 wxBitmap
*GetStipple() const;
54 void SetColour( const wxColour
& col
);
55 void SetColour( unsigned char r
, unsigned char g
, unsigned char b
);
56 void SetStyle( int style
);
57 void SetStipple( const wxBitmap
& stipple
);
61 virtual wxObjectRefData
*CreateRefData() const;
62 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
64 DECLARE_DYNAMIC_CLASS(wxBrush
)