]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/brush.h
added status bar fields styles support (patch 988292)
[wxWidgets.git] / include / wx / mgl / brush.h
CommitLineData
32b8ec41
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: brush.h
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
10
11#ifndef __WX_BRUSH_H__
12#define __WX_BRUSH_H__
13
12028905 14#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
32b8ec41
VZ
15#pragma interface "brush.h"
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/string.h"
21#include "wx/gdiobj.h"
22#include "wx/bitmap.h"
23
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class WXDLLEXPORT wxBitmap;
29class WXDLLEXPORT wxBrush;
30
31//-----------------------------------------------------------------------------
32// wxBrush
33//-----------------------------------------------------------------------------
34
35class WXDLLEXPORT wxBrush: public wxGDIObject
36{
37public:
3cdd0895 38 wxBrush() {}
5b36366c 39 wxBrush(const wxColour &colour, int style = wxSOLID);
32b8ec41
VZ
40 wxBrush(const wxBitmap &stippleBitmap);
41 wxBrush(const wxBrush &brush);
3cdd0895 42 ~wxBrush() {}
32b8ec41
VZ
43 wxBrush& operator = (const wxBrush& brush);
44 bool operator == (const wxBrush& brush) const;
45 bool operator != (const wxBrush& brush) const;
46 bool Ok() const;
47
48 int GetStyle() const;
49 wxColour &GetColour() const;
50 wxBitmap *GetStipple() const;
51
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);
56
57 // implementation:
58
32b8ec41
VZ
59 void* GetMaskPattern() const;
60 void* GetPixPattern() const;
61
6d7ee9e8
VS
62protected:
63 // ref counting code
64 virtual wxObjectRefData *CreateRefData() const;
65 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
66
32b8ec41
VZ
67private:
68 DECLARE_DYNAMIC_CLASS(wxBrush)
69};
70
71#endif // __WX_BRUSH_H__