]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/brush.h
Skeleton for generic Drag code
[wxWidgets.git] / include / wx / mgl / brush.h
CommitLineData
32b8ec41 1/////////////////////////////////////////////////////////////////////////////
46562151 2// Name: wx/mgl/brush.h
32b8ec41
VZ
3// Purpose:
4// Author: Vaclav Slavik
5// Id: $Id$
52750c2e 6// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
65571936 7// Licence: wxWindows licence
32b8ec41
VZ
8/////////////////////////////////////////////////////////////////////////////
9
32b8ec41
VZ
10#ifndef __WX_BRUSH_H__
11#define __WX_BRUSH_H__
12
32b8ec41
VZ
13#include "wx/defs.h"
14#include "wx/object.h"
15#include "wx/string.h"
16#include "wx/gdiobj.h"
17#include "wx/bitmap.h"
18
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
b5dbe15d
VS
23class WXDLLIMPEXP_FWD_CORE wxBitmap;
24class WXDLLIMPEXP_FWD_CORE wxBrush;
32b8ec41
VZ
25
26//-----------------------------------------------------------------------------
27// wxBrush
28//-----------------------------------------------------------------------------
29
53a2db12 30class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
32b8ec41
VZ
31{
32public:
3cdd0895 33 wxBrush() {}
3e6858cd 34 wxBrush(const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
ac3688c0
FM
35#if FUTURE_WXWIN_COMPATIBILITY_3_0
36 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
37#endif
32b8ec41 38 wxBrush(const wxBitmap &stippleBitmap);
8f884a0d
VZ
39
40 bool operator==(const wxBrush& brush) const;
41 bool operator!=(const wxBrush& brush) const;
32b8ec41 42
231b9591
FM
43 wxBrushStyle GetStyle() const;
44 wxColour GetColour() const;
32b8ec41
VZ
45 wxBitmap *GetStipple() const;
46
47 void SetColour(const wxColour& col);
1a1498c0 48 void SetColour(unsigned char r, unsigned char g, unsigned char b);
3e6858cd 49 void SetStyle(wxBrushStyle style);
32b8ec41 50 void SetStipple(const wxBitmap& stipple);
ab9d0a8c 51
bc735a68
VZ
52#if FUTURE_WXWIN_COMPATIBILITY_3_0
53 wxDEPRECATED_FUTURE( void SetStyle(int style) )
54 { SetStyle((wxBrushStyle)style); }
55#endif
56
32b8ec41
VZ
57 // implementation:
58
32b8ec41
VZ
59 void* GetMaskPattern() const;
60 void* GetPixPattern() const;
61
6d7ee9e8 62protected:
8f884a0d
VZ
63 virtual wxGDIRefData *CreateGDIRefData() const;
64 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
6d7ee9e8 65
32b8ec41
VZ
66private:
67 DECLARE_DYNAMIC_CLASS(wxBrush)
68};
69
70#endif // __WX_BRUSH_H__