]>
git.saurik.com Git - wxWidgets.git/blob - src/cocoa/brush.cpp
1 /////////////////////////////////////////////////////////////////////////////
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "brush.h"
20 #if !USE_SHARED_LIBRARIES
21 IMPLEMENT_DYNAMIC_CLASS(wxBrush
, wxGDIObject
)
25 wxBrushRefData::wxBrushRefData()
31 wxBrushRefData::wxBrushRefData(const wxBrushRefData
& data
)
33 m_style
= data
.m_style
;
34 m_stipple
= data
.m_stipple
;
35 m_colour
= data
.m_colour
;
41 wxBrushRefData::~wxBrushRefData()
51 wxTheBrushList
->AddBrush(this);
57 wxTheBrushList
->RemoveBrush(this);
60 wxBrush::wxBrush(const wxColour
& col
, int Style
)
63 wxTheBrushList
->AddBrush(this);
66 wxBrush::wxBrush(const wxBitmap
& stipple
)
69 wxTheBrushList
->AddBrush(this);
72 void wxBrush::Unshare()
76 void wxBrush::SetColour(const wxColour
& col
)
82 void wxBrush::SetColour(unsigned char r
, unsigned char g
, unsigned char b
)
90 void wxBrush::SetStyle(int Style
)
98 void wxBrush::SetStipple(const wxBitmap
& Stipple
)
106 bool wxBrush::RealizeResource()
108 // TODO: create the brush
112 int wxBrush::GetStyle() const
117 wxColour
& wxBrush::GetColour() const