]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/ogl/oglshapes2.i
Fixed compile errors, warnings and other DSMs, and improved comments.
[wxWidgets.git] / wxPython / contrib / ogl / oglshapes2.i
index 2b90a48590eac0575d2d47100908d8b19f80370a..ebdb5090cf6c1c2ac61e217f49b2b89682e37c75 100644 (file)
@@ -125,7 +125,7 @@ public:
 };
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
-class wxArrowHead {
+class wxArrowHead : public wxObject {
 public:
     wxArrowHead(int type = 0,
                 int end = 0,
@@ -207,6 +207,14 @@ public:
     bool IsSpline();
     void MakeLineControlPoints(int n);
 
+    //   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);
     void SetAttachmentTo(int toAttach);