X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79bd5e982b49c183cccaefb06bcc19c78597fab3..a721fd82b7ca8c97048453d4aaff559e8f741d69:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index eb12f06efb..1fd9da829b 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -119,6 +119,8 @@ enum wxMappingMode wxMM_METRIC }; +#if WXWIN_COMPATIBILITY_2_8 + //----------------------------------------------------------------------------- // wxDrawObject helper class //----------------------------------------------------------------------------- @@ -126,8 +128,7 @@ enum wxMappingMode class WXDLLIMPEXP_CORE wxDrawObject { public: - - wxDrawObject() + wxDEPRECATED_CONSTRUCTOR(wxDrawObject)() : m_isBBoxValid(false) , m_minX(0), m_minY(0), m_maxX(0), m_maxY(0) { } @@ -180,6 +181,8 @@ protected: wxCoord m_minX, m_minY, m_maxX, m_maxY; }; +#endif // WXWIN_COMPATIBILITY_2_8 + //----------------------------------------------------------------------------- // wxDCFactory @@ -963,15 +966,6 @@ public: { m_pimpl->SetDeviceLocalOrigin( x, y ); } - // draw generic object - - void DrawObject(wxDrawObject* drawobject) - { - drawobject->Draw(*this); - CalcBoundingBox(drawobject->MinX(),drawobject->MinY()); - CalcBoundingBox(drawobject->MaxX(),drawobject->MaxY()); - } - // ----------------------------------------------- // the actual drawing API @@ -1203,6 +1197,7 @@ public: wxDEPRECATED( void GetDeviceOrigin(long *x, long *y) const ); wxDEPRECATED( void GetClippingBox(long *x, long *y, long *w, long *h) const ); + wxDEPRECATED( void DrawObject(wxDrawObject* drawobject) ); #endif // WXWIN_COMPATIBILITY_2_8 #ifdef __WXMSW__