]> git.saurik.com Git - wxWidgets.git/commitdiff
deprecate wxDrawObject (#9860)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Jan 2009 11:32:41 +0000 (11:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Jan 2009 11:32:41 +0000 (11:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dc.h

index eb12f06efbfd91b9d1acafee135a8e9c9d326e2e..ccc92236e73dc759fe04a9f06fbec5c9407c4d82 100644 (file)
@@ -119,14 +119,15 @@ enum wxMappingMode
     wxMM_METRIC
 };
 
+#if WXWIN_COMPATIBILITY_2_8
+
 //-----------------------------------------------------------------------------
 // wxDrawObject helper class
 //-----------------------------------------------------------------------------
 
-class WXDLLIMPEXP_CORE wxDrawObject
+class WXDLLIMPEXP_CORE wxDEPRECATED_BUT_USED_INTERNALLY(wxDrawObject)
 {
 public:
-
     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,12 @@ public:
     wxDEPRECATED( void GetDeviceOrigin(long *x, long *y) const );
     wxDEPRECATED( void GetClippingBox(long *x, long *y, long *w, long *h) const );
 
+    void DrawObject(wxDrawObject* drawobject)
+    {
+        drawobject->Draw(*this);
+        CalcBoundingBox(drawobject->MinX(),drawobject->MinY());
+        CalcBoundingBox(drawobject->MaxX(),drawobject->MaxY());
+    }
 #endif  // WXWIN_COMPATIBILITY_2_8
 
 #ifdef __WXMSW__