git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55828
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxDouble *descent, wxDouble *externalLeading ) const;
virtual void GetPartialTextExtents(const wxString& text, wxArrayDouble& widths) const;
virtual bool ShouldOffset() const;
wxDouble *descent, wxDouble *externalLeading ) const;
virtual void GetPartialTextExtents(const wxString& text, wxArrayDouble& widths) const;
virtual bool ShouldOffset() const;
+ virtual void GetSize( wxDouble* width, wxDouble *height );
m_context->GetTransform((Matrix*) matrix.GetNativeMatrix());
return matrix;
}
m_context->GetTransform((Matrix*) matrix.GetNativeMatrix());
return matrix;
}
+
+void wxGDIPlusContext::GetSize( wxDouble* width, wxDouble *height )
+{
+ if ( width )
+ *width = ::GetDeviceCaps(m_context->GetHDC(), HORZRES);
+ if ( height )
+ *height = ::GetDeviceCaps(m_context->GetHDC(), VERTRES);
+
+}
//-----------------------------------------------------------------------------
// wxGDIPlusRenderer declaration
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// wxGDIPlusRenderer declaration
//-----------------------------------------------------------------------------