wxTheBrushList->AddBrush(this);
}
-wxBrush::wxBrush(const wxString& col, int Style)
-{
- m_refData = new wxBrushRefData;
-
- M_BRUSHDATA->m_colour = col;
- M_BRUSHDATA->m_style = Style;
- M_BRUSHDATA->m_hBrush = 0;
-
- RealizeResource();
-
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
-}
-
wxBrush::wxBrush(const wxBitmap& stipple)
{
m_refData = new wxBrushRefData;
return (WXHANDLE) M_BRUSHDATA->m_hBrush;
}
-bool wxBrush::FreeResource(bool force)
+bool wxBrush::FreeResource(bool WXUNUSED(force))
{
if (M_BRUSHDATA && (M_BRUSHDATA->m_hBrush != 0))
{
RealizeResource();
}
-void wxBrush::SetColour(const wxString& col)
-{
- Unshare();
-
- M_BRUSHDATA->m_colour = col;
-
- RealizeResource();
-}
-
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
Unshare();