]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/dcmemory.cpp
non-PCH build fix (according to Tinderbox).
[wxWidgets.git] / src / palmos / dcmemory.cpp
CommitLineData
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
WS
27#include "wx/dcmemory.h"
28
ffecfa5a
JS
29#ifndef WX_PRECOMP
30 #include "wx/utils.h"
31 #include "wx/log.h"
32#endif
33
ffecfa5a
JS
34// ----------------------------------------------------------------------------
35// wxWin macros
36// ----------------------------------------------------------------------------
37
38IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
39
40// ============================================================================
41// implementation
42// ============================================================================
43
44// ----------------------------------------------------------------------------
45// wxMemoryDC
46// ----------------------------------------------------------------------------
47
432efcb0 48wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
ffecfa5a 49{
432efcb0
RD
50 if ( bitmap.IsOk() )
51 SelectObject(bitmap);
ffecfa5a
JS
52}
53
54wxMemoryDC::wxMemoryDC(wxDC *dc)
55{
56}
57
58void wxMemoryDC::Init()
59{
60}
61
62bool wxMemoryDC::CreateCompatible(wxDC *dc)
63{
64 return false;
65}
66
67void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
68{
69}
70
71void wxMemoryDC::DoGetSize(int *width, int *height) const
72{
73}
74
75// the rest of this file deals with drawing rectangles workaround, disabled by
76// default
77
78#define wxUSE_MEMORY_DC_DRAW_RECTANGLE 0
79
80#if wxUSE_MEMORY_DC_DRAW_RECTANGLE
81
82// For some reason, drawing a rectangle on a memory DC has problems.
83// Use this substitute if we can.
84static void wxDrawRectangle(wxDC& dc, wxCoord x, wxCoord y, wxCoord width, wxCoord height)
85{
86}
87
88#endif // wxUSE_MEMORY_DC_DRAW_RECTANGLE
89
90void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
91{
92}