]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/dcmemory.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/dcmemory.cpp
3 // Purpose: wxMemoryDC class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "dcmemory.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
36 #include "wx/dcmemory.h"
38 // ----------------------------------------------------------------------------
40 // ----------------------------------------------------------------------------
42 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
, wxDC
)
44 // ============================================================================
46 // ============================================================================
48 // ----------------------------------------------------------------------------
50 // ----------------------------------------------------------------------------
52 wxMemoryDC::wxMemoryDC()
56 wxMemoryDC::wxMemoryDC(wxDC
*dc
)
60 void wxMemoryDC::Init()
64 bool wxMemoryDC::CreateCompatible(wxDC
*dc
)
69 void wxMemoryDC::SelectObject(const wxBitmap
& bitmap
)
73 void wxMemoryDC::DoGetSize(int *width
, int *height
) const
77 // the rest of this file deals with drawing rectangles workaround, disabled by
80 #define wxUSE_MEMORY_DC_DRAW_RECTANGLE 0
82 #if wxUSE_MEMORY_DC_DRAW_RECTANGLE
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
)
90 #endif // wxUSE_MEMORY_DC_DRAW_RECTANGLE
92 void wxMemoryDC::DoDrawRectangle(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)