]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/dcmemory.cpp
Ryan's cumulative wxActiveX and media control patch (1427775)
[wxWidgets.git] / src / palmos / dcmemory.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/dcmemory.cpp
3 // Purpose: wxMemoryDC class
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #ifndef WX_PRECOMP
28 #include "wx/utils.h"
29 #include "wx/log.h"
30 #endif
31
32 #include "wx/dcmemory.h"
33
34 // ----------------------------------------------------------------------------
35 // wxWin macros
36 // ----------------------------------------------------------------------------
37
38 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
39
40 // ============================================================================
41 // implementation
42 // ============================================================================
43
44 // ----------------------------------------------------------------------------
45 // wxMemoryDC
46 // ----------------------------------------------------------------------------
47
48 wxMemoryDC::wxMemoryDC()
49 {
50 }
51
52 wxMemoryDC::wxMemoryDC(wxDC *dc)
53 {
54 }
55
56 void wxMemoryDC::Init()
57 {
58 }
59
60 bool wxMemoryDC::CreateCompatible(wxDC *dc)
61 {
62 return false;
63 }
64
65 void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
66 {
67 }
68
69 void wxMemoryDC::DoGetSize(int *width, int *height) const
70 {
71 }
72
73 // the rest of this file deals with drawing rectangles workaround, disabled by
74 // default
75
76 #define wxUSE_MEMORY_DC_DRAW_RECTANGLE 0
77
78 #if wxUSE_MEMORY_DC_DRAW_RECTANGLE
79
80 // For some reason, drawing a rectangle on a memory DC has problems.
81 // Use this substitute if we can.
82 static void wxDrawRectangle(wxDC& dc, wxCoord x, wxCoord y, wxCoord width, wxCoord height)
83 {
84 }
85
86 #endif // wxUSE_MEMORY_DC_DRAW_RECTANGLE
87
88 void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
89 {
90 }
91