]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/brush.h
popup activation scope and l&f
[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#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 virtual wxBrushStyle GetStyle() const;
44 wxBitmap *GetStipple() const;
45
46 // return the HBRUSH for this brush
47 virtual WXHANDLE GetResourceHandle() const;
48
49protected:
50 virtual wxGDIRefData *CreateGDIRefData() const;
51 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
52
53private:
54 DECLARE_DYNAMIC_CLASS(wxBrush)
55};
56
57#endif // _WX_BRUSH_H_