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"
34 #include "wx/window.h"
36 // ----------------------------------------------------------------------------
38 // ----------------------------------------------------------------------------
40 struct WXDLLEXPORT wxPaintDCInfo
42 wxPaintDCInfo(wxWindow
*win
, wxDC
*dc
)
44 handle
= win
->GetWinHandle();
49 WXWINHANDLE handle
; // window for this DC
50 WXHDC hdc
; // the DC handle
51 size_t count
; // usage count
54 #include "wx/arrimpl.cpp"
56 WX_DEFINE_OBJARRAY(wxArrayDCInfo
);
58 // ----------------------------------------------------------------------------
60 // ----------------------------------------------------------------------------
62 IMPLEMENT_DYNAMIC_CLASS(wxWindowDC
, wxDC
)
63 IMPLEMENT_DYNAMIC_CLASS(wxClientDC
, wxWindowDC
)
64 IMPLEMENT_DYNAMIC_CLASS(wxPaintDC
, wxClientDC
)
65 IMPLEMENT_CLASS(wxPaintDCEx
, wxPaintDC
)
67 // ----------------------------------------------------------------------------
69 // ----------------------------------------------------------------------------
75 // ===========================================================================
77 // ===========================================================================
79 // ----------------------------------------------------------------------------
81 // ----------------------------------------------------------------------------
83 wxWindowDC::wxWindowDC()
87 wxWindowDC::wxWindowDC(wxWindow
*canvas
)
91 void wxWindowDC::InitDC()
95 void wxWindowDC::DoGetSize(int *width
, int *height
) const
99 // ----------------------------------------------------------------------------
101 // ----------------------------------------------------------------------------
103 wxClientDC::wxClientDC()
107 wxClientDC::wxClientDC(wxWindow
*canvas
)
111 void wxClientDC::InitDC()
115 wxClientDC::~wxClientDC()
119 void wxClientDC::DoGetSize(int *width
, int *height
) const
123 // ----------------------------------------------------------------------------
125 // ----------------------------------------------------------------------------
127 wxArrayDCInfo
wxPaintDC::ms_cache
;
129 wxPaintDC::wxPaintDC()
133 wxPaintDC::wxPaintDC(wxWindow
*canvas
)
137 wxPaintDC::~wxPaintDC()
141 wxPaintDCInfo
*wxPaintDC::FindInCache(size_t *index
) const
146 WXHDC
wxPaintDC::FindDCInCache(wxWindow
* win
)
155 wxPaintDCEx::wxPaintDCEx(wxWindow
*canvas
, WXHDC dc
) : saveState(0)
159 wxPaintDCEx::~wxPaintDCEx()