]>
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 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
, wxDC
) 
  20 //----------------------------------------------------------------------------- 
  22 //----------------------------------------------------------------------------- 
  24 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
,wxPaintDC
) 
  26 wxMemoryDC::wxMemoryDC(void) 
  31 wxMemoryDC::wxMemoryDC( wxDC 
*WXUNUSED(dc
) ) 
  36 wxMemoryDC::~wxMemoryDC(void) 
  40 void wxMemoryDC::SelectObject( const wxBitmap
& bitmap 
) 
  52 void wxMemoryDC::GetSize( int *width
, int *height 
) const 
  56     if (width
) (*width
) = m_selected
.GetWidth(); 
  57     if (height
) (*height
) = m_selected
.GetHeight(); 
  61     if (width
) (*width
) = 0; 
  62     if (height
) (*height
) = 0;