]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/brush.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / cocoa / brush.h
CommitLineData
a24aff65 1/////////////////////////////////////////////////////////////////////////////
46562151 2// Name: wx/cocoa/brush.h
a24aff65 3// Purpose: wxBrush class
f162a338 4// Author: David Elliott <dfe@cox.net>
a24aff65 5// Modified by:
f162a338 6// Created: 2003/07/03
f162a338 7// Copyright: (c) 2003 David Elliott
ab9d0a8c 8// Licence: wxWindows licence
a24aff65
DE
9/////////////////////////////////////////////////////////////////////////////
10
f162a338
DE
11#ifndef __WX_COCOA_BRUSH_H__
12#define __WX_COCOA_BRUSH_H__
a24aff65
DE
13
14#include "wx/gdicmn.h"
15#include "wx/gdiobj.h"
16#include "wx/bitmap.h"
17
b5dbe15d 18class WXDLLIMPEXP_FWD_CORE wxBrush;
a24aff65 19
f162a338
DE
20// ========================================================================
21// wxBrush
22// ========================================================================
53a2db12 23class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
a24aff65 24{
f162a338
DE
25 DECLARE_DYNAMIC_CLASS(wxBrush)
26// ------------------------------------------------------------------------
27// initialization
28// ------------------------------------------------------------------------
a24aff65 29public:
f162a338 30 wxBrush();
3e6858cd 31 wxBrush(const wxColour& col, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
ac3688c0
FM
32#if FUTURE_WXWIN_COMPATIBILITY_3_0
33 wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
34#endif
f162a338 35 wxBrush(const wxBitmap& stipple);
d3c7fc99 36 virtual ~wxBrush();
a24aff65 37
f162a338
DE
38// ------------------------------------------------------------------------
39// Implementation
40// ------------------------------------------------------------------------
46562151 41 virtual void SetColour(const wxColour& col) ;
1a1498c0 42 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
3e6858cd 43 virtual void SetStyle(wxBrushStyle style) ;
46562151 44 virtual void SetStipple(const wxBitmap& stipple) ;
a24aff65 45
f162a338 46 // comparison
fbfb8bcc 47 bool operator == (const wxBrush& brush) const
f162a338 48 { return m_refData == brush.m_refData; }
fbfb8bcc 49 bool operator != (const wxBrush& brush) const
f162a338 50 { return m_refData != brush.m_refData; }
a24aff65 51
f162a338
DE
52 // accessors
53 wxColour GetColour() const;
3e6858cd 54 virtual wxBrushStyle GetStyle() const;
f162a338 55 wxBitmap *GetStipple() const;
a24aff65 56
bc735a68
VZ
57#if FUTURE_WXWIN_COMPATIBILITY_3_0
58 wxDEPRECATED_FUTURE( void SetStyle(int style) )
59 { SetStyle((wxBrushStyle)style); }
60#endif
61
f162a338
DE
62 // wxCocoa
63 WX_NSColor GetNSColor();
8f884a0d
VZ
64
65protected:
66 wxGDIRefData *CreateGDIRefData() const;
67 wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
a24aff65
DE
68};
69
f162a338 70#endif // __WX_COCOA_BRUSH_H__