class wxBrushRefData : public wxGDIRefData
{
public:
- wxBrushRefData(const wxColour& clr = wxNullColour, int style = wxSOLID)
+ wxBrushRefData(const wxColour& clr = wxNullColour, wxBrushStyle style = wxBRUSHSTYLE_SOLID)
{
m_colour = clr;
SetStyle(style);
virtual bool IsOk() const { return m_colour.IsOk(); }
- void SetStyle(int style)
+ void SetStyle(wxBrushStyle style)
{
if ( style != wxSOLID && style != wxTRANSPARENT )
{
}
wxColour m_colour;
- int m_style;
+ wxBrushStyle m_style;
};
//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject)
-wxBrush::wxBrush(const wxColour &colour, int style)
+wxBrush::wxBrush(const wxColour &colour, wxBrushStyle style)
{
m_refData = new wxBrushRefData(colour, style);
}
return m_refData == brush.m_refData;
}
-int wxBrush::GetStyle() const
+wxBrushStyle wxBrush::GetStyle() const
{
if (m_refData == NULL)
{
M_BRUSHDATA->m_colour.Set(r, g, b);
}
-void wxBrush::SetStyle(int style)
+void wxBrush::SetStyle(wxBrushStyle style)
{
AllocExclusive();
M_BRUSHDATA->SetStyle(style);