]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/dcmemory.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   2 // Name:        src/palmos/dcmemory.cpp 
   3 // Purpose:     wxMemoryDC class 
   4 // Author:      William Osborne - minimal working wxPalmOS port 
   8 // Copyright:   (c) William Osborne 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  12 // ============================================================================ 
  14 // ============================================================================ 
  16 // ---------------------------------------------------------------------------- 
  18 // ---------------------------------------------------------------------------- 
  20 // For compilers that support precompilation, includes "wx.h". 
  21 #include "wx/wxprec.h" 
  27 #include "wx/dcmemory.h" 
  28 #include "wx/palmos/dcmemory.h" 
  35 // ---------------------------------------------------------------------------- 
  37 // ---------------------------------------------------------------------------- 
  39 IMPLEMENT_ABSTRACT_CLASS(wxMemoryDCImpl
, wxPalmDCImpl
) 
  41 wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC 
*owner 
)  
  42         : wxPalmDCImpl( owner 
) 
  44     CreateCompatible(NULL
);  
  48 wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC 
*owner
, wxBitmap
& bitmap 
)  
  49         : wxPalmDCImpl( owner 
)  
  51     CreateCompatible(NULL
);  
  56 wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC 
*owner
, wxDC 
*dc 
) 
  57         : wxPalmDCImpl( owner 
)  
  59     wxCHECK_RET( dc
, _T("NULL dc in wxMemoryDC ctor") ); 
  66 void wxMemoryDCImpl::Init() 
  70 bool wxMemoryDCImpl::CreateCompatible(wxDC 
*dc
) 
  72     wxDCImpl 
*impl 
= dc 
? dc
->GetImpl() : NULL 
; 
  73     wxPalmDCImpl 
*msw_impl 
= wxDynamicCast( impl
, wxPalmDCImpl 
); 
  83 void wxMemoryDCImpl::DoSelect( const wxBitmap
& bitmap 
) 
  87 void wxMemoryDCImpl::DoGetSize(int *width
, int *height
) const 
  91 wxBitmap 
wxMemoryDCImpl::DoGetAsBitmap(const wxRect
* subrect
) const