]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/brush.h
Allow using wxDEFAULT as font size in wxOSX.
[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
53a2db12 23class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
2bda0e17 24{
2bda0e17 25public:
cafbad8f 26 wxBrush();
3e6858cd 27 wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
ac3688c0
FM
28#if FUTURE_WXWIN_COMPATIBILITY_3_0
29 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
30#endif
cafbad8f 31 wxBrush(const wxBitmap& stipple);
cafbad8f 32 virtual ~wxBrush();
2bda0e17 33
cafbad8f 34 virtual void SetColour(const wxColour& col);
1a1498c0 35 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
3e6858cd 36 virtual void SetStyle(wxBrushStyle style);
cafbad8f 37 virtual void SetStipple(const wxBitmap& stipple);
2bda0e17 38
cafbad8f
VZ
39 bool operator==(const wxBrush& brush) const;
40 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
2bda0e17 41
cafbad8f 42 wxColour GetColour() const;
231b9591 43 wxBrushStyle GetStyle() const;
cafbad8f 44 wxBitmap *GetStipple() const;
2bda0e17 45
bc735a68
VZ
46#if FUTURE_WXWIN_COMPATIBILITY_3_0
47 wxDEPRECATED_FUTURE( void SetStyle(int style) )
48 { SetStyle((wxBrushStyle)style); }
49#endif
50
2b5f62a0
VZ
51 // return the HBRUSH for this brush
52 virtual WXHANDLE GetResourceHandle() const;
2bda0e17 53
cafbad8f 54protected:
8f884a0d
VZ
55 virtual wxGDIRefData *CreateGDIRefData() const;
56 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
2bda0e17 57
cafbad8f
VZ
58private:
59 DECLARE_DYNAMIC_CLASS(wxBrush)
2bda0e17
KB
60};
61
8f884a0d 62#endif // _WX_BRUSH_H_