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:
@@ -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) )
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user