]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/brush.h
fix typos and update MSW code to use new wxPENSTYLE_* enum values
[wxWidgets.git] / include / wx / msw / brush.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
cafbad8f 2// Name: wx/msw/brush.h
2bda0e17
KB
3// Purpose: wxBrush class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_BRUSH_H_
13#define _WX_BRUSH_H_
2bda0e17 14
b5dbe15d 15class WXDLLIMPEXP_FWD_CORE wxBrush;
6ffb03be
FM
16class WXDLLIMPEXP_FWD_CORE wxColour;
17class WXDLLIMPEXP_FWD_CORE wxBitmap;
2bda0e17 18
cafbad8f
VZ
19// ----------------------------------------------------------------------------
20// wxBrush
21// ----------------------------------------------------------------------------
22
cb9d5bd0 23class WXDLLEXPORT wxBrush : public wxBrushBase
2bda0e17 24{
2bda0e17 25public:
cafbad8f 26 wxBrush();
3e6858cd 27 wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
cafbad8f 28 wxBrush(const wxBitmap& stipple);
cafbad8f 29 virtual ~wxBrush();
2bda0e17 30
cafbad8f 31 virtual void SetColour(const wxColour& col);
1a1498c0 32 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
3e6858cd 33 virtual void SetStyle(wxBrushStyle style);
cafbad8f 34 virtual void SetStipple(const wxBitmap& stipple);
2bda0e17 35
cafbad8f
VZ
36 bool operator==(const wxBrush& brush) const;
37 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
2bda0e17 38
cafbad8f 39 wxColour GetColour() const;
3e6858cd 40 virtual wxBrushStyle GetStyle() const;
cafbad8f 41 wxBitmap *GetStipple() const;
2bda0e17 42
2b5f62a0
VZ
43 // return the HBRUSH for this brush
44 virtual WXHANDLE GetResourceHandle() const;
2bda0e17 45
cafbad8f 46protected:
8f884a0d
VZ
47 virtual wxGDIRefData *CreateGDIRefData() const;
48 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
2bda0e17 49
cafbad8f
VZ
50private:
51 DECLARE_DYNAMIC_CLASS(wxBrush)
2bda0e17
KB
52};
53
8f884a0d 54#endif // _WX_BRUSH_H_