1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/dcclient.cpp
3 // Purpose: wxClientDC 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/dcclient.h"
30 #include "wx/string.h"
32 #include "wx/window.h"
35 // ----------------------------------------------------------------------------
37 // ----------------------------------------------------------------------------
39 struct WXDLLEXPORT wxPaintDCInfo
41 wxPaintDCInfo(wxWindow
*win
, wxDC
*dc
)
43 handle
= win
->GetWinHandle();
48 WXWINHANDLE handle
; // window for this DC
49 WXHDC hdc
; // the DC handle
50 size_t count
; // usage count
53 #include "wx/arrimpl.cpp"
55 WX_DEFINE_OBJARRAY(wxArrayDCInfo
);
57 // ----------------------------------------------------------------------------
59 // ----------------------------------------------------------------------------
61 IMPLEMENT_DYNAMIC_CLASS(wxWindowDC
, wxDC
)
62 IMPLEMENT_DYNAMIC_CLASS(wxClientDC
, wxWindowDC
)
63 IMPLEMENT_DYNAMIC_CLASS(wxPaintDC
, wxClientDC
)
64 IMPLEMENT_CLASS(wxPaintDCEx
, wxPaintDC
)
66 // ----------------------------------------------------------------------------
68 // ----------------------------------------------------------------------------
74 // ===========================================================================
76 // ===========================================================================
78 // ----------------------------------------------------------------------------
80 // ----------------------------------------------------------------------------
82 wxWindowDC::wxWindowDC()
86 wxWindowDC::wxWindowDC(wxWindow
*canvas
)
90 void wxWindowDC::InitDC()
94 void wxWindowDC::DoGetSize(int *width
, int *height
) const
98 // ----------------------------------------------------------------------------
100 // ----------------------------------------------------------------------------
102 wxClientDC::wxClientDC()
106 wxClientDC::wxClientDC(wxWindow
*canvas
)
110 void wxClientDC::InitDC()
114 wxClientDC::~wxClientDC()
118 void wxClientDC::DoGetSize(int *width
, int *height
) const
122 // ----------------------------------------------------------------------------
124 // ----------------------------------------------------------------------------
126 wxArrayDCInfo
wxPaintDC::ms_cache
;
128 wxPaintDC::wxPaintDC()
132 wxPaintDC::wxPaintDC(wxWindow
*canvas
)
136 wxPaintDC::~wxPaintDC()
140 wxPaintDCInfo
*wxPaintDC::FindInCache(size_t *index
) const
145 WXHDC
wxPaintDC::FindDCInCache(wxWindow
* win
)
154 wxPaintDCEx::wxPaintDCEx(wxWindow
*canvas
, WXHDC dc
) : saveState(0)
158 wxPaintDCEx::~wxPaintDCEx()