2 * FILE : contrib/ogl/oglcanvas.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initoglcanvasc
55 #define SWIG_name "oglcanvasc"
58 #include "oglhelpers.h"
61 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
67 } else if (target
== Py_None
) {
71 if (!PyTuple_Check(target
)) {
73 target
= PyTuple_New(1);
74 PyTuple_SetItem(target
, 0, o2
);
77 PyTuple_SetItem(o3
, 0, o
);
80 target
= PySequence_Concat(o2
, o3
);
87 // Put some wx default wxChar* values into wxStrings.
88 DECLARE_DEF_STRING(ShapeCanvasNameStr
);
90 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnBeginDragLeft
);
91 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnBeginDragRight
);
92 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnEndDragLeft
);
93 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnEndDragRight
);
94 IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnDragLeft
);
95 IMP_PYCALLBACK__BOOL2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnDragRight
);
96 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnLeftClick
);
97 IMP_PYCALLBACK__2DBLINT(wxPyShapeCanvas
, wxShapeCanvas
, OnRightClick
);
101 static void *SwigwxDiagramTowxObject(void *ptr
) {
104 src
= (wxDiagram
*) ptr
;
105 dest
= (wxObject
*) src
;
106 return (void *) dest
;
109 #define new_wxDiagram() (new wxDiagram())
110 static PyObject
*_wrap_new_wxDiagram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
111 PyObject
* _resultobj
;
113 char *_kwnames
[] = { NULL
};
117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDiagram",_kwnames
))
120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
121 _result
= (wxDiagram
*)new_wxDiagram();
123 wxPyEndAllowThreads(__tstate
);
124 if (PyErr_Occurred()) return NULL
;
126 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDiagram_p");
127 _resultobj
= Py_BuildValue("s",_ptemp
);
130 _resultobj
= Py_None
;
135 #define wxDiagram_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
136 static PyObject
*_wrap_wxDiagram_AddShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
137 PyObject
* _resultobj
;
140 wxPyShape
* _arg2
= (wxPyShape
*) NULL
;
141 PyObject
* _argo0
= 0;
142 PyObject
* _argo1
= 0;
143 PyObject
* _argo2
= 0;
144 char *_kwnames
[] = { "self","shape","addAfter", NULL
};
147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDiagram_AddShape",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_AddShape. Expected _wxDiagram_p.");
157 if (_argo1
== Py_None
) { _arg1
= NULL
; }
158 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_AddShape. Expected _wxPyShape_p.");
164 if (_argo2
== Py_None
) { _arg2
= NULL
; }
165 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPyShape_p")) {
166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDiagram_AddShape. Expected _wxPyShape_p.");
171 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
172 wxDiagram_AddShape(_arg0
,_arg1
,_arg2
);
174 wxPyEndAllowThreads(__tstate
);
175 if (PyErr_Occurred()) return NULL
;
176 } Py_INCREF(Py_None
);
177 _resultobj
= Py_None
;
181 #define wxDiagram_Clear(_swigobj,_swigarg0) (_swigobj->Clear(_swigarg0))
182 static PyObject
*_wrap_wxDiagram_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
183 PyObject
* _resultobj
;
186 PyObject
* _argo0
= 0;
187 PyObject
* _argo1
= 0;
188 char *_kwnames
[] = { "self","dc", NULL
};
191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_Clear",_kwnames
,&_argo0
,&_argo1
))
194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_Clear. Expected _wxDiagram_p.");
201 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_Clear. Expected _wxDC_p.");
207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
208 wxDiagram_Clear(_arg0
,*_arg1
);
210 wxPyEndAllowThreads(__tstate
);
211 if (PyErr_Occurred()) return NULL
;
212 } Py_INCREF(Py_None
);
213 _resultobj
= Py_None
;
217 #define wxDiagram_DeleteAllShapes(_swigobj) (_swigobj->DeleteAllShapes())
218 static PyObject
*_wrap_wxDiagram_DeleteAllShapes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
219 PyObject
* _resultobj
;
221 PyObject
* _argo0
= 0;
222 char *_kwnames
[] = { "self", NULL
};
225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_DeleteAllShapes",_kwnames
,&_argo0
))
228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_DeleteAllShapes. Expected _wxDiagram_p.");
235 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
236 wxDiagram_DeleteAllShapes(_arg0
);
238 wxPyEndAllowThreads(__tstate
);
239 if (PyErr_Occurred()) return NULL
;
240 } Py_INCREF(Py_None
);
241 _resultobj
= Py_None
;
245 #define wxDiagram_DrawOutline(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawOutline(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
246 static PyObject
*_wrap_wxDiagram_DrawOutline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
247 PyObject
* _resultobj
;
254 PyObject
* _argo0
= 0;
255 PyObject
* _argo1
= 0;
256 char *_kwnames
[] = { "self","dc","x1","y1","x2","y2", NULL
};
259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOdddd:wxDiagram_DrawOutline",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_DrawOutline. Expected _wxDiagram_p.");
269 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_DrawOutline. Expected _wxDC_p.");
275 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
276 wxDiagram_DrawOutline(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
278 wxPyEndAllowThreads(__tstate
);
279 if (PyErr_Occurred()) return NULL
;
280 } Py_INCREF(Py_None
);
281 _resultobj
= Py_None
;
285 #define wxDiagram_FindShape(_swigobj,_swigarg0) (_swigobj->FindShape(_swigarg0))
286 static PyObject
*_wrap_wxDiagram_FindShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
287 PyObject
* _resultobj
;
291 PyObject
* _argo0
= 0;
292 char *_kwnames
[] = { "self","id", NULL
};
295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDiagram_FindShape",_kwnames
,&_argo0
,&_arg1
))
298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_FindShape. Expected _wxDiagram_p.");
305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
306 _result
= (wxPyShape
*)wxDiagram_FindShape(_arg0
,_arg1
);
308 wxPyEndAllowThreads(__tstate
);
309 if (PyErr_Occurred()) return NULL
;
310 }{ _resultobj
= wxPyMake_wxShapeEvtHandler(_result
); }
314 #define wxDiagram_GetCanvas(_swigobj) (_swigobj->GetCanvas())
315 static PyObject
*_wrap_wxDiagram_GetCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
316 PyObject
* _resultobj
;
317 wxPyShapeCanvas
* _result
;
319 PyObject
* _argo0
= 0;
320 char *_kwnames
[] = { "self", NULL
};
323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetCanvas",_kwnames
,&_argo0
))
326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetCanvas. Expected _wxDiagram_p.");
333 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
334 _result
= (wxPyShapeCanvas
*)wxDiagram_GetCanvas(_arg0
);
336 wxPyEndAllowThreads(__tstate
);
337 if (PyErr_Occurred()) return NULL
;
338 }{ _resultobj
= wxPyMake_wxObject(_result
); }
342 #define wxDiagram_GetCount(_swigobj) (_swigobj->GetCount())
343 static PyObject
*_wrap_wxDiagram_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
344 PyObject
* _resultobj
;
347 PyObject
* _argo0
= 0;
348 char *_kwnames
[] = { "self", NULL
};
351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetCount",_kwnames
,&_argo0
))
354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetCount. Expected _wxDiagram_p.");
361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
362 _result
= (int )wxDiagram_GetCount(_arg0
);
364 wxPyEndAllowThreads(__tstate
);
365 if (PyErr_Occurred()) return NULL
;
366 } _resultobj
= Py_BuildValue("i",_result
);
370 #define wxDiagram_GetGridSpacing(_swigobj) (_swigobj->GetGridSpacing())
371 static PyObject
*_wrap_wxDiagram_GetGridSpacing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
372 PyObject
* _resultobj
;
375 PyObject
* _argo0
= 0;
376 char *_kwnames
[] = { "self", NULL
};
379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetGridSpacing",_kwnames
,&_argo0
))
382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetGridSpacing. Expected _wxDiagram_p.");
389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
390 _result
= (double )wxDiagram_GetGridSpacing(_arg0
);
392 wxPyEndAllowThreads(__tstate
);
393 if (PyErr_Occurred()) return NULL
;
394 } _resultobj
= Py_BuildValue("d",_result
);
398 #define wxDiagram_GetMouseTolerance(_swigobj) (_swigobj->GetMouseTolerance())
399 static PyObject
*_wrap_wxDiagram_GetMouseTolerance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
400 PyObject
* _resultobj
;
403 PyObject
* _argo0
= 0;
404 char *_kwnames
[] = { "self", NULL
};
407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetMouseTolerance",_kwnames
,&_argo0
))
410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetMouseTolerance. Expected _wxDiagram_p.");
417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
418 _result
= (int )wxDiagram_GetMouseTolerance(_arg0
);
420 wxPyEndAllowThreads(__tstate
);
421 if (PyErr_Occurred()) return NULL
;
422 } _resultobj
= Py_BuildValue("i",_result
);
426 static PyObject
* wxDiagram_GetShapeList(wxDiagram
*self
) {
427 wxList
* list
= self
->GetShapeList();
428 return wxPy_ConvertShapeList(list
, "wxPyShape");
430 static PyObject
*_wrap_wxDiagram_GetShapeList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
431 PyObject
* _resultobj
;
434 PyObject
* _argo0
= 0;
435 char *_kwnames
[] = { "self", NULL
};
438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetShapeList",_kwnames
,&_argo0
))
441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetShapeList. Expected _wxDiagram_p.");
448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
449 _result
= (PyObject
*)wxDiagram_GetShapeList(_arg0
);
451 wxPyEndAllowThreads(__tstate
);
452 if (PyErr_Occurred()) return NULL
;
454 _resultobj
= _result
;
459 #define wxDiagram_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
460 static PyObject
*_wrap_wxDiagram_GetQuickEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
461 PyObject
* _resultobj
;
464 PyObject
* _argo0
= 0;
465 char *_kwnames
[] = { "self", NULL
};
468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetQuickEditMode",_kwnames
,&_argo0
))
471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetQuickEditMode. Expected _wxDiagram_p.");
478 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
479 _result
= (bool )wxDiagram_GetQuickEditMode(_arg0
);
481 wxPyEndAllowThreads(__tstate
);
482 if (PyErr_Occurred()) return NULL
;
483 } _resultobj
= Py_BuildValue("i",_result
);
487 #define wxDiagram_GetSnapToGrid(_swigobj) (_swigobj->GetSnapToGrid())
488 static PyObject
*_wrap_wxDiagram_GetSnapToGrid(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
489 PyObject
* _resultobj
;
492 PyObject
* _argo0
= 0;
493 char *_kwnames
[] = { "self", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_GetSnapToGrid",_kwnames
,&_argo0
))
499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_GetSnapToGrid. Expected _wxDiagram_p.");
506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
507 _result
= (bool )wxDiagram_GetSnapToGrid(_arg0
);
509 wxPyEndAllowThreads(__tstate
);
510 if (PyErr_Occurred()) return NULL
;
511 } _resultobj
= Py_BuildValue("i",_result
);
515 #define wxDiagram_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
516 static PyObject
*_wrap_wxDiagram_InsertShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
517 PyObject
* _resultobj
;
520 PyObject
* _argo0
= 0;
521 PyObject
* _argo1
= 0;
522 char *_kwnames
[] = { "self","shape", NULL
};
525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_InsertShape",_kwnames
,&_argo0
,&_argo1
))
528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_InsertShape. Expected _wxDiagram_p.");
535 if (_argo1
== Py_None
) { _arg1
= NULL
; }
536 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_InsertShape. Expected _wxPyShape_p.");
542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
543 wxDiagram_InsertShape(_arg0
,_arg1
);
545 wxPyEndAllowThreads(__tstate
);
546 if (PyErr_Occurred()) return NULL
;
547 } Py_INCREF(Py_None
);
548 _resultobj
= Py_None
;
552 #define wxDiagram_RecentreAll(_swigobj,_swigarg0) (_swigobj->RecentreAll(_swigarg0))
553 static PyObject
*_wrap_wxDiagram_RecentreAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
554 PyObject
* _resultobj
;
557 PyObject
* _argo0
= 0;
558 PyObject
* _argo1
= 0;
559 char *_kwnames
[] = { "self","dc", NULL
};
562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_RecentreAll",_kwnames
,&_argo0
,&_argo1
))
565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_RecentreAll. Expected _wxDiagram_p.");
572 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_RecentreAll. Expected _wxDC_p.");
578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
579 wxDiagram_RecentreAll(_arg0
,*_arg1
);
581 wxPyEndAllowThreads(__tstate
);
582 if (PyErr_Occurred()) return NULL
;
583 } Py_INCREF(Py_None
);
584 _resultobj
= Py_None
;
588 #define wxDiagram_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
589 static PyObject
*_wrap_wxDiagram_Redraw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
590 PyObject
* _resultobj
;
593 PyObject
* _argo0
= 0;
594 PyObject
* _argo1
= 0;
595 char *_kwnames
[] = { "self","dc", NULL
};
598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_Redraw",_kwnames
,&_argo0
,&_argo1
))
601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_Redraw. Expected _wxDiagram_p.");
608 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_Redraw. Expected _wxDC_p.");
614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
615 wxDiagram_Redraw(_arg0
,*_arg1
);
617 wxPyEndAllowThreads(__tstate
);
618 if (PyErr_Occurred()) return NULL
;
619 } Py_INCREF(Py_None
);
620 _resultobj
= Py_None
;
624 #define wxDiagram_RemoveAllShapes(_swigobj) (_swigobj->RemoveAllShapes())
625 static PyObject
*_wrap_wxDiagram_RemoveAllShapes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
626 PyObject
* _resultobj
;
628 PyObject
* _argo0
= 0;
629 char *_kwnames
[] = { "self", NULL
};
632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDiagram_RemoveAllShapes",_kwnames
,&_argo0
))
635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_RemoveAllShapes. Expected _wxDiagram_p.");
642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
643 wxDiagram_RemoveAllShapes(_arg0
);
645 wxPyEndAllowThreads(__tstate
);
646 if (PyErr_Occurred()) return NULL
;
647 } Py_INCREF(Py_None
);
648 _resultobj
= Py_None
;
652 #define wxDiagram_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
653 static PyObject
*_wrap_wxDiagram_RemoveShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
654 PyObject
* _resultobj
;
657 PyObject
* _argo0
= 0;
658 PyObject
* _argo1
= 0;
659 char *_kwnames
[] = { "self","shape", NULL
};
662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_RemoveShape",_kwnames
,&_argo0
,&_argo1
))
665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_RemoveShape. Expected _wxDiagram_p.");
672 if (_argo1
== Py_None
) { _arg1
= NULL
; }
673 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_RemoveShape. Expected _wxPyShape_p.");
679 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
680 wxDiagram_RemoveShape(_arg0
,_arg1
);
682 wxPyEndAllowThreads(__tstate
);
683 if (PyErr_Occurred()) return NULL
;
684 } Py_INCREF(Py_None
);
685 _resultobj
= Py_None
;
689 #define wxDiagram_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
690 static PyObject
*_wrap_wxDiagram_SetCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
691 PyObject
* _resultobj
;
693 wxPyShapeCanvas
* _arg1
;
694 PyObject
* _argo0
= 0;
695 PyObject
* _argo1
= 0;
696 char *_kwnames
[] = { "self","canvas", NULL
};
699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDiagram_SetCanvas",_kwnames
,&_argo0
,&_argo1
))
702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetCanvas. Expected _wxDiagram_p.");
709 if (_argo1
== Py_None
) { _arg1
= NULL
; }
710 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShapeCanvas_p")) {
711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDiagram_SetCanvas. Expected _wxPyShapeCanvas_p.");
716 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
717 wxDiagram_SetCanvas(_arg0
,_arg1
);
719 wxPyEndAllowThreads(__tstate
);
720 if (PyErr_Occurred()) return NULL
;
721 } Py_INCREF(Py_None
);
722 _resultobj
= Py_None
;
726 #define wxDiagram_SetGridSpacing(_swigobj,_swigarg0) (_swigobj->SetGridSpacing(_swigarg0))
727 static PyObject
*_wrap_wxDiagram_SetGridSpacing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
728 PyObject
* _resultobj
;
731 PyObject
* _argo0
= 0;
732 char *_kwnames
[] = { "self","spacing", NULL
};
735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Od:wxDiagram_SetGridSpacing",_kwnames
,&_argo0
,&_arg1
))
738 if (_argo0
== Py_None
) { _arg0
= NULL
; }
739 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetGridSpacing. Expected _wxDiagram_p.");
745 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
746 wxDiagram_SetGridSpacing(_arg0
,_arg1
);
748 wxPyEndAllowThreads(__tstate
);
749 if (PyErr_Occurred()) return NULL
;
750 } Py_INCREF(Py_None
);
751 _resultobj
= Py_None
;
755 #define wxDiagram_SetMouseTolerance(_swigobj,_swigarg0) (_swigobj->SetMouseTolerance(_swigarg0))
756 static PyObject
*_wrap_wxDiagram_SetMouseTolerance(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
757 PyObject
* _resultobj
;
760 PyObject
* _argo0
= 0;
761 char *_kwnames
[] = { "self","tolerance", NULL
};
764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_SetMouseTolerance",_kwnames
,&_argo0
,&_arg1
))
767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetMouseTolerance. Expected _wxDiagram_p.");
774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
775 wxDiagram_SetMouseTolerance(_arg0
,_arg1
);
777 wxPyEndAllowThreads(__tstate
);
778 if (PyErr_Occurred()) return NULL
;
779 } Py_INCREF(Py_None
);
780 _resultobj
= Py_None
;
784 #define wxDiagram_SetQuickEditMode(_swigobj,_swigarg0) (_swigobj->SetQuickEditMode(_swigarg0))
785 static PyObject
*_wrap_wxDiagram_SetQuickEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
786 PyObject
* _resultobj
;
789 PyObject
* _argo0
= 0;
791 char *_kwnames
[] = { "self","mode", NULL
};
794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_SetQuickEditMode",_kwnames
,&_argo0
,&tempbool1
))
797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetQuickEditMode. Expected _wxDiagram_p.");
803 _arg1
= (bool ) tempbool1
;
805 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
806 wxDiagram_SetQuickEditMode(_arg0
,_arg1
);
808 wxPyEndAllowThreads(__tstate
);
809 if (PyErr_Occurred()) return NULL
;
810 } Py_INCREF(Py_None
);
811 _resultobj
= Py_None
;
815 #define wxDiagram_SetSnapToGrid(_swigobj,_swigarg0) (_swigobj->SetSnapToGrid(_swigarg0))
816 static PyObject
*_wrap_wxDiagram_SetSnapToGrid(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
817 PyObject
* _resultobj
;
820 PyObject
* _argo0
= 0;
822 char *_kwnames
[] = { "self","snap", NULL
};
825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_SetSnapToGrid",_kwnames
,&_argo0
,&tempbool1
))
828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_SetSnapToGrid. Expected _wxDiagram_p.");
834 _arg1
= (bool ) tempbool1
;
836 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
837 wxDiagram_SetSnapToGrid(_arg0
,_arg1
);
839 wxPyEndAllowThreads(__tstate
);
840 if (PyErr_Occurred()) return NULL
;
841 } Py_INCREF(Py_None
);
842 _resultobj
= Py_None
;
846 #define wxDiagram_ShowAll(_swigobj,_swigarg0) (_swigobj->ShowAll(_swigarg0))
847 static PyObject
*_wrap_wxDiagram_ShowAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
848 PyObject
* _resultobj
;
851 PyObject
* _argo0
= 0;
853 char *_kwnames
[] = { "self","show", NULL
};
856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDiagram_ShowAll",_kwnames
,&_argo0
,&tempbool1
))
859 if (_argo0
== Py_None
) { _arg0
= NULL
; }
860 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_ShowAll. Expected _wxDiagram_p.");
865 _arg1
= (bool ) tempbool1
;
867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
868 wxDiagram_ShowAll(_arg0
,_arg1
);
870 wxPyEndAllowThreads(__tstate
);
871 if (PyErr_Occurred()) return NULL
;
872 } Py_INCREF(Py_None
);
873 _resultobj
= Py_None
;
877 #define wxDiagram_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
878 static PyObject
*_wrap_wxDiagram_Snap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
879 PyObject
* _resultobj
;
883 PyObject
* _argo0
= 0;
885 PyObject
* _obj1
= 0;
887 PyObject
* _obj2
= 0;
888 char *_kwnames
[] = { "self","INOUT","INOUT", NULL
};
891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDiagram_Snap",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDiagram_p")) {
896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDiagram_Snap. Expected _wxDiagram_p.");
901 temp
= PyFloat_AsDouble(_obj1
);
905 temp0
= PyFloat_AsDouble(_obj2
);
909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
910 wxDiagram_Snap(_arg0
,_arg1
,_arg2
);
912 wxPyEndAllowThreads(__tstate
);
913 if (PyErr_Occurred()) return NULL
;
914 } Py_INCREF(Py_None
);
915 _resultobj
= Py_None
;
918 o
= PyFloat_FromDouble((double) (*_arg1
));
919 _resultobj
= t_output_helper(_resultobj
, o
);
923 o
= PyFloat_FromDouble((double) (*_arg2
));
924 _resultobj
= t_output_helper(_resultobj
, o
);
929 static void *SwigwxPyShapeCanvasTowxScrolledWindow(void *ptr
) {
930 wxPyShapeCanvas
*src
;
931 wxScrolledWindow
*dest
;
932 src
= (wxPyShapeCanvas
*) ptr
;
933 dest
= (wxScrolledWindow
*) src
;
934 return (void *) dest
;
937 static void *SwigwxPyShapeCanvasTowxPanel(void *ptr
) {
938 wxPyShapeCanvas
*src
;
940 src
= (wxPyShapeCanvas
*) ptr
;
941 dest
= (wxPanel
*) src
;
942 return (void *) dest
;
945 static void *SwigwxPyShapeCanvasTowxWindow(void *ptr
) {
946 wxPyShapeCanvas
*src
;
948 src
= (wxPyShapeCanvas
*) ptr
;
949 dest
= (wxWindow
*) src
;
950 return (void *) dest
;
953 static void *SwigwxPyShapeCanvasTowxEvtHandler(void *ptr
) {
954 wxPyShapeCanvas
*src
;
956 src
= (wxPyShapeCanvas
*) ptr
;
957 dest
= (wxEvtHandler
*) src
;
958 return (void *) dest
;
961 static void *SwigwxPyShapeCanvasTowxObject(void *ptr
) {
962 wxPyShapeCanvas
*src
;
964 src
= (wxPyShapeCanvas
*) ptr
;
965 dest
= (wxObject
*) src
;
966 return (void *) dest
;
969 #define new_wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPyShapeCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
970 static PyObject
*_wrap_new_wxPyShapeCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
971 PyObject
* _resultobj
;
972 wxPyShapeCanvas
* _result
;
973 wxWindow
* _arg0
= (wxWindow
*) NULL
;
974 wxWindowID _arg1
= (wxWindowID
) -1;
975 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
976 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
977 long _arg4
= (long ) wxBORDER
;
978 wxString
* _arg5
= (wxString
*) &wxPyShapeCanvasNameStr
;
979 PyObject
* _argo0
= 0;
981 PyObject
* _obj2
= 0;
983 PyObject
* _obj3
= 0;
984 PyObject
* _obj5
= 0;
985 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOlO:new_wxPyShapeCanvas",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
))
992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyShapeCanvas. Expected _wxWindow_p.");
1001 if (! wxPoint_helper(_obj2
, &_arg2
))
1007 if (! wxSize_helper(_obj3
, &_arg3
))
1012 _arg5
= wxString_in_helper(_obj5
);
1017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1018 _result
= (wxPyShapeCanvas
*)new_wxPyShapeCanvas(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
);
1020 wxPyEndAllowThreads(__tstate
);
1021 if (PyErr_Occurred()) return NULL
;
1023 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyShapeCanvas_p");
1024 _resultobj
= Py_BuildValue("s",_ptemp
);
1027 _resultobj
= Py_None
;
1036 #define wxPyShapeCanvas__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1037 static PyObject
*_wrap_wxPyShapeCanvas__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1038 PyObject
* _resultobj
;
1039 wxPyShapeCanvas
* _arg0
;
1042 PyObject
* _argo0
= 0;
1043 PyObject
* _obj1
= 0;
1044 PyObject
* _obj2
= 0;
1045 char *_kwnames
[] = { "self","self","_class", NULL
};
1048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyShapeCanvas__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas__setCallbackInfo. Expected _wxPyShapeCanvas_p.");
1064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1065 wxPyShapeCanvas__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1067 wxPyEndAllowThreads(__tstate
);
1068 if (PyErr_Occurred()) return NULL
;
1069 } Py_INCREF(Py_None
);
1070 _resultobj
= Py_None
;
1074 #define wxPyShapeCanvas_AddShape(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddShape(_swigarg0,_swigarg1))
1075 static PyObject
*_wrap_wxPyShapeCanvas_AddShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1076 PyObject
* _resultobj
;
1077 wxPyShapeCanvas
* _arg0
;
1079 wxPyShape
* _arg2
= (wxPyShape
*) NULL
;
1080 PyObject
* _argo0
= 0;
1081 PyObject
* _argo1
= 0;
1082 PyObject
* _argo2
= 0;
1083 char *_kwnames
[] = { "self","shape","addAfter", NULL
};
1086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxPyShapeCanvas_AddShape",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
1089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_AddShape. Expected _wxPyShapeCanvas_p.");
1096 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1097 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
1098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1103 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1104 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPyShape_p")) {
1105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPyShapeCanvas_AddShape. Expected _wxPyShape_p.");
1110 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1111 wxPyShapeCanvas_AddShape(_arg0
,_arg1
,_arg2
);
1113 wxPyEndAllowThreads(__tstate
);
1114 if (PyErr_Occurred()) return NULL
;
1115 } Py_INCREF(Py_None
);
1116 _resultobj
= Py_None
;
1120 #define wxPyShapeCanvas_FindShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->FindShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1121 static PyObject
*_wrap_wxPyShapeCanvas_FindShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1122 PyObject
* _resultobj
;
1123 wxPyShape
* _result
;
1124 wxPyShapeCanvas
* _arg0
;
1129 wxClassInfo
* _arg4
= (wxClassInfo
*) NULL
;
1130 wxPyShape
* _arg5
= (wxPyShape
*) NULL
;
1131 PyObject
* _argo0
= 0;
1132 PyObject
* _argo4
= 0;
1133 PyObject
* _argo5
= 0;
1134 char *_kwnames
[] = { "self","x1","y","info","notImage", NULL
};
1140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|OO:wxPyShapeCanvas_FindShape",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo4
,&_argo5
))
1143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_FindShape. Expected _wxPyShapeCanvas_p.");
1150 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1151 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxClassInfo_p")) {
1152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPyShapeCanvas_FindShape. Expected _wxClassInfo_p.");
1157 if (_argo5
== Py_None
) { _arg5
= NULL
; }
1158 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxPyShape_p")) {
1159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxPyShapeCanvas_FindShape. Expected _wxPyShape_p.");
1164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1165 _result
= (wxPyShape
*)wxPyShapeCanvas_FindShape(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1167 wxPyEndAllowThreads(__tstate
);
1168 if (PyErr_Occurred()) return NULL
;
1169 }{ _resultobj
= wxPyMake_wxShapeEvtHandler(_result
); }
1172 o
= PyInt_FromLong((long) (*_arg3
));
1173 _resultobj
= t_output_helper(_resultobj
, o
);
1178 #define wxPyShapeCanvas_FindFirstSensitiveShape(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FindFirstSensitiveShape(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1179 static PyObject
*_wrap_wxPyShapeCanvas_FindFirstSensitiveShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1180 PyObject
* _resultobj
;
1181 wxPyShape
* _result
;
1182 wxPyShapeCanvas
* _arg0
;
1188 PyObject
* _argo0
= 0;
1189 char *_kwnames
[] = { "self","x1","y","op", NULL
};
1195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oddi:wxPyShapeCanvas_FindFirstSensitiveShape",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg4
))
1198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_FindFirstSensitiveShape. Expected _wxPyShapeCanvas_p.");
1205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1206 _result
= (wxPyShape
*)wxPyShapeCanvas_FindFirstSensitiveShape(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1208 wxPyEndAllowThreads(__tstate
);
1209 if (PyErr_Occurred()) return NULL
;
1210 }{ _resultobj
= wxPyMake_wxShapeEvtHandler(_result
); }
1213 o
= PyInt_FromLong((long) (*_arg3
));
1214 _resultobj
= t_output_helper(_resultobj
, o
);
1219 #define wxPyShapeCanvas_GetDiagram(_swigobj) (_swigobj->GetDiagram())
1220 static PyObject
*_wrap_wxPyShapeCanvas_GetDiagram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1221 PyObject
* _resultobj
;
1222 wxDiagram
* _result
;
1223 wxPyShapeCanvas
* _arg0
;
1224 PyObject
* _argo0
= 0;
1225 char *_kwnames
[] = { "self", NULL
};
1228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyShapeCanvas_GetDiagram",_kwnames
,&_argo0
))
1231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_GetDiagram. Expected _wxPyShapeCanvas_p.");
1238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1239 _result
= (wxDiagram
*)wxPyShapeCanvas_GetDiagram(_arg0
);
1241 wxPyEndAllowThreads(__tstate
);
1242 if (PyErr_Occurred()) return NULL
;
1243 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1247 #define wxPyShapeCanvas_GetQuickEditMode(_swigobj) (_swigobj->GetQuickEditMode())
1248 static PyObject
*_wrap_wxPyShapeCanvas_GetQuickEditMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1249 PyObject
* _resultobj
;
1251 wxPyShapeCanvas
* _arg0
;
1252 PyObject
* _argo0
= 0;
1253 char *_kwnames
[] = { "self", NULL
};
1256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyShapeCanvas_GetQuickEditMode",_kwnames
,&_argo0
))
1259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_GetQuickEditMode. Expected _wxPyShapeCanvas_p.");
1266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1267 _result
= (bool )wxPyShapeCanvas_GetQuickEditMode(_arg0
);
1269 wxPyEndAllowThreads(__tstate
);
1270 if (PyErr_Occurred()) return NULL
;
1271 } _resultobj
= Py_BuildValue("i",_result
);
1275 #define wxPyShapeCanvas_InsertShape(_swigobj,_swigarg0) (_swigobj->InsertShape(_swigarg0))
1276 static PyObject
*_wrap_wxPyShapeCanvas_InsertShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1277 PyObject
* _resultobj
;
1278 wxPyShapeCanvas
* _arg0
;
1280 PyObject
* _argo0
= 0;
1281 PyObject
* _argo1
= 0;
1282 char *_kwnames
[] = { "self","shape", NULL
};
1285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_InsertShape",_kwnames
,&_argo0
,&_argo1
))
1288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_InsertShape. Expected _wxPyShapeCanvas_p.");
1295 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1296 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
1297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_InsertShape. Expected _wxPyShape_p.");
1302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1303 wxPyShapeCanvas_InsertShape(_arg0
,_arg1
);
1305 wxPyEndAllowThreads(__tstate
);
1306 if (PyErr_Occurred()) return NULL
;
1307 } Py_INCREF(Py_None
);
1308 _resultobj
= Py_None
;
1312 #define wxPyShapeCanvas_base_OnBeginDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragLeft(_swigarg0,_swigarg1,_swigarg2))
1313 static PyObject
*_wrap_wxPyShapeCanvas_base_OnBeginDragLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1314 PyObject
* _resultobj
;
1315 wxPyShapeCanvas
* _arg0
;
1318 int _arg3
= (int ) 0;
1319 PyObject
* _argo0
= 0;
1320 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnBeginDragLeft",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragLeft. Expected _wxPyShapeCanvas_p.");
1333 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1334 wxPyShapeCanvas_base_OnBeginDragLeft(_arg0
,_arg1
,_arg2
,_arg3
);
1336 wxPyEndAllowThreads(__tstate
);
1337 if (PyErr_Occurred()) return NULL
;
1338 } Py_INCREF(Py_None
);
1339 _resultobj
= Py_None
;
1343 #define wxPyShapeCanvas_base_OnBeginDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnBeginDragRight(_swigarg0,_swigarg1,_swigarg2))
1344 static PyObject
*_wrap_wxPyShapeCanvas_base_OnBeginDragRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1345 PyObject
* _resultobj
;
1346 wxPyShapeCanvas
* _arg0
;
1349 int _arg3
= (int ) 0;
1350 PyObject
* _argo0
= 0;
1351 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnBeginDragRight",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnBeginDragRight. Expected _wxPyShapeCanvas_p.");
1364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1365 wxPyShapeCanvas_base_OnBeginDragRight(_arg0
,_arg1
,_arg2
,_arg3
);
1367 wxPyEndAllowThreads(__tstate
);
1368 if (PyErr_Occurred()) return NULL
;
1369 } Py_INCREF(Py_None
);
1370 _resultobj
= Py_None
;
1374 #define wxPyShapeCanvas_base_OnEndDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragLeft(_swigarg0,_swigarg1,_swigarg2))
1375 static PyObject
*_wrap_wxPyShapeCanvas_base_OnEndDragLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1376 PyObject
* _resultobj
;
1377 wxPyShapeCanvas
* _arg0
;
1380 int _arg3
= (int ) 0;
1381 PyObject
* _argo0
= 0;
1382 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnEndDragLeft",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragLeft. Expected _wxPyShapeCanvas_p.");
1395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1396 wxPyShapeCanvas_base_OnEndDragLeft(_arg0
,_arg1
,_arg2
,_arg3
);
1398 wxPyEndAllowThreads(__tstate
);
1399 if (PyErr_Occurred()) return NULL
;
1400 } Py_INCREF(Py_None
);
1401 _resultobj
= Py_None
;
1405 #define wxPyShapeCanvas_base_OnEndDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEndDragRight(_swigarg0,_swigarg1,_swigarg2))
1406 static PyObject
*_wrap_wxPyShapeCanvas_base_OnEndDragRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1407 PyObject
* _resultobj
;
1408 wxPyShapeCanvas
* _arg0
;
1411 int _arg3
= (int ) 0;
1412 PyObject
* _argo0
= 0;
1413 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnEndDragRight",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnEndDragRight. Expected _wxPyShapeCanvas_p.");
1426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1427 wxPyShapeCanvas_base_OnEndDragRight(_arg0
,_arg1
,_arg2
,_arg3
);
1429 wxPyEndAllowThreads(__tstate
);
1430 if (PyErr_Occurred()) return NULL
;
1431 } Py_INCREF(Py_None
);
1432 _resultobj
= Py_None
;
1436 #define wxPyShapeCanvas_base_OnDragLeft(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragLeft(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1437 static PyObject
*_wrap_wxPyShapeCanvas_base_OnDragLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1438 PyObject
* _resultobj
;
1439 wxPyShapeCanvas
* _arg0
;
1443 int _arg4
= (int ) 0;
1444 PyObject
* _argo0
= 0;
1446 char *_kwnames
[] = { "self","draw","x","y","keys", NULL
};
1449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oidd|i:wxPyShapeCanvas_base_OnDragLeft",_kwnames
,&_argo0
,&tempbool1
,&_arg2
,&_arg3
,&_arg4
))
1452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragLeft. Expected _wxPyShapeCanvas_p.");
1458 _arg1
= (bool ) tempbool1
;
1460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1461 wxPyShapeCanvas_base_OnDragLeft(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1463 wxPyEndAllowThreads(__tstate
);
1464 if (PyErr_Occurred()) return NULL
;
1465 } Py_INCREF(Py_None
);
1466 _resultobj
= Py_None
;
1470 #define wxPyShapeCanvas_base_OnDragRight(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnDragRight(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1471 static PyObject
*_wrap_wxPyShapeCanvas_base_OnDragRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1472 PyObject
* _resultobj
;
1473 wxPyShapeCanvas
* _arg0
;
1477 int _arg4
= (int ) 0;
1478 PyObject
* _argo0
= 0;
1480 char *_kwnames
[] = { "self","draw","x","y","keys", NULL
};
1483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oidd|i:wxPyShapeCanvas_base_OnDragRight",_kwnames
,&_argo0
,&tempbool1
,&_arg2
,&_arg3
,&_arg4
))
1486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnDragRight. Expected _wxPyShapeCanvas_p.");
1492 _arg1
= (bool ) tempbool1
;
1494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1495 wxPyShapeCanvas_base_OnDragRight(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1497 wxPyEndAllowThreads(__tstate
);
1498 if (PyErr_Occurred()) return NULL
;
1499 } Py_INCREF(Py_None
);
1500 _resultobj
= Py_None
;
1504 #define wxPyShapeCanvas_base_OnLeftClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnLeftClick(_swigarg0,_swigarg1,_swigarg2))
1505 static PyObject
*_wrap_wxPyShapeCanvas_base_OnLeftClick(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1506 PyObject
* _resultobj
;
1507 wxPyShapeCanvas
* _arg0
;
1510 int _arg3
= (int ) 0;
1511 PyObject
* _argo0
= 0;
1512 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnLeftClick",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnLeftClick. Expected _wxPyShapeCanvas_p.");
1525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1526 wxPyShapeCanvas_base_OnLeftClick(_arg0
,_arg1
,_arg2
,_arg3
);
1528 wxPyEndAllowThreads(__tstate
);
1529 if (PyErr_Occurred()) return NULL
;
1530 } Py_INCREF(Py_None
);
1531 _resultobj
= Py_None
;
1535 #define wxPyShapeCanvas_base_OnRightClick(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnRightClick(_swigarg0,_swigarg1,_swigarg2))
1536 static PyObject
*_wrap_wxPyShapeCanvas_base_OnRightClick(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1537 PyObject
* _resultobj
;
1538 wxPyShapeCanvas
* _arg0
;
1541 int _arg3
= (int ) 0;
1542 PyObject
* _argo0
= 0;
1543 char *_kwnames
[] = { "self","x","y","keys", NULL
};
1546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd|i:wxPyShapeCanvas_base_OnRightClick",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_base_OnRightClick. Expected _wxPyShapeCanvas_p.");
1556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1557 wxPyShapeCanvas_base_OnRightClick(_arg0
,_arg1
,_arg2
,_arg3
);
1559 wxPyEndAllowThreads(__tstate
);
1560 if (PyErr_Occurred()) return NULL
;
1561 } Py_INCREF(Py_None
);
1562 _resultobj
= Py_None
;
1566 #define wxPyShapeCanvas_Redraw(_swigobj,_swigarg0) (_swigobj->Redraw(_swigarg0))
1567 static PyObject
*_wrap_wxPyShapeCanvas_Redraw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1568 PyObject
* _resultobj
;
1569 wxPyShapeCanvas
* _arg0
;
1571 PyObject
* _argo0
= 0;
1572 PyObject
* _argo1
= 0;
1573 char *_kwnames
[] = { "self","dc", NULL
};
1576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_Redraw",_kwnames
,&_argo0
,&_argo1
))
1579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_Redraw. Expected _wxPyShapeCanvas_p.");
1586 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
1587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_Redraw. Expected _wxDC_p.");
1592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1593 wxPyShapeCanvas_Redraw(_arg0
,*_arg1
);
1595 wxPyEndAllowThreads(__tstate
);
1596 if (PyErr_Occurred()) return NULL
;
1597 } Py_INCREF(Py_None
);
1598 _resultobj
= Py_None
;
1602 #define wxPyShapeCanvas_RemoveShape(_swigobj,_swigarg0) (_swigobj->RemoveShape(_swigarg0))
1603 static PyObject
*_wrap_wxPyShapeCanvas_RemoveShape(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1604 PyObject
* _resultobj
;
1605 wxPyShapeCanvas
* _arg0
;
1607 PyObject
* _argo0
= 0;
1608 PyObject
* _argo1
= 0;
1609 char *_kwnames
[] = { "self","shape", NULL
};
1612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_RemoveShape",_kwnames
,&_argo0
,&_argo1
))
1615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShapeCanvas_p.");
1622 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1623 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyShape_p")) {
1624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_RemoveShape. Expected _wxPyShape_p.");
1629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1630 wxPyShapeCanvas_RemoveShape(_arg0
,_arg1
);
1632 wxPyEndAllowThreads(__tstate
);
1633 if (PyErr_Occurred()) return NULL
;
1634 } Py_INCREF(Py_None
);
1635 _resultobj
= Py_None
;
1639 #define wxPyShapeCanvas_SetDiagram(_swigobj,_swigarg0) (_swigobj->SetDiagram(_swigarg0))
1640 static PyObject
*_wrap_wxPyShapeCanvas_SetDiagram(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1641 PyObject
* _resultobj
;
1642 wxPyShapeCanvas
* _arg0
;
1644 PyObject
* _argo0
= 0;
1645 PyObject
* _argo1
= 0;
1646 char *_kwnames
[] = { "self","diagram", NULL
};
1649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyShapeCanvas_SetDiagram",_kwnames
,&_argo0
,&_argo1
))
1652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_SetDiagram. Expected _wxPyShapeCanvas_p.");
1659 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1660 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDiagram_p")) {
1661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyShapeCanvas_SetDiagram. Expected _wxDiagram_p.");
1666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1667 wxPyShapeCanvas_SetDiagram(_arg0
,_arg1
);
1669 wxPyEndAllowThreads(__tstate
);
1670 if (PyErr_Occurred()) return NULL
;
1671 } Py_INCREF(Py_None
);
1672 _resultobj
= Py_None
;
1676 #define wxPyShapeCanvas_Snap(_swigobj,_swigarg0,_swigarg1) (_swigobj->Snap(_swigarg0,_swigarg1))
1677 static PyObject
*_wrap_wxPyShapeCanvas_Snap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1678 PyObject
* _resultobj
;
1679 wxPyShapeCanvas
* _arg0
;
1682 PyObject
* _argo0
= 0;
1684 PyObject
* _obj1
= 0;
1686 PyObject
* _obj2
= 0;
1687 char *_kwnames
[] = { "self","INOUT","INOUT", NULL
};
1690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyShapeCanvas_Snap",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyShapeCanvas_p")) {
1695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyShapeCanvas_Snap. Expected _wxPyShapeCanvas_p.");
1700 temp
= PyFloat_AsDouble(_obj1
);
1704 temp0
= PyFloat_AsDouble(_obj2
);
1708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1709 wxPyShapeCanvas_Snap(_arg0
,_arg1
,_arg2
);
1711 wxPyEndAllowThreads(__tstate
);
1712 if (PyErr_Occurred()) return NULL
;
1713 } Py_INCREF(Py_None
);
1714 _resultobj
= Py_None
;
1717 o
= PyFloat_FromDouble((double) (*_arg1
));
1718 _resultobj
= t_output_helper(_resultobj
, o
);
1722 o
= PyFloat_FromDouble((double) (*_arg2
));
1723 _resultobj
= t_output_helper(_resultobj
, o
);
1728 static PyMethodDef oglcanvascMethods
[] = {
1729 { "wxPyShapeCanvas_Snap", (PyCFunction
) _wrap_wxPyShapeCanvas_Snap
, METH_VARARGS
| METH_KEYWORDS
},
1730 { "wxPyShapeCanvas_SetDiagram", (PyCFunction
) _wrap_wxPyShapeCanvas_SetDiagram
, METH_VARARGS
| METH_KEYWORDS
},
1731 { "wxPyShapeCanvas_RemoveShape", (PyCFunction
) _wrap_wxPyShapeCanvas_RemoveShape
, METH_VARARGS
| METH_KEYWORDS
},
1732 { "wxPyShapeCanvas_Redraw", (PyCFunction
) _wrap_wxPyShapeCanvas_Redraw
, METH_VARARGS
| METH_KEYWORDS
},
1733 { "wxPyShapeCanvas_base_OnRightClick", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnRightClick
, METH_VARARGS
| METH_KEYWORDS
},
1734 { "wxPyShapeCanvas_base_OnLeftClick", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnLeftClick
, METH_VARARGS
| METH_KEYWORDS
},
1735 { "wxPyShapeCanvas_base_OnDragRight", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnDragRight
, METH_VARARGS
| METH_KEYWORDS
},
1736 { "wxPyShapeCanvas_base_OnDragLeft", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnDragLeft
, METH_VARARGS
| METH_KEYWORDS
},
1737 { "wxPyShapeCanvas_base_OnEndDragRight", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnEndDragRight
, METH_VARARGS
| METH_KEYWORDS
},
1738 { "wxPyShapeCanvas_base_OnEndDragLeft", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnEndDragLeft
, METH_VARARGS
| METH_KEYWORDS
},
1739 { "wxPyShapeCanvas_base_OnBeginDragRight", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnBeginDragRight
, METH_VARARGS
| METH_KEYWORDS
},
1740 { "wxPyShapeCanvas_base_OnBeginDragLeft", (PyCFunction
) _wrap_wxPyShapeCanvas_base_OnBeginDragLeft
, METH_VARARGS
| METH_KEYWORDS
},
1741 { "wxPyShapeCanvas_InsertShape", (PyCFunction
) _wrap_wxPyShapeCanvas_InsertShape
, METH_VARARGS
| METH_KEYWORDS
},
1742 { "wxPyShapeCanvas_GetQuickEditMode", (PyCFunction
) _wrap_wxPyShapeCanvas_GetQuickEditMode
, METH_VARARGS
| METH_KEYWORDS
},
1743 { "wxPyShapeCanvas_GetDiagram", (PyCFunction
) _wrap_wxPyShapeCanvas_GetDiagram
, METH_VARARGS
| METH_KEYWORDS
},
1744 { "wxPyShapeCanvas_FindFirstSensitiveShape", (PyCFunction
) _wrap_wxPyShapeCanvas_FindFirstSensitiveShape
, METH_VARARGS
| METH_KEYWORDS
},
1745 { "wxPyShapeCanvas_FindShape", (PyCFunction
) _wrap_wxPyShapeCanvas_FindShape
, METH_VARARGS
| METH_KEYWORDS
},
1746 { "wxPyShapeCanvas_AddShape", (PyCFunction
) _wrap_wxPyShapeCanvas_AddShape
, METH_VARARGS
| METH_KEYWORDS
},
1747 { "wxPyShapeCanvas__setCallbackInfo", (PyCFunction
) _wrap_wxPyShapeCanvas__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
1748 { "new_wxPyShapeCanvas", (PyCFunction
) _wrap_new_wxPyShapeCanvas
, METH_VARARGS
| METH_KEYWORDS
},
1749 { "wxDiagram_Snap", (PyCFunction
) _wrap_wxDiagram_Snap
, METH_VARARGS
| METH_KEYWORDS
},
1750 { "wxDiagram_ShowAll", (PyCFunction
) _wrap_wxDiagram_ShowAll
, METH_VARARGS
| METH_KEYWORDS
},
1751 { "wxDiagram_SetSnapToGrid", (PyCFunction
) _wrap_wxDiagram_SetSnapToGrid
, METH_VARARGS
| METH_KEYWORDS
},
1752 { "wxDiagram_SetQuickEditMode", (PyCFunction
) _wrap_wxDiagram_SetQuickEditMode
, METH_VARARGS
| METH_KEYWORDS
},
1753 { "wxDiagram_SetMouseTolerance", (PyCFunction
) _wrap_wxDiagram_SetMouseTolerance
, METH_VARARGS
| METH_KEYWORDS
},
1754 { "wxDiagram_SetGridSpacing", (PyCFunction
) _wrap_wxDiagram_SetGridSpacing
, METH_VARARGS
| METH_KEYWORDS
},
1755 { "wxDiagram_SetCanvas", (PyCFunction
) _wrap_wxDiagram_SetCanvas
, METH_VARARGS
| METH_KEYWORDS
},
1756 { "wxDiagram_RemoveShape", (PyCFunction
) _wrap_wxDiagram_RemoveShape
, METH_VARARGS
| METH_KEYWORDS
},
1757 { "wxDiagram_RemoveAllShapes", (PyCFunction
) _wrap_wxDiagram_RemoveAllShapes
, METH_VARARGS
| METH_KEYWORDS
},
1758 { "wxDiagram_Redraw", (PyCFunction
) _wrap_wxDiagram_Redraw
, METH_VARARGS
| METH_KEYWORDS
},
1759 { "wxDiagram_RecentreAll", (PyCFunction
) _wrap_wxDiagram_RecentreAll
, METH_VARARGS
| METH_KEYWORDS
},
1760 { "wxDiagram_InsertShape", (PyCFunction
) _wrap_wxDiagram_InsertShape
, METH_VARARGS
| METH_KEYWORDS
},
1761 { "wxDiagram_GetSnapToGrid", (PyCFunction
) _wrap_wxDiagram_GetSnapToGrid
, METH_VARARGS
| METH_KEYWORDS
},
1762 { "wxDiagram_GetQuickEditMode", (PyCFunction
) _wrap_wxDiagram_GetQuickEditMode
, METH_VARARGS
| METH_KEYWORDS
},
1763 { "wxDiagram_GetShapeList", (PyCFunction
) _wrap_wxDiagram_GetShapeList
, METH_VARARGS
| METH_KEYWORDS
},
1764 { "wxDiagram_GetMouseTolerance", (PyCFunction
) _wrap_wxDiagram_GetMouseTolerance
, METH_VARARGS
| METH_KEYWORDS
},
1765 { "wxDiagram_GetGridSpacing", (PyCFunction
) _wrap_wxDiagram_GetGridSpacing
, METH_VARARGS
| METH_KEYWORDS
},
1766 { "wxDiagram_GetCount", (PyCFunction
) _wrap_wxDiagram_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
1767 { "wxDiagram_GetCanvas", (PyCFunction
) _wrap_wxDiagram_GetCanvas
, METH_VARARGS
| METH_KEYWORDS
},
1768 { "wxDiagram_FindShape", (PyCFunction
) _wrap_wxDiagram_FindShape
, METH_VARARGS
| METH_KEYWORDS
},
1769 { "wxDiagram_DrawOutline", (PyCFunction
) _wrap_wxDiagram_DrawOutline
, METH_VARARGS
| METH_KEYWORDS
},
1770 { "wxDiagram_DeleteAllShapes", (PyCFunction
) _wrap_wxDiagram_DeleteAllShapes
, METH_VARARGS
| METH_KEYWORDS
},
1771 { "wxDiagram_Clear", (PyCFunction
) _wrap_wxDiagram_Clear
, METH_VARARGS
| METH_KEYWORDS
},
1772 { "wxDiagram_AddShape", (PyCFunction
) _wrap_wxDiagram_AddShape
, METH_VARARGS
| METH_KEYWORDS
},
1773 { "new_wxDiagram", (PyCFunction
) _wrap_new_wxDiagram
, METH_VARARGS
| METH_KEYWORDS
},
1780 * This table is used by the pointer type-checker
1782 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1783 { "_signed_long","_long",0},
1784 { "_wxPrintQuality","_wxCoord",0},
1785 { "_wxPrintQuality","_int",0},
1786 { "_wxPrintQuality","_signed_int",0},
1787 { "_wxPrintQuality","_unsigned_int",0},
1788 { "_wxPrintQuality","_wxWindowID",0},
1789 { "_wxPrintQuality","_uint",0},
1790 { "_wxPrintQuality","_EBool",0},
1791 { "_wxPrintQuality","_size_t",0},
1792 { "_wxPrintQuality","_time_t",0},
1793 { "_byte","_unsigned_char",0},
1794 { "_long","_unsigned_long",0},
1795 { "_long","_signed_long",0},
1796 { "_size_t","_wxCoord",0},
1797 { "_size_t","_wxPrintQuality",0},
1798 { "_size_t","_time_t",0},
1799 { "_size_t","_unsigned_int",0},
1800 { "_size_t","_int",0},
1801 { "_size_t","_wxWindowID",0},
1802 { "_size_t","_uint",0},
1803 { "_wxPanel","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxPanel
},
1804 { "_uint","_wxCoord",0},
1805 { "_uint","_wxPrintQuality",0},
1806 { "_uint","_time_t",0},
1807 { "_uint","_size_t",0},
1808 { "_uint","_unsigned_int",0},
1809 { "_uint","_int",0},
1810 { "_uint","_wxWindowID",0},
1811 { "_wxChar","_char",0},
1812 { "_char","_wxChar",0},
1813 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1814 { "_EBool","_wxCoord",0},
1815 { "_EBool","_wxPrintQuality",0},
1816 { "_EBool","_signed_int",0},
1817 { "_EBool","_int",0},
1818 { "_EBool","_wxWindowID",0},
1819 { "_unsigned_long","_long",0},
1820 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1821 { "_signed_int","_wxCoord",0},
1822 { "_signed_int","_wxPrintQuality",0},
1823 { "_signed_int","_EBool",0},
1824 { "_signed_int","_wxWindowID",0},
1825 { "_signed_int","_int",0},
1826 { "_WXTYPE","_wxDateTime_t",0},
1827 { "_WXTYPE","_short",0},
1828 { "_WXTYPE","_signed_short",0},
1829 { "_WXTYPE","_unsigned_short",0},
1830 { "_unsigned_short","_wxDateTime_t",0},
1831 { "_unsigned_short","_WXTYPE",0},
1832 { "_unsigned_short","_short",0},
1833 { "_wxObject","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxObject
},
1834 { "_wxObject","_wxDiagram",SwigwxDiagramTowxObject
},
1835 { "_signed_short","_WXTYPE",0},
1836 { "_signed_short","_short",0},
1837 { "_wxScrolledWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxScrolledWindow
},
1838 { "_unsigned_char","_byte",0},
1839 { "_unsigned_int","_wxCoord",0},
1840 { "_unsigned_int","_wxPrintQuality",0},
1841 { "_unsigned_int","_time_t",0},
1842 { "_unsigned_int","_size_t",0},
1843 { "_unsigned_int","_uint",0},
1844 { "_unsigned_int","_wxWindowID",0},
1845 { "_unsigned_int","_int",0},
1846 { "_short","_wxDateTime_t",0},
1847 { "_short","_WXTYPE",0},
1848 { "_short","_unsigned_short",0},
1849 { "_short","_signed_short",0},
1850 { "_wxWindowID","_wxCoord",0},
1851 { "_wxWindowID","_wxPrintQuality",0},
1852 { "_wxWindowID","_time_t",0},
1853 { "_wxWindowID","_size_t",0},
1854 { "_wxWindowID","_EBool",0},
1855 { "_wxWindowID","_uint",0},
1856 { "_wxWindowID","_int",0},
1857 { "_wxWindowID","_signed_int",0},
1858 { "_wxWindowID","_unsigned_int",0},
1859 { "_int","_wxCoord",0},
1860 { "_int","_wxPrintQuality",0},
1861 { "_int","_time_t",0},
1862 { "_int","_size_t",0},
1863 { "_int","_EBool",0},
1864 { "_int","_uint",0},
1865 { "_int","_wxWindowID",0},
1866 { "_int","_unsigned_int",0},
1867 { "_int","_signed_int",0},
1868 { "_wxDateTime_t","_unsigned_short",0},
1869 { "_wxDateTime_t","_short",0},
1870 { "_wxDateTime_t","_WXTYPE",0},
1871 { "_time_t","_wxCoord",0},
1872 { "_time_t","_wxPrintQuality",0},
1873 { "_time_t","_unsigned_int",0},
1874 { "_time_t","_int",0},
1875 { "_time_t","_wxWindowID",0},
1876 { "_time_t","_uint",0},
1877 { "_time_t","_size_t",0},
1878 { "_wxCoord","_int",0},
1879 { "_wxCoord","_signed_int",0},
1880 { "_wxCoord","_unsigned_int",0},
1881 { "_wxCoord","_wxWindowID",0},
1882 { "_wxCoord","_uint",0},
1883 { "_wxCoord","_EBool",0},
1884 { "_wxCoord","_size_t",0},
1885 { "_wxCoord","_time_t",0},
1886 { "_wxCoord","_wxPrintQuality",0},
1887 { "_wxEvtHandler","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxEvtHandler
},
1888 { "_wxWindow","_wxPyShapeCanvas",SwigwxPyShapeCanvasTowxWindow
},
1891 static PyObject
*SWIG_globals
;
1895 SWIGEXPORT(void) initoglcanvasc() {
1897 SWIG_globals
= SWIG_newvarlink();
1898 m
= Py_InitModule("oglcanvasc", oglcanvascMethods
);
1899 d
= PyModule_GetDict(m
);
1902 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1903 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);