wxBrushRefData::wxBrushRefData()
{
m_style = wxSOLID;
-// TODO: null data
}
wxBrushRefData::wxBrushRefData(const wxBrushRefData& data)
m_style = data.m_style;
m_stipple = data.m_stipple;
m_colour = data.m_colour;
-/* TODO: null data
- m_hBrush = 0;
-*/
}
wxBrushRefData::~wxBrushRefData()
{
-// TODO: delete data
}
// Brushes
wxBrush::wxBrush()
{
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
wxBrush::~wxBrush()
{
- if ( wxTheBrushList )
- wxTheBrushList->RemoveBrush(this);
}
wxBrush::wxBrush(const wxColour& col, int Style)
M_BRUSHDATA->m_style = Style;
RealizeResource();
-
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
wxBrush::wxBrush(const wxBitmap& stipple)
M_BRUSHDATA->m_stipple = stipple;
RealizeResource();
-
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
void wxBrush::Unshare()
bool wxBrush::RealizeResource()
{
-// TODO: create the brush
- return FALSE;
+ return TRUE;
}