]>
git.saurik.com Git - wxWidgets.git/blob - src/motif/dcmemory.cpp
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
, wxWindowDC
)
24 wxMemoryDC::wxMemoryDC(void)
29 wxMemoryDC::wxMemoryDC( wxDC
*WXUNUSED(dc
) )
34 wxMemoryDC::~wxMemoryDC(void)
38 void wxMemoryDC::SelectObject( const wxBitmap
& bitmap
)
43 m_pixmap
= m_bitmap
.GetPixmap();
51 void wxMemoryDC::GetSize( int *width
, int *height
) const
55 if (width
) (*width
) = m_bitmap
.GetWidth();
56 if (height
) (*height
) = m_bitmap
.GetHeight();
60 if (width
) (*width
) = 0;
61 if (height
) (*height
) = 0;