Added wxDEPRECATED() around old wxDC methods taking
long and not wxCoord. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7d9a266c85
commit
1f540d9658
@ -609,11 +609,11 @@ public:
|
|||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_2_8
|
#if WXWIN_COMPATIBILITY_2_8
|
||||||
// for compatibility with the old code when wxCoord was long everywhere
|
// for compatibility with the old code when wxCoord was long everywhere
|
||||||
void GetTextExtent(const wxString& string,
|
wxDEPRECATED( void GetTextExtent(const wxString& string,
|
||||||
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 )
|
||||||
{
|
{
|
||||||
wxCoord x2, y2, descent2, externalLeading2;
|
wxCoord x2, y2, descent2, externalLeading2;
|
||||||
DoGetTextExtent(string, &x2, &y2,
|
DoGetTextExtent(string, &x2, &y2,
|
||||||
@ -629,7 +629,7 @@ public:
|
|||||||
*externalLeading = externalLeading2;
|
*externalLeading = externalLeading2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetLogicalOrigin(long *x, long *y) const
|
wxDEPRECATED( void GetLogicalOrigin(long *x, long *y) const )
|
||||||
{
|
{
|
||||||
wxCoord x2, y2;
|
wxCoord x2, y2;
|
||||||
DoGetLogicalOrigin(&x2, &y2);
|
DoGetLogicalOrigin(&x2, &y2);
|
||||||
@ -639,7 +639,7 @@ public:
|
|||||||
*y = y2;
|
*y = y2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetDeviceOrigin(long *x, long *y) const
|
wxDEPRECATED( void GetDeviceOrigin(long *x, long *y) const )
|
||||||
{
|
{
|
||||||
wxCoord x2, y2;
|
wxCoord x2, y2;
|
||||||
DoGetDeviceOrigin(&x2, &y2);
|
DoGetDeviceOrigin(&x2, &y2);
|
||||||
@ -648,7 +648,7 @@ public:
|
|||||||
if ( y )
|
if ( y )
|
||||||
*y = y2;
|
*y = y2;
|
||||||
}
|
}
|
||||||
void GetClippingBox(long *x, long *y, long *w, long *h) const
|
wxDEPRECATED( void GetClippingBox(long *x, long *y, long *w, long *h) const )
|
||||||
{
|
{
|
||||||
wxCoord xx,yy,ww,hh;
|
wxCoord xx,yy,ww,hh;
|
||||||
DoGetClippingBox(&xx, &yy, &ww, &hh);
|
DoGetClippingBox(&xx, &yy, &ww, &hh);
|
||||||
|
Loading…
Reference in New Issue
Block a user