1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mgl/brush.h
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __WX_BRUSH_H__
11 #define __WX_BRUSH_H__
14 #include "wx/object.h"
15 #include "wx/string.h"
16 #include "wx/gdiobj.h"
17 #include "wx/bitmap.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
24 class WXDLLIMPEXP_FWD_CORE wxBrush
;
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class WXDLLIMPEXP_CORE wxBrush
: public wxBrushBase
34 wxBrush(const wxColour
&colour
, wxBrushStyle style
= wxBRUSHSTYLE_SOLID
);
35 #if FUTURE_WXWIN_COMPATIBILITY_3_0
36 wxDEPRECATED_FUTURE( wxBrush(const wxColour
& col
, int style
) );
38 wxBrush(const wxBitmap
&stippleBitmap
);
40 bool operator==(const wxBrush
& brush
) const;
41 bool operator!=(const wxBrush
& brush
) const;
43 virtual wxBrushStyle
GetStyle() const;
44 wxColour
&GetColour() const;
45 wxBitmap
*GetStipple() const;
47 void SetColour(const wxColour
& col
);
48 void SetColour(unsigned char r
, unsigned char g
, unsigned char b
);
49 void SetStyle(wxBrushStyle style
);
50 void SetStipple(const wxBitmap
& stipple
);
54 void* GetMaskPattern() const;
55 void* GetPixPattern() const;
58 virtual wxGDIRefData
*CreateGDIRefData() const;
59 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
62 DECLARE_DYNAMIC_CLASS(wxBrush
)
65 #endif // __WX_BRUSH_H__