]>
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 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
27 #include "wx/dcmemory.h"
34 // ----------------------------------------------------------------------------
36 // ----------------------------------------------------------------------------
38 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC
, wxDC
)
40 // ============================================================================
42 // ============================================================================
44 // ----------------------------------------------------------------------------
46 // ----------------------------------------------------------------------------
48 wxMemoryDC::wxMemoryDC()
52 wxMemoryDC::wxMemoryDC(wxDC
*dc
)
56 void wxMemoryDC::Init()
60 bool wxMemoryDC::CreateCompatible(wxDC
*dc
)
65 void wxMemoryDC::SelectObject(const wxBitmap
& bitmap
)
69 void wxMemoryDC::DoGetSize(int *width
, int *height
) const
73 // the rest of this file deals with drawing rectangles workaround, disabled by
76 #define wxUSE_MEMORY_DC_DRAW_RECTANGLE 0
78 #if wxUSE_MEMORY_DC_DRAW_RECTANGLE
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
)
86 #endif // wxUSE_MEMORY_DC_DRAW_RECTANGLE
88 void wxMemoryDC::DoDrawRectangle(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)