Adding wxDC::GetHandle for wxOSX-cocoa and wxOSX-carbon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-07-28 19:31:03 +00:00
parent 5ed53483fe
commit 9eefb5c14a
7 changed files with 40 additions and 0 deletions

View File

@@ -433,6 +433,16 @@ void wxGCDCImpl::ComputeScaleAndOrigin()
}
}
void* wxGCDCImpl::GetHandle() const
{
void* cgctx = NULL;
wxGraphicsContext* gc = GetGraphicsContext();
if (gc) {
cgctx = gc->GetNativeContext();
}
return cgctx;
}
void wxGCDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) )
{