]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/ogl/oglshapes2.i
Implemented the first phase of OOR (Original Object Return). See the
[wxWidgets.git] / wxPython / contrib / ogl / oglshapes2.i
index a79ebca598c4a1957a1aa858454f275b1a9e1074..ebdb5090cf6c1c2ac61e217f49b2b89682e37c75 100644 (file)
@@ -125,7 +125,7 @@ public:
 };
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
-class wxArrowHead {
+class wxArrowHead : public wxObject {
 public:
     wxArrowHead(int type = 0,
                 int end = 0,
@@ -207,8 +207,13 @@ public:
     bool IsSpline();
     void MakeLineControlPoints(int n);
 
-    // TODO:
     //   inline wxList *GetLineControlPoints() { return m_lineControlPoints; }
+    %addmethods {
+        PyObject* GetLineControlPoints() {
+            wxList* list = self->GetLineControlPoints();
+            return wxPy_ConvertList(list, "wxPyControlPoint");
+        }
+    }
 
     void SetAttachmentFrom(int fromAttach);
     void SetAttachments(int fromAttach, int toAttach);