Moved deprecated code to source file (didn't compile
as inlined, somehow). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -613,50 +613,10 @@ public:
|
|||||||
long *x, long *y,
|
long *x, long *y,
|
||||||
long *descent = NULL,
|
long *descent = NULL,
|
||||||
long *externalLeading = NULL,
|
long *externalLeading = NULL,
|
||||||
const wxFont *theFont = NULL) const )
|
const wxFont *theFont = NULL) const );
|
||||||
{
|
wxDEPRECATED( void GetLogicalOrigin(long *x, long *y) const );
|
||||||
wxCoord x2, y2, descent2, externalLeading2;
|
wxDEPRECATED( void GetDeviceOrigin(long *x, long *y) const );
|
||||||
DoGetTextExtent(string, &x2, &y2,
|
wxDEPRECATED( void GetClippingBox(long *x, long *y, long *w, long *h) const );
|
||||||
&descent2, &externalLeading2,
|
|
||||||
theFont);
|
|
||||||
if ( x )
|
|
||||||
*x = x2;
|
|
||||||
if ( y )
|
|
||||||
*y = y2;
|
|
||||||
if ( descent )
|
|
||||||
*descent = descent2;
|
|
||||||
if ( externalLeading )
|
|
||||||
*externalLeading = externalLeading2;
|
|
||||||
}
|
|
||||||
|
|
||||||
wxDEPRECATED( void GetLogicalOrigin(long *x, long *y) const )
|
|
||||||
{
|
|
||||||
wxCoord x2, y2;
|
|
||||||
DoGetLogicalOrigin(&x2, &y2);
|
|
||||||
if ( x )
|
|
||||||
*x = x2;
|
|
||||||
if ( y )
|
|
||||||
*y = y2;
|
|
||||||
}
|
|
||||||
|
|
||||||
wxDEPRECATED( void GetDeviceOrigin(long *x, long *y) const )
|
|
||||||
{
|
|
||||||
wxCoord x2, y2;
|
|
||||||
DoGetDeviceOrigin(&x2, &y2);
|
|
||||||
if ( x )
|
|
||||||
*x = x2;
|
|
||||||
if ( y )
|
|
||||||
*y = y2;
|
|
||||||
}
|
|
||||||
wxDEPRECATED( void GetClippingBox(long *x, long *y, long *w, long *h) const )
|
|
||||||
{
|
|
||||||
wxCoord xx,yy,ww,hh;
|
|
||||||
DoGetClippingBox(&xx, &yy, &ww, &hh);
|
|
||||||
if (x) *x = xx;
|
|
||||||
if (y) *y = yy;
|
|
||||||
if (w) *w = ww;
|
|
||||||
if (h) *h = hh;
|
|
||||||
}
|
|
||||||
#endif // WXWIN_COMPATIBILITY_2_8
|
#endif // WXWIN_COMPATIBILITY_2_8
|
||||||
|
|
||||||
// RTL related functions
|
// RTL related functions
|
||||||
|
@@ -94,6 +94,61 @@ void wxDCBase::EndDrawing()
|
|||||||
}
|
}
|
||||||
#endif // WXWIN_COMPATIBILITY_2_6
|
#endif // WXWIN_COMPATIBILITY_2_6
|
||||||
|
|
||||||
|
#if WXWIN_COMPATIBILITY_2_8
|
||||||
|
// for compatibility with the old code when wxCoord was long everywhere
|
||||||
|
void wxDCBase::GetTextExtent(const wxString& string,
|
||||||
|
long *x, long *y,
|
||||||
|
long *descent = NULL,
|
||||||
|
long *externalLeading = NULL,
|
||||||
|
const wxFont *theFont = NULL) const
|
||||||
|
{
|
||||||
|
wxCoord x2, y2, descent2, externalLeading2;
|
||||||
|
DoGetTextExtent(string, &x2, &y2,
|
||||||
|
&descent2, &externalLeading2,
|
||||||
|
theFont);
|
||||||
|
if ( x )
|
||||||
|
*x = x2;
|
||||||
|
if ( y )
|
||||||
|
*y = y2;
|
||||||
|
if ( descent )
|
||||||
|
*descent = descent2;
|
||||||
|
if ( externalLeading )
|
||||||
|
*externalLeading = externalLeading2;
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxDCBase::GetLogicalOrigin(long *x, long *y) const
|
||||||
|
{
|
||||||
|
wxCoord x2, y2;
|
||||||
|
DoGetLogicalOrigin(&x2, &y2);
|
||||||
|
if ( x )
|
||||||
|
*x = x2;
|
||||||
|
if ( y )
|
||||||
|
*y = y2;
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxDCBase::GetDeviceOrigin(long *x, long *y) const
|
||||||
|
{
|
||||||
|
wxCoord x2, y2;
|
||||||
|
DoGetDeviceOrigin(&x2, &y2);
|
||||||
|
if ( x )
|
||||||
|
*x = x2;
|
||||||
|
if ( y )
|
||||||
|
*y = y2;
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxDCBase::GetClippingBox(long *x, long *y, long *w, long *h) const
|
||||||
|
{
|
||||||
|
wxCoord xx,yy,ww,hh;
|
||||||
|
DoGetClippingBox(&xx, &yy, &ww, &hh);
|
||||||
|
if (x) *x = xx;
|
||||||
|
if (y) *y = yy;
|
||||||
|
if (w) *w = ww;
|
||||||
|
if (h) *h = hh;
|
||||||
|
}
|
||||||
|
#endif // WXWIN_COMPATIBILITY_2_8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// coordinate conversions and transforms
|
// coordinate conversions and transforms
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user