]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/brush.h
1. changed all "wxMBConv& conv" parameters to "const wxMBConv&"
[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
23class WXDLLEXPORT wxBitmap;
24class WXDLLEXPORT wxBrush;
25
26//-----------------------------------------------------------------------------
27// wxBrush
28//-----------------------------------------------------------------------------
29
cb9d5bd0 30class WXDLLEXPORT wxBrush: public wxBrushBase
32b8ec41
VZ
31{
32public:
3cdd0895 33 wxBrush() {}
5b36366c 34 wxBrush(const wxColour &colour, int style = wxSOLID);
32b8ec41 35 wxBrush(const wxBitmap &stippleBitmap);
3cdd0895 36 ~wxBrush() {}
32b8ec41
VZ
37 bool operator == (const wxBrush& brush) const;
38 bool operator != (const wxBrush& brush) const;
39 bool Ok() const;
40
cb9d5bd0 41 virtual int GetStyle() const;
32b8ec41
VZ
42 wxColour &GetColour() const;
43 wxBitmap *GetStipple() const;
44
45 void SetColour(const wxColour& col);
1a1498c0 46 void SetColour(unsigned char r, unsigned char g, unsigned char b);
32b8ec41
VZ
47 void SetStyle(int style);
48 void SetStipple(const wxBitmap& stipple);
ab9d0a8c 49
32b8ec41
VZ
50 // implementation:
51
32b8ec41
VZ
52 void* GetMaskPattern() const;
53 void* GetPixPattern() const;
54
6d7ee9e8
VS
55protected:
56 // ref counting code
57 virtual wxObjectRefData *CreateRefData() const;
58 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
59
32b8ec41
VZ
60private:
61 DECLARE_DYNAMIC_CLASS(wxBrush)
62};
63
64#endif // __WX_BRUSH_H__