]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/brush.h
Don't generate any events from wxSpinCtrl and wxSpinCtrlDouble methods.
[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
74dc5eb6 7// Copyright: (c) Julian Smart, Robert Roebling
ab9d0a8c 8// Licence: wxWindows licence
83df96d6
JS
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_BRUSH_H_
12#define _WX_BRUSH_H_
13
83df96d6 14#include "wx/gdiobj.h"
83df96d6 15
74dc5eb6
RR
16//-----------------------------------------------------------------------------
17// classes
18//-----------------------------------------------------------------------------
83df96d6 19
b5dbe15d
VS
20class WXDLLIMPEXP_FWD_CORE wxBrush;
21class WXDLLIMPEXP_FWD_CORE wxColour;
22class WXDLLIMPEXP_FWD_CORE wxBitmap;
83df96d6 23
74dc5eb6
RR
24//-----------------------------------------------------------------------------
25// wxBrush
26//-----------------------------------------------------------------------------
83df96d6 27
8f884a0d 28class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
83df96d6 29{
83df96d6 30public:
74dc5eb6 31 wxBrush() { }
ab9d0a8c 32
3e6858cd 33 wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
ac3688c0
FM
34#if FUTURE_WXWIN_COMPATIBILITY_3_0
35 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
36#endif
74dc5eb6 37 wxBrush( const wxBitmap &stippleBitmap );
d3c7fc99 38 virtual ~wxBrush();
ab9d0a8c 39
8f884a0d
VZ
40 bool operator==(const wxBrush& brush) const;
41 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
74dc5eb6 42
231b9591
FM
43 wxBrushStyle GetStyle() const;
44 wxColour GetColour() const;
74dc5eb6
RR
45 wxBitmap *GetStipple() const;
46
47 void SetColour( const wxColour& col );
1a1498c0 48 void SetColour( unsigned char r, unsigned char g, unsigned char b );
3e6858cd 49 void SetStyle( wxBrushStyle style );
74dc5eb6
RR
50 void SetStipple( const wxBitmap& stipple );
51
bc735a68
VZ
52#if FUTURE_WXWIN_COMPATIBILITY_3_0
53 wxDEPRECATED_FUTURE( void SetStyle(int style) )
54 { SetStyle((wxBrushStyle)style); }
55#endif
56
6f02a879 57protected:
8f884a0d
VZ
58 virtual wxGDIRefData *CreateGDIRefData() const;
59 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ab9d0a8c 60
74dc5eb6 61 DECLARE_DYNAMIC_CLASS(wxBrush)
83df96d6
JS
62};
63
8f884a0d 64#endif // _WX_BRUSH_H_