]>
Commit | Line | Data |
---|---|---|
ffecfa5a | 1 | ///////////////////////////////////////////////////////////////////////////// |
e2731512 | 2 | // Name: src/palmos/dcmemory.cpp |
ffecfa5a | 3 | // Purpose: wxMemoryDC class |
e2731512 | 4 | // Author: William Osborne - minimal working wxPalmOS port |
ffecfa5a JS |
5 | // Modified by: |
6 | // Created: 10/13/04 | |
e2731512 | 7 | // RCS-ID: $Id$ |
ffecfa5a JS |
8 | // Copyright: (c) William Osborne |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // ============================================================================ | |
13 | // declarations | |
14 | // ============================================================================ | |
15 | ||
16 | // ---------------------------------------------------------------------------- | |
17 | // headers | |
18 | // ---------------------------------------------------------------------------- | |
19 | ||
ffecfa5a JS |
20 | // For compilers that support precompilation, includes "wx.h". |
21 | #include "wx/wxprec.h" | |
22 | ||
23 | #ifdef __BORLANDC__ | |
24 | #pragma hdrstop | |
25 | #endif | |
26 | ||
f38924e8 | 27 | #include "wx/dcmemory.h" |
e2fc40b4 | 28 | #include "wx/palmos/dcmemory.h" |
f38924e8 | 29 | |
ffecfa5a JS |
30 | #ifndef WX_PRECOMP |
31 | #include "wx/utils.h" | |
32 | #include "wx/log.h" | |
33 | #endif | |
34 | ||
ffecfa5a | 35 | // ---------------------------------------------------------------------------- |
e2fc40b4 | 36 | // wxMemoryDCImpl |
ffecfa5a JS |
37 | // ---------------------------------------------------------------------------- |
38 | ||
e2fc40b4 | 39 | IMPLEMENT_ABSTRACT_CLASS(wxMemoryDCImpl, wxPalmDCImpl) |
ffecfa5a | 40 | |
e2fc40b4 VZ |
41 | wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner ) |
42 | : wxPalmDCImpl( owner ) | |
ffecfa5a | 43 | { |
e2fc40b4 VZ |
44 | CreateCompatible(NULL); |
45 | Init(); | |
ffecfa5a JS |
46 | } |
47 | ||
e2fc40b4 VZ |
48 | wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap ) |
49 | : wxPalmDCImpl( owner ) | |
50 | { | |
51 | CreateCompatible(NULL); | |
52 | Init(); | |
53 | DoSelect(bitmap); | |
ffecfa5a JS |
54 | } |
55 | ||
e2fc40b4 VZ |
56 | wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ) |
57 | : wxPalmDCImpl( owner ) | |
ffecfa5a | 58 | { |
e2fc40b4 | 59 | wxCHECK_RET( dc, _T("NULL dc in wxMemoryDC ctor") ); |
ffecfa5a | 60 | |
e2fc40b4 VZ |
61 | CreateCompatible(dc); |
62 | ||
63 | Init(); | |
ffecfa5a JS |
64 | } |
65 | ||
e2fc40b4 | 66 | void wxMemoryDCImpl::Init() |
ffecfa5a JS |
67 | { |
68 | } | |
69 | ||
e2fc40b4 VZ |
70 | bool wxMemoryDCImpl::CreateCompatible(wxDC *dc) |
71 | { | |
72 | wxDCImpl *impl = dc ? dc->GetImpl() : NULL ; | |
73 | wxPalmDCImpl *msw_impl = wxDynamicCast( impl, wxPalmDCImpl ); | |
74 | if ( dc && !msw_impl) | |
75 | { | |
76 | m_ok = false; | |
77 | return false; | |
78 | } | |
ffecfa5a | 79 | |
e2fc40b4 VZ |
80 | return false; |
81 | } | |
ffecfa5a | 82 | |
e2fc40b4 | 83 | void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap ) |
ffecfa5a JS |
84 | { |
85 | } | |
86 | ||
e2fc40b4 VZ |
87 | void wxMemoryDCImpl::DoGetSize(int *width, int *height) const |
88 | { | |
89 | } | |
ffecfa5a | 90 | |
e2fc40b4 | 91 | wxBitmap wxMemoryDCImpl::DoGetAsBitmap(const wxRect* subrect) const |
ffecfa5a JS |
92 | { |
93 | } |