]>
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( const wxBitmap
& bitmap
)
54 wxMemoryDC::wxMemoryDC(wxDC
*dc
)
58 void wxMemoryDC::Init()
62 bool wxMemoryDC::CreateCompatible(wxDC
*dc
)
67 void wxMemoryDC::SelectObject(const wxBitmap
& bitmap
)
71 void wxMemoryDC::DoGetSize(int *width
, int *height
) const
75 // the rest of this file deals with drawing rectangles workaround, disabled by
78 #define wxUSE_MEMORY_DC_DRAW_RECTANGLE 0
80 #if wxUSE_MEMORY_DC_DRAW_RECTANGLE
82 // For some reason, drawing a rectangle on a memory DC has problems.
83 // Use this substitute if we can.
84 static void wxDrawRectangle(wxDC
& dc
, wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)
88 #endif // wxUSE_MEMORY_DC_DRAW_RECTANGLE
90 void wxMemoryDC::DoDrawRectangle(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)