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