Added some missing constants and fixed GetPoints
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -12871,6 +12871,8 @@ SWIGEXPORT(void) initoglshapesc() {
 | 
				
			|||||||
	 SWIG_globals = SWIG_newvarlink();
 | 
						 SWIG_globals = SWIG_newvarlink();
 | 
				
			||||||
	 m = Py_InitModule("oglshapesc", oglshapescMethods);
 | 
						 m = Py_InitModule("oglshapesc", oglshapescMethods);
 | 
				
			||||||
	 d = PyModule_GetDict(m);
 | 
						 d = PyModule_GetDict(m);
 | 
				
			||||||
 | 
						 PyDict_SetItemString(d,"oglMETAFLAGS_OUTLINE", PyInt_FromLong((long) oglMETAFLAGS_OUTLINE));
 | 
				
			||||||
 | 
						 PyDict_SetItemString(d,"oglMETAFLAGS_ATTACHMENTS", PyInt_FromLong((long) oglMETAFLAGS_ATTACHMENTS));
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
   int i;
 | 
					   int i;
 | 
				
			||||||
   for (i = 0; _swig_mapping[i].n1; i++)
 | 
					   for (i = 0; _swig_mapping[i].n1; i++)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,6 +37,12 @@
 | 
				
			|||||||
%pragma(python) code = "import wx"
 | 
					%pragma(python) code = "import wx"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//---------------------------------------------------------------------------
 | 
					//---------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					enum {
 | 
				
			||||||
 | 
					    oglMETAFLAGS_OUTLINE,
 | 
				
			||||||
 | 
					    oglMETAFLAGS_ATTACHMENTS
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//---------------------------------------------------------------------------
 | 
					//---------------------------------------------------------------------------
 | 
				
			||||||
//---------------------------------------------------------------------------
 | 
					//---------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1185,3 +1185,5 @@ class wxPyDivisionShape(wxPyDivisionShapePtr):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#-------------- VARIABLE WRAPPERS ------------------
 | 
					#-------------- VARIABLE WRAPPERS ------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					oglMETAFLAGS_OUTLINE = oglshapesc.oglMETAFLAGS_OUTLINE
 | 
				
			||||||
 | 
					oglMETAFLAGS_ATTACHMENTS = oglshapesc.oglMETAFLAGS_ATTACHMENTS
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5635,7 +5635,21 @@ static PyObject *_wrap_wxPyPolygonShape_DeletePolygonPoint(PyObject *self, PyObj
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static PyObject * wxPyPolygonShape_GetPoints(wxPyPolygonShape *self) {
 | 
					static PyObject * wxPyPolygonShape_GetPoints(wxPyPolygonShape *self) {
 | 
				
			||||||
            wxList* list = self->GetPoints();
 | 
					            wxList* list = self->GetPoints();
 | 
				
			||||||
            return wxPy_ConvertList(list, "wxRealPoint");
 | 
					            PyObject*   pyList;
 | 
				
			||||||
 | 
					            PyObject*   pyObj;
 | 
				
			||||||
 | 
					            wxObject*   wxObj;
 | 
				
			||||||
 | 
					            wxNode*     node = list->GetFirst();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            wxPyBeginBlockThreads();
 | 
				
			||||||
 | 
					            pyList = PyList_New(0);
 | 
				
			||||||
 | 
					            while (node) {
 | 
				
			||||||
 | 
					                wxObj = node->GetData();
 | 
				
			||||||
 | 
					                pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0);
 | 
				
			||||||
 | 
					                PyList_Append(pyList, pyObj);
 | 
				
			||||||
 | 
					                node = node->GetNext();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            wxPyEndBlockThreads();
 | 
				
			||||||
 | 
					            return pyList;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
static PyObject *_wrap_wxPyPolygonShape_GetPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
					static PyObject *_wrap_wxPyPolygonShape_GetPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
				
			||||||
    PyObject * _resultobj;
 | 
					    PyObject * _resultobj;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -303,13 +303,26 @@ public:
 | 
				
			|||||||
    %addmethods {
 | 
					    %addmethods {
 | 
				
			||||||
        PyObject* GetPoints() {
 | 
					        PyObject* GetPoints() {
 | 
				
			||||||
            wxList* list = self->GetPoints();
 | 
					            wxList* list = self->GetPoints();
 | 
				
			||||||
            return wxPy_ConvertList(list, "wxRealPoint");
 | 
					            PyObject*   pyList;
 | 
				
			||||||
 | 
					            PyObject*   pyObj;
 | 
				
			||||||
 | 
					            wxObject*   wxObj;
 | 
				
			||||||
 | 
					            wxNode*     node = list->GetFirst();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            wxPyBeginBlockThreads();
 | 
				
			||||||
 | 
					            pyList = PyList_New(0);
 | 
				
			||||||
 | 
					            while (node) {
 | 
				
			||||||
 | 
					                wxObj = node->GetData();
 | 
				
			||||||
 | 
					                pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0);
 | 
				
			||||||
 | 
					                PyList_Append(pyList, pyObj);
 | 
				
			||||||
 | 
					                node = node->GetNext();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            wxPyEndBlockThreads();
 | 
				
			||||||
 | 
					            return pyList;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    void UpdateOriginalPoints();
 | 
					    void UpdateOriginalPoints();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    void base_OnDraw(wxDC& dc);
 | 
					    void base_OnDraw(wxDC& dc);
 | 
				
			||||||
    void base_OnDrawContents(wxDC& dc);
 | 
					    void base_OnDrawContents(wxDC& dc);
 | 
				
			||||||
    void base_OnDrawBranches(wxDC& dc, bool erase = FALSE);
 | 
					    void base_OnDrawBranches(wxDC& dc, bool erase = FALSE);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user