Headers cleaning.
[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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "dcmemory.h"
22 #endif
23
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
26
27 #ifdef __BORLANDC__
28 #pragma hdrstop
29 #endif
30
31 #ifndef WX_PRECOMP
32 #include "wx/utils.h"
33 #include "wx/log.h"
34 #endif
35
36 #include "wx/dcmemory.h"
37
38 // ----------------------------------------------------------------------------
39 // wxWin macros
40 // ----------------------------------------------------------------------------
41
42 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
43
44 // ============================================================================
45 // implementation
46 // ============================================================================
47
48 // ----------------------------------------------------------------------------
49 // wxMemoryDC
50 // ----------------------------------------------------------------------------
51
52 wxMemoryDC::wxMemoryDC()
53 {
54 }
55
56 wxMemoryDC::wxMemoryDC(wxDC *dc)
57 {
58 }
59
60 void wxMemoryDC::Init()
61 {
62 }
63
64 bool wxMemoryDC::CreateCompatible(wxDC *dc)
65 {
66 return false;
67 }
68
69 void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
70 {
71 }
72
73 void wxMemoryDC::DoGetSize(int *width, int *height) const
74 {
75 }
76
77 // the rest of this file deals with drawing rectangles workaround, disabled by
78 // default
79
80 #define wxUSE_MEMORY_DC_DRAW_RECTANGLE 0
81
82 #if wxUSE_MEMORY_DC_DRAW_RECTANGLE
83
84 // For some reason, drawing a rectangle on a memory DC has problems.
85 // Use this substitute if we can.
86 static void wxDrawRectangle(wxDC& dc, wxCoord x, wxCoord y, wxCoord width, wxCoord height)
87 {
88 }
89
90 #endif // wxUSE_MEMORY_DC_DRAW_RECTANGLE
91
92 void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
93 {
94 }
95