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/string.h"
29 #include "wx/window.h"
31 #include "wx/dcclient.h"
33 // ----------------------------------------------------------------------------
35 // ----------------------------------------------------------------------------
37 struct WXDLLEXPORT wxPaintDCInfo
39 wxPaintDCInfo(wxWindow
*win
, wxDC
*dc
)
41 handle
= win
->GetWinHandle();
46 WXWINHANDLE handle
; // window for this DC
47 WXHDC hdc
; // the DC handle
48 size_t count
; // usage count
51 #include "wx/arrimpl.cpp"
53 WX_DEFINE_OBJARRAY(wxArrayDCInfo
);
55 // ----------------------------------------------------------------------------
57 // ----------------------------------------------------------------------------
59 IMPLEMENT_DYNAMIC_CLASS(wxWindowDC
, wxDC
)
60 IMPLEMENT_DYNAMIC_CLASS(wxClientDC
, wxWindowDC
)
61 IMPLEMENT_DYNAMIC_CLASS(wxPaintDC
, wxClientDC
)
62 IMPLEMENT_CLASS(wxPaintDCEx
, wxPaintDC
)
64 // ----------------------------------------------------------------------------
66 // ----------------------------------------------------------------------------
72 // ===========================================================================
74 // ===========================================================================
76 // ----------------------------------------------------------------------------
78 // ----------------------------------------------------------------------------
80 wxWindowDC::wxWindowDC()
84 wxWindowDC::wxWindowDC(wxWindow
*canvas
)
88 void wxWindowDC::InitDC()
92 void wxWindowDC::DoGetSize(int *width
, int *height
) const
96 // ----------------------------------------------------------------------------
98 // ----------------------------------------------------------------------------
100 wxClientDC::wxClientDC()
104 wxClientDC::wxClientDC(wxWindow
*canvas
)
108 void wxClientDC::InitDC()
112 wxClientDC::~wxClientDC()
116 void wxClientDC::DoGetSize(int *width
, int *height
) const
120 // ----------------------------------------------------------------------------
122 // ----------------------------------------------------------------------------
124 wxArrayDCInfo
wxPaintDC::ms_cache
;
126 wxPaintDC::wxPaintDC()
130 wxPaintDC::wxPaintDC(wxWindow
*canvas
)
134 wxPaintDC::~wxPaintDC()
138 wxPaintDCInfo
*wxPaintDC::FindInCache(size_t *index
) const
143 WXHDC
wxPaintDC::FindDCInCache(wxWindow
* win
)
152 wxPaintDCEx::wxPaintDCEx(wxWindow
*canvas
, WXHDC dc
) : saveState(0)
156 wxPaintDCEx::~wxPaintDCEx()