]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mgl/brush.h
fixed wxGTK1 compilation after wxDC changes (still doesn't work)
[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 WXDLLIMPEXP_FWD_CORE wxBitmap;
24class WXDLLIMPEXP_FWD_CORE 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
37 bool operator==(const wxBrush& brush) const;
38 bool operator!=(const wxBrush& brush) const;
39
40 virtual int GetStyle() const;
41 wxColour &GetColour() const;
42 wxBitmap *GetStipple() const;
43
44 void SetColour(const wxColour& col);
45 void SetColour(unsigned char r, unsigned char g, unsigned char b);
46 void SetStyle(int style);
47 void SetStipple(const wxBitmap& stipple);
48
49 // implementation:
50
51 void* GetMaskPattern() const;
52 void* GetPixPattern() const;
53
54protected:
55 virtual wxGDIRefData *CreateGDIRefData() const;
56 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
57
58private:
59 DECLARE_DYNAMIC_CLASS(wxBrush)
60};
61
62#endif // __WX_BRUSH_H__