]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/brush.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_BRUSH_H__
12 #define __WX_BRUSH_H__
15 #pragma interface "brush.h"
19 #include "wx/object.h"
20 #include "wx/string.h"
21 #include "wx/gdiobj.h"
22 #include "wx/bitmap.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 class WXDLLEXPORT wxBitmap
;
29 class WXDLLEXPORT wxBrush
;
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 class WXDLLEXPORT wxBrush
: public wxGDIObject
39 wxBrush(const wxColour
&colour
, int style
);
40 wxBrush(const wxBitmap
&stippleBitmap
);
41 wxBrush(const wxBrush
&brush
);
43 wxBrush
& operator = (const wxBrush
& brush
);
44 bool operator == (const wxBrush
& brush
) const;
45 bool operator != (const wxBrush
& brush
) const;
49 wxColour
&GetColour() const;
50 wxBitmap
*GetStipple() const;
52 void SetColour(const wxColour
& col
);
53 void SetColour(unsigned char r
, unsigned char g
, unsigned char b
);
54 void SetStyle(int style
);
55 void SetStipple(const wxBitmap
& stipple
);
61 void* GetMaskPattern() const;
62 void* GetPixPattern() const;
65 DECLARE_DYNAMIC_CLASS(wxBrush
)
68 #endif // __WX_BRUSH_H__