]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/dcmemory.cpp
AdjustScrollbars can go into an infinite loop, so bail out after a few
[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
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
42IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
43
44// ============================================================================
45// implementation
46// ============================================================================
47
48// ----------------------------------------------------------------------------
49// wxMemoryDC
50// ----------------------------------------------------------------------------
51
52wxMemoryDC::wxMemoryDC()
53{
54}
55
56wxMemoryDC::wxMemoryDC(wxDC *dc)
57{
58}
59
60void wxMemoryDC::Init()
61{
62}
63
64bool wxMemoryDC::CreateCompatible(wxDC *dc)
65{
66 return false;
67}
68
69void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
70{
71}
72
73void 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.
86static void wxDrawRectangle(wxDC& dc, wxCoord x, wxCoord y, wxCoord width, wxCoord height)
87{
88}
89
90#endif // wxUSE_MEMORY_DC_DRAW_RECTANGLE
91
92void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
93{
94}
95