]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/brush.h
Added wxPGProperty::SetDefaultValue(v), as a shortcut for SetAttribute(DefaultValue, v)
[wxWidgets.git] / include / wx / os2 / brush.h
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
46562151 2// Name: wx/os2/brush.h
0e320a79 3// Purpose: wxBrush class
37f214d5 4// Author: David Webster
0e320a79 5// Modified by:
37f214d5 6// Created: 10/13/99
0e320a79 7// RCS-ID: $Id$
37f214d5 8// Copyright: (c) David Webster
65571936 9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BRUSH_H_
13#define _WX_BRUSH_H_
14
09b67c66 15#include "wx/bitmap.h"
0e320a79
DW
16
17// Brush
53a2db12 18class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
0e320a79 19{
0e320a79 20public:
15f03b25 21 wxBrush();
3e6858cd 22 wxBrush(const wxColour& rCol, wxBrushStyle nStyle = wxBRUSHSTYLE_SOLID);
ac3688c0
FM
23#if FUTURE_WXWIN_COMPATIBILITY_3_0
24 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
25#endif
15f03b25 26 wxBrush(const wxBitmap& rStipple);
d3c7fc99 27 virtual ~wxBrush();
15f03b25 28
86e75e59 29 bool operator == (const wxBrush& rBrush) const;
55ccdb93 30 inline bool operator != (const wxBrush& rBrush) const { return !(*this == rBrush); }
15f03b25
DW
31
32 virtual void SetColour(const wxColour& rColour);
1a1498c0 33 virtual void SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBrush);
15f03b25 34 virtual void SetPS(HPS hPS);
3e6858cd 35 virtual void SetStyle(wxBrushStyle nStyle);
15f03b25
DW
36 virtual void SetStipple(const wxBitmap& rStipple);
37
1aca6611 38 wxColour GetColour(void) const;
231b9591 39 wxBrushStyle GetStyle(void) const;
1aca6611
SN
40 wxBitmap* GetStipple(void) const;
41 int GetPS(void) const;
15f03b25 42
bc735a68
VZ
43#if FUTURE_WXWIN_COMPATIBILITY_3_0
44 wxDEPRECATED_FUTURE( void SetStyle(int style) )
45 { SetStyle((wxBrushStyle)style); }
46#endif
47
15f03b25
DW
48 //
49 // Implementation
50 //
51
52 //
53 // Useful helper: create the brush resource
54 //
55 bool RealizeResource(void);
17b1d76b 56 virtual WXHANDLE GetResourceHandle(void) const;
ab9d0a8c 57 bool FreeResource(bool bForce = false);
15f03b25 58 bool IsFree(void) const;
4b3f61d1
SN
59
60protected:
61 virtual wxGDIRefData *CreateGDIRefData() const;
62 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
63
64private:
65 DECLARE_DYNAMIC_CLASS(wxBrush)
15f03b25 66}; // end of CLASS wxBrush
0e320a79
DW
67
68#endif
69 // _WX_BRUSH_H_