]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/brush.h
remove SetBackgroundStyle call from OnInternalIdle, it should be done from realize...
[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 WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
24{
25public:
26 wxBrush();
27 wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
28#if FUTURE_WXWIN_COMPATIBILITY_3_0
29 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
30#endif
31 wxBrush(const wxBitmap& stipple);
32 virtual ~wxBrush();
33
34 virtual void SetColour(const wxColour& col);
35 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
36 virtual void SetStyle(wxBrushStyle style);
37 virtual void SetStipple(const wxBitmap& stipple);
38
39 bool operator==(const wxBrush& brush) const;
40 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
41
42 wxColour GetColour() const;
43 wxBrushStyle GetStyle() const;
44 wxBitmap *GetStipple() const;
45
46#if FUTURE_WXWIN_COMPATIBILITY_3_0
47 wxDEPRECATED_FUTURE( void SetStyle(int style) )
48 { SetStyle((wxBrushStyle)style); }
49#endif
50
51 // return the HBRUSH for this brush
52 virtual WXHANDLE GetResourceHandle() 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_