]>
git.saurik.com Git - wxWidgets.git/blob - src/motif/dcmemory.cpp
9a80e5f5495c552ef9f7a15bb759c9b436d074c1
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMemoryDC class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "dcmemory.h"
16 #include "wx/dcmemory.h"
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
,wxPaintDC
)
24 wxMemoryDC::wxMemoryDC(void)
29 wxMemoryDC::wxMemoryDC( wxDC
*WXUNUSED(dc
) )
34 wxMemoryDC::~wxMemoryDC(void)
38 void wxMemoryDC::SelectObject( const wxBitmap
& bitmap
)
50 void wxMemoryDC::GetSize( int *width
, int *height
) const
54 if (width
) (*width
) = m_selected
.GetWidth();
55 if (height
) (*height
) = m_selected
.GetHeight();
59 if (width
) (*width
) = 0;
60 if (height
) (*height
) = 0;