]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mgl/brush.h
compilation fixes for PCH-less build
[wxWidgets.git] / include / wx / mgl / brush.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/mgl/brush.h
3// Purpose:
4// Author: Vaclav Slavik
5// Id: $Id$
6// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef __WX_BRUSH_H__
11#define __WX_BRUSH_H__
12
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
30class WXDLLEXPORT wxBrush: public wxBrushBase
31{
32public:
33 wxBrush() {}
34 wxBrush(const wxColour &colour, int style = wxSOLID);
35 wxBrush(const wxBitmap &stippleBitmap);
36 virtual ~wxBrush() {}
37 bool operator == (const wxBrush& brush) const;
38 bool operator != (const wxBrush& brush) const;
39 bool Ok() const { return IsOk(); }
40 bool IsOk() const;
41
42 virtual int GetStyle() const;
43 wxColour &GetColour() const;
44 wxBitmap *GetStipple() const;
45
46 void SetColour(const wxColour& col);
47 void SetColour(unsigned char r, unsigned char g, unsigned char b);
48 void SetStyle(int style);
49 void SetStipple(const wxBitmap& stipple);
50
51 // implementation:
52
53 void* GetMaskPattern() const;
54 void* GetPixPattern() const;
55
56protected:
57 // ref counting code
58 virtual wxObjectRefData *CreateRefData() const;
59 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
60
61private:
62 DECLARE_DYNAMIC_CLASS(wxBrush)
63};
64
65#endif // __WX_BRUSH_H__