IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
-wxMemoryDC::wxMemoryDC() : wxDC()
+void wxMemoryDC::Init()
{
m_isMemDC = true;
}
wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc)) : wxDC()
{
- m_isMemDC = true;
+ Init();
}
wxMemoryDC::~wxMemoryDC()
{
}
-void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
+void wxMemoryDC::DoSelect(const wxBitmap& bitmap)
{
- if ( bitmap.Ok() )
+ if ( bitmap.IsOk() )
{
m_selected = bitmap;
SetMGLDC(m_selected.CreateTmpDC(), TRUE);
void wxMemoryDC::SetPen(const wxPen &pen)
{
- wxCHECK_RET( Ok(), wxT("invalid dc") );
+ wxCHECK_RET( IsOk(), wxT("invalid dc") );
if ( GetDepth() == 1 && *wxTRANSPARENT_PEN != pen )
{
void wxMemoryDC::SetBrush(const wxBrush &brush)
{
- wxCHECK_RET( Ok(), wxT("invalid dc") );
+ wxCHECK_RET( IsOk(), wxT("invalid dc") );
if ( GetDepth() == 1 && *wxTRANSPARENT_BRUSH != brush )
{
void wxMemoryDC::SetTextForeground(const wxColour &col)
{
- wxCHECK_RET( Ok(), wxT("invalid dc") );
+ wxCHECK_RET( IsOk(), wxT("invalid dc") );
if ( GetDepth() == 1 )
{
void wxMemoryDC::SetTextBackground(const wxColour &col)
{
- wxCHECK_RET( Ok(), wxT("invalid dc") );
+ wxCHECK_RET( IsOk(), wxT("invalid dc") );
if ( GetDepth() == 1 )
{