with FindOrCreateXXX() are managed by the lists
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12792
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Brushes
wxBrush::wxBrush()
{
// Brushes
wxBrush::wxBrush()
{
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
- if ( wxTheBrushList )
- wxTheBrushList->RemoveBrush(this);
}
wxBrush::wxBrush(const wxColour& col, int Style)
}
wxBrush::wxBrush(const wxColour& col, int Style)
M_BRUSHDATA->m_style = Style;
RealizeResource();
M_BRUSHDATA->m_style = Style;
RealizeResource();
-
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
wxBrush::wxBrush(const wxBitmap& stipple)
}
wxBrush::wxBrush(const wxBitmap& stipple)
M_BRUSHDATA->m_stipple = stipple;
RealizeResource();
M_BRUSHDATA->m_stipple = stipple;
RealizeResource();
-
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
void wxBrush::Unshare()
}
void wxBrush::Unshare()
// Brushes
wxBrush::wxBrush()
{
// Brushes
wxBrush::wxBrush()
{
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
- if ( wxTheBrushList )
- wxTheBrushList->RemoveBrush(this);
}
wxBrush::wxBrush(const wxColour& col, int Style)
}
wxBrush::wxBrush(const wxColour& col, int Style)
M_BRUSHDATA->m_style = Style;
RealizeResource();
M_BRUSHDATA->m_style = Style;
RealizeResource();
-
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
wxBrush::wxBrush(const wxBitmap& stipple)
}
wxBrush::wxBrush(const wxBitmap& stipple)
M_BRUSHDATA->m_stipple = stipple;
RealizeResource();
M_BRUSHDATA->m_stipple = stipple;
RealizeResource();
-
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
void wxBrush::Unshare()
}
void wxBrush::Unshare()
- if ( wxThePenList )
- wxThePenList->AddPen(this);
- if (wxThePenList)
- wxThePenList->RemovePen(this);
}
// Should implement Create
}
// Should implement Create
M_PENDATA->m_dash = 0 ;
RealizeResource();
M_PENDATA->m_dash = 0 ;
RealizeResource();
-
- if ( wxThePenList )
- wxThePenList->AddPen(this);
}
wxPen::wxPen(const wxBitmap& stipple, int Width)
}
wxPen::wxPen(const wxBitmap& stipple, int Width)
M_PENDATA->m_dash = 0 ;
RealizeResource();
M_PENDATA->m_dash = 0 ;
RealizeResource();
-
- if ( wxThePenList )
- wxThePenList->AddPen(this);
- if ( wxThePenList )
- wxThePenList->AddPen(this);
- if (wxThePenList)
- wxThePenList->RemovePen(this);
}
// Should implement Create
}
// Should implement Create
M_PENDATA->m_dash = 0 ;
RealizeResource();
M_PENDATA->m_dash = 0 ;
RealizeResource();
-
- if ( wxThePenList )
- wxThePenList->AddPen(this);
}
wxPen::wxPen(const wxBitmap& stipple, int Width)
}
wxPen::wxPen(const wxBitmap& stipple, int Width)
M_PENDATA->m_dash = 0 ;
RealizeResource();
M_PENDATA->m_dash = 0 ;
RealizeResource();
-
- if ( wxThePenList )
- wxThePenList->AddPen(this);