]>
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(wxDC
*dc
)
52 void wxMemoryDC::Init()
56 bool wxMemoryDC::CreateCompatible(wxDC
*dc
)
61 void wxMemoryDC::DoSelect(const wxBitmap
& bitmap
)
65 void wxMemoryDC::DoGetSize(int *width
, int *height
) const
69 // the rest of this file deals with drawing rectangles workaround, disabled by
72 #define wxUSE_MEMORY_DC_DRAW_RECTANGLE 0
74 #if wxUSE_MEMORY_DC_DRAW_RECTANGLE
76 // For some reason, drawing a rectangle on a memory DC has problems.
77 // Use this substitute if we can.
78 static void wxDrawRectangle(wxDC
& dc
, wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)
82 #endif // wxUSE_MEMORY_DC_DRAW_RECTANGLE
84 void wxMemoryDC::DoDrawRectangle(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)