]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/dcmemory.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMemoryDC class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "dcmemory.h"
16 #include "wx/dcmemory.h"
18 #if !USE_SHARED_LIBRARY
19 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
, wxDC
)
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
26 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
,wxPaintDC
)
28 wxMemoryDC::wxMemoryDC(void)
33 wxMemoryDC::wxMemoryDC( wxDC
*WXUNUSED(dc
) )
38 wxMemoryDC::~wxMemoryDC(void)
42 void wxMemoryDC::SelectObject( const wxBitmap
& bitmap
)
54 void wxMemoryDC::GetSize( int *width
, int *height
) const
58 if (width
) (*width
) = m_selected
.GetWidth();
59 if (height
) (*height
) = m_selected
.GetHeight();
63 if (width
) (*width
) = 0;
64 if (height
) (*height
) = 0;