]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/brush.h
add more pure virtuals to wxBrushBase; fix the GetColour() functions to return a...
[wxWidgets.git] / include / wx / x11 / brush.h
CommitLineData
83df96d6 1/////////////////////////////////////////////////////////////////////////////
46562151 2// Name: wx/x11/brush.h
83df96d6 3// Purpose: wxBrush class
74dc5eb6 4// Author: Julian Smart, Robert Roebling
83df96d6
JS
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
74dc5eb6 8// Copyright: (c) Julian Smart, Robert Roebling
ab9d0a8c 9// Licence: wxWindows licence
83df96d6
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BRUSH_H_
13#define _WX_BRUSH_H_
14
83df96d6 15#include "wx/gdiobj.h"
83df96d6 16
74dc5eb6
RR
17//-----------------------------------------------------------------------------
18// classes
19//-----------------------------------------------------------------------------
83df96d6 20
b5dbe15d
VS
21class WXDLLIMPEXP_FWD_CORE wxBrush;
22class WXDLLIMPEXP_FWD_CORE wxColour;
23class WXDLLIMPEXP_FWD_CORE wxBitmap;
83df96d6 24
74dc5eb6
RR
25//-----------------------------------------------------------------------------
26// wxBrush
27//-----------------------------------------------------------------------------
83df96d6 28
8f884a0d 29class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
83df96d6 30{
83df96d6 31public:
74dc5eb6 32 wxBrush() { }
ab9d0a8c 33
3e6858cd 34 wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
ac3688c0
FM
35#if FUTURE_WXWIN_COMPATIBILITY_3_0
36 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
37#endif
74dc5eb6 38 wxBrush( const wxBitmap &stippleBitmap );
d3c7fc99 39 virtual ~wxBrush();
ab9d0a8c 40
8f884a0d
VZ
41 bool operator==(const wxBrush& brush) const;
42 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
74dc5eb6 43
231b9591
FM
44 wxBrushStyle GetStyle() const;
45 wxColour GetColour() const;
74dc5eb6
RR
46 wxBitmap *GetStipple() const;
47
48 void SetColour( const wxColour& col );
1a1498c0 49 void SetColour( unsigned char r, unsigned char g, unsigned char b );
3e6858cd 50 void SetStyle( wxBrushStyle style );
74dc5eb6
RR
51 void SetStipple( const wxBitmap& stipple );
52
6f02a879 53protected:
8f884a0d
VZ
54 virtual wxGDIRefData *CreateGDIRefData() const;
55 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ab9d0a8c 56
74dc5eb6 57 DECLARE_DYNAMIC_CLASS(wxBrush)
83df96d6
JS
58};
59
8f884a0d 60#endif // _WX_BRUSH_H_