1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/brush.h
3 // Purpose: wxBrush class declaration
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DFB_BRUSH_H_
12 #define _WX_DFB_BRUSH_H_
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_FWD_CORE wxBitmap
;
25 class WXDLLIMPEXP_FWD_CORE wxBrush
;
27 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
35 wxBrush(const wxColour
&colour
, wxBrushStyle style
= wxBRUSHSTYLE_SOLID
);
36 #if FUTURE_WXWIN_COMPATIBILITY_3_0
37 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
39 wxBrush(const wxBitmap
&stippleBitmap
);
41 bool operator==(const wxBrush
& brush
) const;
42 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
44 wxBrushStyle
GetStyle() const;
45 wxColour
GetColour() const;
46 wxBitmap
*GetStipple() const;
48 void SetColour(const wxColour
& col
);
49 void SetColour(unsigned char r
, unsigned char g
, unsigned char b
);
50 void SetStyle(wxBrushStyle style
);
51 void SetStipple(const wxBitmap
& stipple
);
54 virtual wxGDIRefData
*CreateGDIRefData() const;
55 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
57 DECLARE_DYNAMIC_CLASS(wxBrush
)
60 #endif // _WX_DFB_BRUSH_H_