#include "wx/utils.h"
#include "wx/brush.h"
+#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject)
+#endif
wxBrushRefData::wxBrushRefData()
{
// 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()