]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/brush.h
pch-less compilation fix for r55285
[wxWidgets.git] / include / wx / palmos / brush.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/brush.h
3// Purpose: wxBrush class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BRUSH_H_
13#define _WX_BRUSH_H_
14
ffecfa5a
JS
15#include "wx/gdicmn.h"
16#include "wx/gdiobj.h"
17#include "wx/bitmap.h"
18
b5dbe15d 19class WXDLLIMPEXP_FWD_CORE wxBrush;
ffecfa5a
JS
20
21// ----------------------------------------------------------------------------
22// wxBrush
23// ----------------------------------------------------------------------------
24
53a2db12 25class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
ffecfa5a
JS
26{
27public:
28 wxBrush();
3e6858cd 29 wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
ac3688c0
FM
30#if FUTURE_WXWIN_COMPATIBILITY_3_0
31 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
32#endif
ffecfa5a 33 wxBrush(const wxBitmap& stipple);
ffecfa5a
JS
34 virtual ~wxBrush();
35
36 virtual void SetColour(const wxColour& col);
1a1498c0 37 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
3e6858cd 38 virtual void SetStyle(wxBrushStyle style);
ffecfa5a
JS
39 virtual void SetStipple(const wxBitmap& stipple);
40
ffecfa5a
JS
41 bool operator==(const wxBrush& brush) const;
42 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
43
44 wxColour GetColour() const;
231b9591 45 wxBrushStyle GetStyle() const;
ffecfa5a
JS
46 wxBitmap *GetStipple() const;
47
bc735a68
VZ
48#if FUTURE_WXWIN_COMPATIBILITY_3_0
49 wxDEPRECATED_FUTURE( void SetStyle(int style) )
50 { SetStyle((wxBrushStyle)style); }
51#endif
52
ffecfa5a
JS
53 // return the HBRUSH for this brush
54 virtual WXHANDLE GetResourceHandle() const;
55
56protected:
8f884a0d
VZ
57 virtual wxGDIRefData *CreateGDIRefData() const;
58 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ffecfa5a
JS
59
60private:
61 DECLARE_DYNAMIC_CLASS(wxBrush)
62};
63
8f884a0d 64#endif // _WX_BRUSH_H_