]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/dcmemory.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "dcmemory.h"
15 #include "wx/dcmemory.h"
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
,wxPaintDC
)
23 wxMemoryDC::wxMemoryDC(void)
28 wxMemoryDC::wxMemoryDC( wxDC
*WXUNUSED(dc
) )
33 wxMemoryDC::~wxMemoryDC(void)
37 void wxMemoryDC::SelectObject( const wxBitmap
& bitmap
)
49 void wxMemoryDC::GetSize( int *width
, int *height
) const
53 if (width
) (*width
) = m_selected
.GetWidth();
54 if (height
) (*height
) = m_selected
.GetHeight();
58 if (width
) (*width
) = 0;
59 if (height
) (*height
) = 0;