supporting GetSize, fixes #9969
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -328,6 +328,7 @@ public:
|
|||||||
wxDouble *descent, wxDouble *externalLeading ) const;
|
wxDouble *descent, wxDouble *externalLeading ) const;
|
||||||
virtual void GetPartialTextExtents(const wxString& text, wxArrayDouble& widths) const;
|
virtual void GetPartialTextExtents(const wxString& text, wxArrayDouble& widths) const;
|
||||||
virtual bool ShouldOffset() const;
|
virtual bool ShouldOffset() const;
|
||||||
|
virtual void GetSize( wxDouble* width, wxDouble *height );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
@@ -1389,6 +1390,15 @@ wxGraphicsMatrix wxGDIPlusContext::GetTransform() const
|
|||||||
m_context->GetTransform((Matrix*) matrix.GetNativeMatrix());
|
m_context->GetTransform((Matrix*) matrix.GetNativeMatrix());
|
||||||
return matrix;
|
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
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user