]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/ogl/gtk/ogl.py
wxMac: The get-url apple event is now supported, simply override
[wxWidgets.git] / wxPython / contrib / ogl / gtk / ogl.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 """
5 The Object Graphics Library provides for simple drawing and manipulation
6 of 2D objects. (This version is deprecated, please use wx.lib.ogl instead.)
7 """
8
9 import _ogl
10
11 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
12 if (name == "this"):
13 if isinstance(value, class_type):
14 self.__dict__[name] = value.this
15 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
16 del value.thisown
17 return
18 method = class_type.__swig_setmethods__.get(name,None)
19 if method: return method(self,value)
20 if (not static) or hasattr(self,name) or (name == "thisown"):
21 self.__dict__[name] = value
22 else:
23 raise AttributeError("You cannot add attributes to %s" % self)
24
25 def _swig_setattr(self,class_type,name,value):
26 return _swig_setattr_nondynamic(self,class_type,name,value,0)
27
28 def _swig_getattr(self,class_type,name):
29 method = class_type.__swig_getmethods__.get(name,None)
30 if method: return method(self)
31 raise AttributeError,name
32
33 import types
34 try:
35 _object = types.ObjectType
36 _newclass = 1
37 except AttributeError:
38 class _object : pass
39 _newclass = 0
40 del types
41
42
43 def _swig_setattr_nondynamic_method(set):
44 def set_attr(self,name,value):
45 if hasattr(self,name) or (name in ("this", "thisown")):
46 set(self,name,value)
47 else:
48 raise AttributeError("You cannot add attributes to %s" % self)
49 return set_attr
50
51
52 import _windows
53 import _core
54 wx = _core
55 __docfilter__ = wx.__DocFilter(globals())
56 import warnings
57 warnings.warn("This module is deprecated. Please use the wx.lib.ogl package instead.",
58 DeprecationWarning, stacklevel=2)
59
60 #---------------------------------------------------------------------------
61
62 class ShapeRegion(_core.Object):
63 """Proxy of C++ ShapeRegion class"""
64 def __repr__(self):
65 return "<%s.%s; proxy of C++ wxShapeRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
66 def __init__(self, *args, **kwargs):
67 """__init__(self) -> ShapeRegion"""
68 newobj = _ogl.new_ShapeRegion(*args, **kwargs)
69 self.this = newobj.this
70 self.thisown = 1
71 del newobj.thisown
72 def SetText(*args, **kwargs):
73 """SetText(self, String s)"""
74 return _ogl.ShapeRegion_SetText(*args, **kwargs)
75
76 def SetFont(*args, **kwargs):
77 """SetFont(self, Font f)"""
78 return _ogl.ShapeRegion_SetFont(*args, **kwargs)
79
80 def SetMinSize(*args, **kwargs):
81 """SetMinSize(self, double w, double h)"""
82 return _ogl.ShapeRegion_SetMinSize(*args, **kwargs)
83
84 def SetSize(*args, **kwargs):
85 """SetSize(self, double w, double h)"""
86 return _ogl.ShapeRegion_SetSize(*args, **kwargs)
87
88 def SetPosition(*args, **kwargs):
89 """SetPosition(self, double x, double y)"""
90 return _ogl.ShapeRegion_SetPosition(*args, **kwargs)
91
92 def SetProportions(*args, **kwargs):
93 """SetProportions(self, double x, double y)"""
94 return _ogl.ShapeRegion_SetProportions(*args, **kwargs)
95
96 def SetFormatMode(*args, **kwargs):
97 """SetFormatMode(self, int mode)"""
98 return _ogl.ShapeRegion_SetFormatMode(*args, **kwargs)
99
100 def SetName(*args, **kwargs):
101 """SetName(self, String s)"""
102 return _ogl.ShapeRegion_SetName(*args, **kwargs)
103
104 def SetColour(*args, **kwargs):
105 """SetColour(self, String col)"""
106 return _ogl.ShapeRegion_SetColour(*args, **kwargs)
107
108 def GetText(*args, **kwargs):
109 """GetText(self) -> String"""
110 return _ogl.ShapeRegion_GetText(*args, **kwargs)
111
112 def GetFont(*args, **kwargs):
113 """GetFont(self) -> Font"""
114 return _ogl.ShapeRegion_GetFont(*args, **kwargs)
115
116 def GetMinSize(*args, **kwargs):
117 """GetMinSize(self, double OUTPUT, double OUTPUT)"""
118 return _ogl.ShapeRegion_GetMinSize(*args, **kwargs)
119
120 def GetProportion(*args, **kwargs):
121 """GetProportion(self, double OUTPUT, double OUTPUT)"""
122 return _ogl.ShapeRegion_GetProportion(*args, **kwargs)
123
124 def GetSize(*args, **kwargs):
125 """GetSize(self, double OUTPUT, double OUTPUT)"""
126 return _ogl.ShapeRegion_GetSize(*args, **kwargs)
127
128 def GetPosition(*args, **kwargs):
129 """GetPosition(self, double OUTPUT, double OUTPUT)"""
130 return _ogl.ShapeRegion_GetPosition(*args, **kwargs)
131
132 def GetFormatMode(*args, **kwargs):
133 """GetFormatMode(self) -> int"""
134 return _ogl.ShapeRegion_GetFormatMode(*args, **kwargs)
135
136 def GetName(*args, **kwargs):
137 """GetName(self) -> String"""
138 return _ogl.ShapeRegion_GetName(*args, **kwargs)
139
140 def GetColour(*args, **kwargs):
141 """GetColour(self) -> String"""
142 return _ogl.ShapeRegion_GetColour(*args, **kwargs)
143
144 def GetActualColourObject(*args, **kwargs):
145 """GetActualColourObject(self) -> Colour"""
146 return _ogl.ShapeRegion_GetActualColourObject(*args, **kwargs)
147
148 def GetFormattedText(*args, **kwargs):
149 """GetFormattedText(self) -> wxList"""
150 return _ogl.ShapeRegion_GetFormattedText(*args, **kwargs)
151
152 def GetPenColour(*args, **kwargs):
153 """GetPenColour(self) -> String"""
154 return _ogl.ShapeRegion_GetPenColour(*args, **kwargs)
155
156 def GetPenStyle(*args, **kwargs):
157 """GetPenStyle(self) -> int"""
158 return _ogl.ShapeRegion_GetPenStyle(*args, **kwargs)
159
160 def SetPenStyle(*args, **kwargs):
161 """SetPenStyle(self, int style)"""
162 return _ogl.ShapeRegion_SetPenStyle(*args, **kwargs)
163
164 def SetPenColour(*args, **kwargs):
165 """SetPenColour(self, String col)"""
166 return _ogl.ShapeRegion_SetPenColour(*args, **kwargs)
167
168 def GetActualPen(*args, **kwargs):
169 """GetActualPen(self) -> wxPen"""
170 return _ogl.ShapeRegion_GetActualPen(*args, **kwargs)
171
172 def GetWidth(*args, **kwargs):
173 """GetWidth(self) -> double"""
174 return _ogl.ShapeRegion_GetWidth(*args, **kwargs)
175
176 def GetHeight(*args, **kwargs):
177 """GetHeight(self) -> double"""
178 return _ogl.ShapeRegion_GetHeight(*args, **kwargs)
179
180 def ClearText(*args, **kwargs):
181 """ClearText(self)"""
182 return _ogl.ShapeRegion_ClearText(*args, **kwargs)
183
184
185 class ShapeRegionPtr(ShapeRegion):
186 def __init__(self, this):
187 self.this = this
188 if not hasattr(self,"thisown"): self.thisown = 0
189 self.__class__ = ShapeRegion
190 _ogl.ShapeRegion_swigregister(ShapeRegionPtr)
191
192 class AttachmentPoint(_core.Object):
193 """Proxy of C++ AttachmentPoint class"""
194 def __repr__(self):
195 return "<%s.%s; proxy of C++ wxAttachmentPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
196 def __init__(self, *args, **kwargs):
197 """__init__(self, int id=0, double x=0.0, double y=0.0) -> AttachmentPoint"""
198 newobj = _ogl.new_AttachmentPoint(*args, **kwargs)
199 self.this = newobj.this
200 self.thisown = 1
201 del newobj.thisown
202 m_id = property(_ogl.AttachmentPoint_m_id_get, _ogl.AttachmentPoint_m_id_set)
203 m_x = property(_ogl.AttachmentPoint_m_x_get, _ogl.AttachmentPoint_m_x_set)
204 m_y = property(_ogl.AttachmentPoint_m_y_get, _ogl.AttachmentPoint_m_y_set)
205
206 class AttachmentPointPtr(AttachmentPoint):
207 def __init__(self, this):
208 self.this = this
209 if not hasattr(self,"thisown"): self.thisown = 0
210 self.__class__ = AttachmentPoint
211 _ogl.AttachmentPoint_swigregister(AttachmentPointPtr)
212
213 class PyShapeEvtHandler(_core.Object):
214 """Proxy of C++ PyShapeEvtHandler class"""
215 def __repr__(self):
216 return "<%s.%s; proxy of C++ wxPyShapeEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
217 def __init__(self, *args, **kwargs):
218 """__init__(self, PyShapeEvtHandler prev=None, PyShape shape=None) -> PyShapeEvtHandler"""
219 newobj = _ogl.new_PyShapeEvtHandler(*args, **kwargs)
220 self.this = newobj.this
221 self.thisown = 1
222 del newobj.thisown
223 self._setOORandCallbackInfo(PyShapeEvtHandler)
224
225 def _setCallbackInfo(*args, **kwargs):
226 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
227 return _ogl.PyShapeEvtHandler__setCallbackInfo(*args, **kwargs)
228
229 def _setOORInfo(*args, **kwargs):
230 """_setOORInfo(self, PyObject _self)"""
231 return _ogl.PyShapeEvtHandler__setOORInfo(*args, **kwargs)
232
233 def _setOORandCallbackInfo(self, _class):
234 self._setOORInfo(self)
235 self._setCallbackInfo(self, _class)
236
237 def SetShape(*args, **kwargs):
238 """SetShape(self, PyShape sh)"""
239 return _ogl.PyShapeEvtHandler_SetShape(*args, **kwargs)
240
241 def GetShape(*args, **kwargs):
242 """GetShape(self) -> PyShape"""
243 return _ogl.PyShapeEvtHandler_GetShape(*args, **kwargs)
244
245 def SetPreviousHandler(*args, **kwargs):
246 """SetPreviousHandler(self, PyShapeEvtHandler handler)"""
247 return _ogl.PyShapeEvtHandler_SetPreviousHandler(*args, **kwargs)
248
249 def GetPreviousHandler(*args, **kwargs):
250 """GetPreviousHandler(self) -> PyShapeEvtHandler"""
251 return _ogl.PyShapeEvtHandler_GetPreviousHandler(*args, **kwargs)
252
253 def CreateNewCopy(*args, **kwargs):
254 """CreateNewCopy(self) -> PyShapeEvtHandler"""
255 return _ogl.PyShapeEvtHandler_CreateNewCopy(*args, **kwargs)
256
257 def base_OnDelete(*args, **kwargs):
258 """base_OnDelete(self)"""
259 return _ogl.PyShapeEvtHandler_base_OnDelete(*args, **kwargs)
260
261 def base_OnDraw(*args, **kwargs):
262 """base_OnDraw(self, DC dc)"""
263 return _ogl.PyShapeEvtHandler_base_OnDraw(*args, **kwargs)
264
265 def base_OnDrawContents(*args, **kwargs):
266 """base_OnDrawContents(self, DC dc)"""
267 return _ogl.PyShapeEvtHandler_base_OnDrawContents(*args, **kwargs)
268
269 def base_OnDrawBranches(*args, **kwargs):
270 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
271 return _ogl.PyShapeEvtHandler_base_OnDrawBranches(*args, **kwargs)
272
273 def base_OnMoveLinks(*args, **kwargs):
274 """base_OnMoveLinks(self, DC dc)"""
275 return _ogl.PyShapeEvtHandler_base_OnMoveLinks(*args, **kwargs)
276
277 def base_OnErase(*args, **kwargs):
278 """base_OnErase(self, DC dc)"""
279 return _ogl.PyShapeEvtHandler_base_OnErase(*args, **kwargs)
280
281 def base_OnEraseContents(*args, **kwargs):
282 """base_OnEraseContents(self, DC dc)"""
283 return _ogl.PyShapeEvtHandler_base_OnEraseContents(*args, **kwargs)
284
285 def base_OnHighlight(*args, **kwargs):
286 """base_OnHighlight(self, DC dc)"""
287 return _ogl.PyShapeEvtHandler_base_OnHighlight(*args, **kwargs)
288
289 def base_OnLeftClick(*args, **kwargs):
290 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
291 return _ogl.PyShapeEvtHandler_base_OnLeftClick(*args, **kwargs)
292
293 def base_OnLeftDoubleClick(*args, **kwargs):
294 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
295 return _ogl.PyShapeEvtHandler_base_OnLeftDoubleClick(*args, **kwargs)
296
297 def base_OnRightClick(*args, **kwargs):
298 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
299 return _ogl.PyShapeEvtHandler_base_OnRightClick(*args, **kwargs)
300
301 def base_OnSize(*args, **kwargs):
302 """base_OnSize(self, double x, double y)"""
303 return _ogl.PyShapeEvtHandler_base_OnSize(*args, **kwargs)
304
305 def base_OnMovePre(*args, **kwargs):
306 """
307 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
308 bool display=True) -> bool
309 """
310 return _ogl.PyShapeEvtHandler_base_OnMovePre(*args, **kwargs)
311
312 def base_OnMovePost(*args, **kwargs):
313 """
314 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
315 bool display=True)
316 """
317 return _ogl.PyShapeEvtHandler_base_OnMovePost(*args, **kwargs)
318
319 def base_OnDragLeft(*args, **kwargs):
320 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
321 return _ogl.PyShapeEvtHandler_base_OnDragLeft(*args, **kwargs)
322
323 def base_OnBeginDragLeft(*args, **kwargs):
324 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
325 return _ogl.PyShapeEvtHandler_base_OnBeginDragLeft(*args, **kwargs)
326
327 def base_OnEndDragLeft(*args, **kwargs):
328 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
329 return _ogl.PyShapeEvtHandler_base_OnEndDragLeft(*args, **kwargs)
330
331 def base_OnDragRight(*args, **kwargs):
332 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
333 return _ogl.PyShapeEvtHandler_base_OnDragRight(*args, **kwargs)
334
335 def base_OnBeginDragRight(*args, **kwargs):
336 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
337 return _ogl.PyShapeEvtHandler_base_OnBeginDragRight(*args, **kwargs)
338
339 def base_OnEndDragRight(*args, **kwargs):
340 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
341 return _ogl.PyShapeEvtHandler_base_OnEndDragRight(*args, **kwargs)
342
343 def base_OnDrawOutline(*args, **kwargs):
344 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
345 return _ogl.PyShapeEvtHandler_base_OnDrawOutline(*args, **kwargs)
346
347 def base_OnDrawControlPoints(*args, **kwargs):
348 """base_OnDrawControlPoints(self, DC dc)"""
349 return _ogl.PyShapeEvtHandler_base_OnDrawControlPoints(*args, **kwargs)
350
351 def base_OnEraseControlPoints(*args, **kwargs):
352 """base_OnEraseControlPoints(self, DC dc)"""
353 return _ogl.PyShapeEvtHandler_base_OnEraseControlPoints(*args, **kwargs)
354
355 def base_OnMoveLink(*args, **kwargs):
356 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
357 return _ogl.PyShapeEvtHandler_base_OnMoveLink(*args, **kwargs)
358
359 def base_OnSizingDragLeft(*args, **kwargs):
360 """
361 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
362 int attachment=0)
363 """
364 return _ogl.PyShapeEvtHandler_base_OnSizingDragLeft(*args, **kwargs)
365
366 def base_OnSizingBeginDragLeft(*args, **kwargs):
367 """
368 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
369 int attachment=0)
370 """
371 return _ogl.PyShapeEvtHandler_base_OnSizingBeginDragLeft(*args, **kwargs)
372
373 def base_OnSizingEndDragLeft(*args, **kwargs):
374 """
375 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
376 int attachment=0)
377 """
378 return _ogl.PyShapeEvtHandler_base_OnSizingEndDragLeft(*args, **kwargs)
379
380 def base_OnBeginSize(*args, **kwargs):
381 """base_OnBeginSize(self, double w, double h)"""
382 return _ogl.PyShapeEvtHandler_base_OnBeginSize(*args, **kwargs)
383
384 def base_OnEndSize(*args, **kwargs):
385 """base_OnEndSize(self, double w, double h)"""
386 return _ogl.PyShapeEvtHandler_base_OnEndSize(*args, **kwargs)
387
388
389 class PyShapeEvtHandlerPtr(PyShapeEvtHandler):
390 def __init__(self, this):
391 self.this = this
392 if not hasattr(self,"thisown"): self.thisown = 0
393 self.__class__ = PyShapeEvtHandler
394 _ogl.PyShapeEvtHandler_swigregister(PyShapeEvtHandlerPtr)
395
396 class PyShape(PyShapeEvtHandler):
397 """Proxy of C++ PyShape class"""
398 def __repr__(self):
399 return "<%s.%s; proxy of C++ wxPyShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
400 def __init__(self, *args, **kwargs):
401 """__init__(self, PyShapeCanvas can=None) -> PyShape"""
402 newobj = _ogl.new_PyShape(*args, **kwargs)
403 self.this = newobj.this
404 self.thisown = 1
405 del newobj.thisown
406 self._setOORandCallbackInfo(PyShape)
407
408 def _setCallbackInfo(*args, **kwargs):
409 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
410 return _ogl.PyShape__setCallbackInfo(*args, **kwargs)
411
412 def GetBoundingBoxMax(*args, **kwargs):
413 """GetBoundingBoxMax(self, double OUTPUT, double OUTPUT)"""
414 return _ogl.PyShape_GetBoundingBoxMax(*args, **kwargs)
415
416 def GetBoundingBoxMin(*args, **kwargs):
417 """GetBoundingBoxMin(self, double OUTPUT, double OUTPUT)"""
418 return _ogl.PyShape_GetBoundingBoxMin(*args, **kwargs)
419
420 def GetPerimeterPoint(*args, **kwargs):
421 """
422 GetPerimeterPoint(self, double x1, double y1, double x2, double y2, double OUTPUT,
423 double OUTPUT) -> bool
424 """
425 return _ogl.PyShape_GetPerimeterPoint(*args, **kwargs)
426
427 def GetCanvas(*args, **kwargs):
428 """GetCanvas(self) -> PyShapeCanvas"""
429 return _ogl.PyShape_GetCanvas(*args, **kwargs)
430
431 def SetCanvas(*args, **kwargs):
432 """SetCanvas(self, PyShapeCanvas the_canvas)"""
433 return _ogl.PyShape_SetCanvas(*args, **kwargs)
434
435 def AddToCanvas(*args, **kwargs):
436 """AddToCanvas(self, PyShapeCanvas the_canvas, PyShape addAfter=None)"""
437 return _ogl.PyShape_AddToCanvas(*args, **kwargs)
438
439 def InsertInCanvas(*args, **kwargs):
440 """InsertInCanvas(self, PyShapeCanvas the_canvas)"""
441 return _ogl.PyShape_InsertInCanvas(*args, **kwargs)
442
443 def RemoveFromCanvas(*args, **kwargs):
444 """RemoveFromCanvas(self, PyShapeCanvas the_canvas)"""
445 return _ogl.PyShape_RemoveFromCanvas(*args, **kwargs)
446
447 def GetX(*args, **kwargs):
448 """GetX(self) -> double"""
449 return _ogl.PyShape_GetX(*args, **kwargs)
450
451 def GetY(*args, **kwargs):
452 """GetY(self) -> double"""
453 return _ogl.PyShape_GetY(*args, **kwargs)
454
455 def SetX(*args, **kwargs):
456 """SetX(self, double x)"""
457 return _ogl.PyShape_SetX(*args, **kwargs)
458
459 def SetY(*args, **kwargs):
460 """SetY(self, double y)"""
461 return _ogl.PyShape_SetY(*args, **kwargs)
462
463 def GetParent(*args, **kwargs):
464 """GetParent(self) -> PyShape"""
465 return _ogl.PyShape_GetParent(*args, **kwargs)
466
467 def SetParent(*args, **kwargs):
468 """SetParent(self, PyShape p)"""
469 return _ogl.PyShape_SetParent(*args, **kwargs)
470
471 def GetTopAncestor(*args, **kwargs):
472 """GetTopAncestor(self) -> PyShape"""
473 return _ogl.PyShape_GetTopAncestor(*args, **kwargs)
474
475 def GetChildren(*args, **kwargs):
476 """GetChildren(self) -> PyObject"""
477 return _ogl.PyShape_GetChildren(*args, **kwargs)
478
479 def Unlink(*args, **kwargs):
480 """Unlink(self)"""
481 return _ogl.PyShape_Unlink(*args, **kwargs)
482
483 def SetDrawHandles(*args, **kwargs):
484 """SetDrawHandles(self, bool drawH)"""
485 return _ogl.PyShape_SetDrawHandles(*args, **kwargs)
486
487 def GetDrawHandles(*args, **kwargs):
488 """GetDrawHandles(self) -> bool"""
489 return _ogl.PyShape_GetDrawHandles(*args, **kwargs)
490
491 def MakeControlPoints(*args, **kwargs):
492 """MakeControlPoints(self)"""
493 return _ogl.PyShape_MakeControlPoints(*args, **kwargs)
494
495 def DeleteControlPoints(*args, **kwargs):
496 """DeleteControlPoints(self, DC dc=None)"""
497 return _ogl.PyShape_DeleteControlPoints(*args, **kwargs)
498
499 def ResetControlPoints(*args, **kwargs):
500 """ResetControlPoints(self)"""
501 return _ogl.PyShape_ResetControlPoints(*args, **kwargs)
502
503 def GetEventHandler(*args, **kwargs):
504 """GetEventHandler(self) -> PyShapeEvtHandler"""
505 return _ogl.PyShape_GetEventHandler(*args, **kwargs)
506
507 def SetEventHandler(*args, **kwargs):
508 """SetEventHandler(self, PyShapeEvtHandler handler)"""
509 return _ogl.PyShape_SetEventHandler(*args, **kwargs)
510
511 def MakeMandatoryControlPoints(*args, **kwargs):
512 """MakeMandatoryControlPoints(self)"""
513 return _ogl.PyShape_MakeMandatoryControlPoints(*args, **kwargs)
514
515 def ResetMandatoryControlPoints(*args, **kwargs):
516 """ResetMandatoryControlPoints(self)"""
517 return _ogl.PyShape_ResetMandatoryControlPoints(*args, **kwargs)
518
519 def Recompute(*args, **kwargs):
520 """Recompute(self) -> bool"""
521 return _ogl.PyShape_Recompute(*args, **kwargs)
522
523 def CalculateSize(*args, **kwargs):
524 """CalculateSize(self)"""
525 return _ogl.PyShape_CalculateSize(*args, **kwargs)
526
527 def Select(*args, **kwargs):
528 """Select(self, bool select=True, DC dc=None)"""
529 return _ogl.PyShape_Select(*args, **kwargs)
530
531 def SetHighlight(*args, **kwargs):
532 """SetHighlight(self, bool hi=True, bool recurse=False)"""
533 return _ogl.PyShape_SetHighlight(*args, **kwargs)
534
535 def IsHighlighted(*args, **kwargs):
536 """IsHighlighted(self) -> bool"""
537 return _ogl.PyShape_IsHighlighted(*args, **kwargs)
538
539 def Selected(*args, **kwargs):
540 """Selected(self) -> bool"""
541 return _ogl.PyShape_Selected(*args, **kwargs)
542
543 def AncestorSelected(*args, **kwargs):
544 """AncestorSelected(self) -> bool"""
545 return _ogl.PyShape_AncestorSelected(*args, **kwargs)
546
547 def SetSensitivityFilter(*args, **kwargs):
548 """SetSensitivityFilter(self, int sens=OP_ALL, bool recursive=False)"""
549 return _ogl.PyShape_SetSensitivityFilter(*args, **kwargs)
550
551 def GetSensitivityFilter(*args, **kwargs):
552 """GetSensitivityFilter(self) -> int"""
553 return _ogl.PyShape_GetSensitivityFilter(*args, **kwargs)
554
555 def SetDraggable(*args, **kwargs):
556 """SetDraggable(self, bool drag, bool recursive=False)"""
557 return _ogl.PyShape_SetDraggable(*args, **kwargs)
558
559 def SetFixedSize(*args, **kwargs):
560 """SetFixedSize(self, bool x, bool y)"""
561 return _ogl.PyShape_SetFixedSize(*args, **kwargs)
562
563 def GetFixedSize(*args, **kwargs):
564 """GetFixedSize(self, bool OUTPUT, bool OUTPUT)"""
565 return _ogl.PyShape_GetFixedSize(*args, **kwargs)
566
567 def GetFixedWidth(*args, **kwargs):
568 """GetFixedWidth(self) -> bool"""
569 return _ogl.PyShape_GetFixedWidth(*args, **kwargs)
570
571 def GetFixedHeight(*args, **kwargs):
572 """GetFixedHeight(self) -> bool"""
573 return _ogl.PyShape_GetFixedHeight(*args, **kwargs)
574
575 def SetSpaceAttachments(*args, **kwargs):
576 """SetSpaceAttachments(self, bool sp)"""
577 return _ogl.PyShape_SetSpaceAttachments(*args, **kwargs)
578
579 def GetSpaceAttachments(*args, **kwargs):
580 """GetSpaceAttachments(self) -> bool"""
581 return _ogl.PyShape_GetSpaceAttachments(*args, **kwargs)
582
583 def SetShadowMode(*args, **kwargs):
584 """SetShadowMode(self, int mode, bool redraw=False)"""
585 return _ogl.PyShape_SetShadowMode(*args, **kwargs)
586
587 def GetShadowMode(*args, **kwargs):
588 """GetShadowMode(self) -> int"""
589 return _ogl.PyShape_GetShadowMode(*args, **kwargs)
590
591 def HitTest(*args, **kwargs):
592 """HitTest(self, double x, double y, int OUTPUT, double OUTPUT) -> bool"""
593 return _ogl.PyShape_HitTest(*args, **kwargs)
594
595 def SetCentreResize(*args, **kwargs):
596 """SetCentreResize(self, bool cr)"""
597 return _ogl.PyShape_SetCentreResize(*args, **kwargs)
598
599 def GetCentreResize(*args, **kwargs):
600 """GetCentreResize(self) -> bool"""
601 return _ogl.PyShape_GetCentreResize(*args, **kwargs)
602
603 def SetMaintainAspectRatio(*args, **kwargs):
604 """SetMaintainAspectRatio(self, bool ar)"""
605 return _ogl.PyShape_SetMaintainAspectRatio(*args, **kwargs)
606
607 def GetMaintainAspectRatio(*args, **kwargs):
608 """GetMaintainAspectRatio(self) -> bool"""
609 return _ogl.PyShape_GetMaintainAspectRatio(*args, **kwargs)
610
611 def GetLines(*args, **kwargs):
612 """GetLines(self) -> PyObject"""
613 return _ogl.PyShape_GetLines(*args, **kwargs)
614
615 def SetDisableLabel(*args, **kwargs):
616 """SetDisableLabel(self, bool flag)"""
617 return _ogl.PyShape_SetDisableLabel(*args, **kwargs)
618
619 def GetDisableLabel(*args, **kwargs):
620 """GetDisableLabel(self) -> bool"""
621 return _ogl.PyShape_GetDisableLabel(*args, **kwargs)
622
623 def SetAttachmentMode(*args, **kwargs):
624 """SetAttachmentMode(self, int mode)"""
625 return _ogl.PyShape_SetAttachmentMode(*args, **kwargs)
626
627 def GetAttachmentMode(*args, **kwargs):
628 """GetAttachmentMode(self) -> int"""
629 return _ogl.PyShape_GetAttachmentMode(*args, **kwargs)
630
631 def SetId(*args, **kwargs):
632 """SetId(self, long i)"""
633 return _ogl.PyShape_SetId(*args, **kwargs)
634
635 def GetId(*args, **kwargs):
636 """GetId(self) -> long"""
637 return _ogl.PyShape_GetId(*args, **kwargs)
638
639 def SetPen(*args, **kwargs):
640 """SetPen(self, wxPen pen)"""
641 return _ogl.PyShape_SetPen(*args, **kwargs)
642
643 def SetBrush(*args, **kwargs):
644 """SetBrush(self, wxBrush brush)"""
645 return _ogl.PyShape_SetBrush(*args, **kwargs)
646
647 def SetClientData(self, data):
648 self.clientData = data
649 def GetClientData(self):
650 if hasattr(self, 'clientData'):
651 return self.clientData
652 else:
653 return None
654
655 def Show(*args, **kwargs):
656 """Show(self, bool show)"""
657 return _ogl.PyShape_Show(*args, **kwargs)
658
659 def IsShown(*args, **kwargs):
660 """IsShown(self) -> bool"""
661 return _ogl.PyShape_IsShown(*args, **kwargs)
662
663 def Move(*args, **kwargs):
664 """Move(self, DC dc, double x1, double y1, bool display=True)"""
665 return _ogl.PyShape_Move(*args, **kwargs)
666
667 def Erase(*args, **kwargs):
668 """Erase(self, DC dc)"""
669 return _ogl.PyShape_Erase(*args, **kwargs)
670
671 def EraseContents(*args, **kwargs):
672 """EraseContents(self, DC dc)"""
673 return _ogl.PyShape_EraseContents(*args, **kwargs)
674
675 def Draw(*args, **kwargs):
676 """Draw(self, DC dc)"""
677 return _ogl.PyShape_Draw(*args, **kwargs)
678
679 def Flash(*args, **kwargs):
680 """Flash(self)"""
681 return _ogl.PyShape_Flash(*args, **kwargs)
682
683 def MoveLinks(*args, **kwargs):
684 """MoveLinks(self, DC dc)"""
685 return _ogl.PyShape_MoveLinks(*args, **kwargs)
686
687 def DrawContents(*args, **kwargs):
688 """DrawContents(self, DC dc)"""
689 return _ogl.PyShape_DrawContents(*args, **kwargs)
690
691 def SetSize(*args, **kwargs):
692 """SetSize(self, double x, double y, bool recursive=True)"""
693 return _ogl.PyShape_SetSize(*args, **kwargs)
694
695 def SetAttachmentSize(*args, **kwargs):
696 """SetAttachmentSize(self, double x, double y)"""
697 return _ogl.PyShape_SetAttachmentSize(*args, **kwargs)
698
699 def Attach(*args, **kwargs):
700 """Attach(self, PyShapeCanvas can)"""
701 return _ogl.PyShape_Attach(*args, **kwargs)
702
703 def Detach(*args, **kwargs):
704 """Detach(self)"""
705 return _ogl.PyShape_Detach(*args, **kwargs)
706
707 def Constrain(*args, **kwargs):
708 """Constrain(self) -> bool"""
709 return _ogl.PyShape_Constrain(*args, **kwargs)
710
711 def AddLine(*args, **kwargs):
712 """
713 AddLine(self, PyLineShape line, PyShape other, int attachFrom=0,
714 int attachTo=0, int positionFrom=-1, int positionTo=-1)
715 """
716 return _ogl.PyShape_AddLine(*args, **kwargs)
717
718 def GetLinePosition(*args, **kwargs):
719 """GetLinePosition(self, PyLineShape line) -> int"""
720 return _ogl.PyShape_GetLinePosition(*args, **kwargs)
721
722 def AddText(*args, **kwargs):
723 """AddText(self, String string)"""
724 return _ogl.PyShape_AddText(*args, **kwargs)
725
726 def GetPen(*args, **kwargs):
727 """GetPen(self) -> wxPen"""
728 return _ogl.PyShape_GetPen(*args, **kwargs)
729
730 def GetBrush(*args, **kwargs):
731 """GetBrush(self) -> wxBrush"""
732 return _ogl.PyShape_GetBrush(*args, **kwargs)
733
734 def SetDefaultRegionSize(*args, **kwargs):
735 """SetDefaultRegionSize(self)"""
736 return _ogl.PyShape_SetDefaultRegionSize(*args, **kwargs)
737
738 def FormatText(*args, **kwargs):
739 """FormatText(self, DC dc, String s, int regionId=0)"""
740 return _ogl.PyShape_FormatText(*args, **kwargs)
741
742 def SetFormatMode(*args, **kwargs):
743 """SetFormatMode(self, int mode, int regionId=0)"""
744 return _ogl.PyShape_SetFormatMode(*args, **kwargs)
745
746 def GetFormatMode(*args, **kwargs):
747 """GetFormatMode(self, int regionId=0) -> int"""
748 return _ogl.PyShape_GetFormatMode(*args, **kwargs)
749
750 def SetFont(*args, **kwargs):
751 """SetFont(self, Font font, int regionId=0)"""
752 return _ogl.PyShape_SetFont(*args, **kwargs)
753
754 def GetFont(*args, **kwargs):
755 """GetFont(self, int regionId=0) -> Font"""
756 return _ogl.PyShape_GetFont(*args, **kwargs)
757
758 def SetTextColour(*args, **kwargs):
759 """SetTextColour(self, String colour, int regionId=0)"""
760 return _ogl.PyShape_SetTextColour(*args, **kwargs)
761
762 def GetTextColour(*args, **kwargs):
763 """GetTextColour(self, int regionId=0) -> String"""
764 return _ogl.PyShape_GetTextColour(*args, **kwargs)
765
766 def GetNumberOfTextRegions(*args, **kwargs):
767 """GetNumberOfTextRegions(self) -> int"""
768 return _ogl.PyShape_GetNumberOfTextRegions(*args, **kwargs)
769
770 def SetRegionName(*args, **kwargs):
771 """SetRegionName(self, String name, int regionId=0)"""
772 return _ogl.PyShape_SetRegionName(*args, **kwargs)
773
774 def GetRegionName(*args, **kwargs):
775 """GetRegionName(self, int regionId) -> String"""
776 return _ogl.PyShape_GetRegionName(*args, **kwargs)
777
778 def GetRegionId(*args, **kwargs):
779 """GetRegionId(self, String name) -> int"""
780 return _ogl.PyShape_GetRegionId(*args, **kwargs)
781
782 def NameRegions(*args, **kwargs):
783 """NameRegions(self, String parentName=EmptyString)"""
784 return _ogl.PyShape_NameRegions(*args, **kwargs)
785
786 def GetRegions(*args, **kwargs):
787 """GetRegions(self) -> PyObject"""
788 return _ogl.PyShape_GetRegions(*args, **kwargs)
789
790 def AddRegion(*args, **kwargs):
791 """AddRegion(self, ShapeRegion region)"""
792 return _ogl.PyShape_AddRegion(*args, **kwargs)
793
794 def ClearRegions(*args, **kwargs):
795 """ClearRegions(self)"""
796 return _ogl.PyShape_ClearRegions(*args, **kwargs)
797
798 def AssignNewIds(*args, **kwargs):
799 """AssignNewIds(self)"""
800 return _ogl.PyShape_AssignNewIds(*args, **kwargs)
801
802 def FindRegion(*args, **kwargs):
803 """FindRegion(self, String regionName, int OUTPUT) -> PyShape"""
804 return _ogl.PyShape_FindRegion(*args, **kwargs)
805
806 def FindRegionNames(*args, **kwargs):
807 """FindRegionNames(self, wxStringList list)"""
808 return _ogl.PyShape_FindRegionNames(*args, **kwargs)
809
810 def ClearText(*args, **kwargs):
811 """ClearText(self, int regionId=0)"""
812 return _ogl.PyShape_ClearText(*args, **kwargs)
813
814 def RemoveLine(*args, **kwargs):
815 """RemoveLine(self, PyLineShape line)"""
816 return _ogl.PyShape_RemoveLine(*args, **kwargs)
817
818 def GetAttachmentPosition(*args, **kwargs):
819 """
820 GetAttachmentPosition(self, int attachment, double OUTPUT, double OUTPUT, int nth=0,
821 int no_arcs=1, PyLineShape line=None) -> bool
822 """
823 return _ogl.PyShape_GetAttachmentPosition(*args, **kwargs)
824
825 def GetNumberOfAttachments(*args, **kwargs):
826 """GetNumberOfAttachments(self) -> int"""
827 return _ogl.PyShape_GetNumberOfAttachments(*args, **kwargs)
828
829 def AttachmentIsValid(*args, **kwargs):
830 """AttachmentIsValid(self, int attachment) -> bool"""
831 return _ogl.PyShape_AttachmentIsValid(*args, **kwargs)
832
833 def GetAttachments(*args, **kwargs):
834 """GetAttachments(self) -> PyObject"""
835 return _ogl.PyShape_GetAttachments(*args, **kwargs)
836
837 def GetAttachmentPositionEdge(*args, **kwargs):
838 """
839 GetAttachmentPositionEdge(self, int attachment, double OUTPUT, double OUTPUT, int nth=0,
840 int no_arcs=1, PyLineShape line=None) -> bool
841 """
842 return _ogl.PyShape_GetAttachmentPositionEdge(*args, **kwargs)
843
844 def CalcSimpleAttachment(*args, **kwargs):
845 """
846 CalcSimpleAttachment(self, RealPoint pt1, RealPoint pt2, int nth, int noArcs,
847 PyLineShape line) -> RealPoint
848 """
849 return _ogl.PyShape_CalcSimpleAttachment(*args, **kwargs)
850
851 def AttachmentSortTest(*args, **kwargs):
852 """AttachmentSortTest(self, int attachmentPoint, RealPoint pt1, RealPoint pt2) -> bool"""
853 return _ogl.PyShape_AttachmentSortTest(*args, **kwargs)
854
855 def EraseLinks(*args, **kwargs):
856 """EraseLinks(self, DC dc, int attachment=-1, bool recurse=False)"""
857 return _ogl.PyShape_EraseLinks(*args, **kwargs)
858
859 def DrawLinks(*args, **kwargs):
860 """DrawLinks(self, DC dc, int attachment=-1, bool recurse=False)"""
861 return _ogl.PyShape_DrawLinks(*args, **kwargs)
862
863 def MoveLineToNewAttachment(*args, **kwargs):
864 """MoveLineToNewAttachment(self, DC dc, PyLineShape to_move, double x, double y) -> bool"""
865 return _ogl.PyShape_MoveLineToNewAttachment(*args, **kwargs)
866
867 def ApplyAttachmentOrdering(*args, **kwargs):
868 """ApplyAttachmentOrdering(self, PyObject linesToSort)"""
869 return _ogl.PyShape_ApplyAttachmentOrdering(*args, **kwargs)
870
871 def GetBranchingAttachmentRoot(*args, **kwargs):
872 """GetBranchingAttachmentRoot(self, int attachment) -> RealPoint"""
873 return _ogl.PyShape_GetBranchingAttachmentRoot(*args, **kwargs)
874
875 def GetBranchingAttachmentInfo(*args, **kwargs):
876 """
877 GetBranchingAttachmentInfo(self, int attachment, RealPoint root, RealPoint neck, RealPoint shoulder1,
878 RealPoint shoulder2) -> bool
879 """
880 return _ogl.PyShape_GetBranchingAttachmentInfo(*args, **kwargs)
881
882 def GetBranchingAttachmentPoint(*args, **kwargs):
883 """GetBranchingAttachmentPoint(self, int attachment, int n, RealPoint attachmentPoint, RealPoint stemPoint) -> bool"""
884 return _ogl.PyShape_GetBranchingAttachmentPoint(*args, **kwargs)
885
886 def GetAttachmentLineCount(*args, **kwargs):
887 """GetAttachmentLineCount(self, int attachment) -> int"""
888 return _ogl.PyShape_GetAttachmentLineCount(*args, **kwargs)
889
890 def SetBranchNeckLength(*args, **kwargs):
891 """SetBranchNeckLength(self, int len)"""
892 return _ogl.PyShape_SetBranchNeckLength(*args, **kwargs)
893
894 def GetBranchNeckLength(*args, **kwargs):
895 """GetBranchNeckLength(self) -> int"""
896 return _ogl.PyShape_GetBranchNeckLength(*args, **kwargs)
897
898 def SetBranchStemLength(*args, **kwargs):
899 """SetBranchStemLength(self, int len)"""
900 return _ogl.PyShape_SetBranchStemLength(*args, **kwargs)
901
902 def GetBranchStemLength(*args, **kwargs):
903 """GetBranchStemLength(self) -> int"""
904 return _ogl.PyShape_GetBranchStemLength(*args, **kwargs)
905
906 def SetBranchSpacing(*args, **kwargs):
907 """SetBranchSpacing(self, int len)"""
908 return _ogl.PyShape_SetBranchSpacing(*args, **kwargs)
909
910 def GetBranchSpacing(*args, **kwargs):
911 """GetBranchSpacing(self) -> int"""
912 return _ogl.PyShape_GetBranchSpacing(*args, **kwargs)
913
914 def SetBranchStyle(*args, **kwargs):
915 """SetBranchStyle(self, long style)"""
916 return _ogl.PyShape_SetBranchStyle(*args, **kwargs)
917
918 def GetBranchStyle(*args, **kwargs):
919 """GetBranchStyle(self) -> long"""
920 return _ogl.PyShape_GetBranchStyle(*args, **kwargs)
921
922 def PhysicalToLogicalAttachment(*args, **kwargs):
923 """PhysicalToLogicalAttachment(self, int physicalAttachment) -> int"""
924 return _ogl.PyShape_PhysicalToLogicalAttachment(*args, **kwargs)
925
926 def LogicalToPhysicalAttachment(*args, **kwargs):
927 """LogicalToPhysicalAttachment(self, int logicalAttachment) -> int"""
928 return _ogl.PyShape_LogicalToPhysicalAttachment(*args, **kwargs)
929
930 def Draggable(*args, **kwargs):
931 """Draggable(self) -> bool"""
932 return _ogl.PyShape_Draggable(*args, **kwargs)
933
934 def HasDescendant(*args, **kwargs):
935 """HasDescendant(self, PyShape image) -> bool"""
936 return _ogl.PyShape_HasDescendant(*args, **kwargs)
937
938 def CreateNewCopy(*args, **kwargs):
939 """CreateNewCopy(self, bool resetMapping=True, bool recompute=True) -> PyShape"""
940 return _ogl.PyShape_CreateNewCopy(*args, **kwargs)
941
942 def Copy(*args, **kwargs):
943 """Copy(self, PyShape copy)"""
944 return _ogl.PyShape_Copy(*args, **kwargs)
945
946 def CopyWithHandler(*args, **kwargs):
947 """CopyWithHandler(self, PyShape copy)"""
948 return _ogl.PyShape_CopyWithHandler(*args, **kwargs)
949
950 def Rotate(*args, **kwargs):
951 """Rotate(self, double x, double y, double theta)"""
952 return _ogl.PyShape_Rotate(*args, **kwargs)
953
954 def GetRotation(*args, **kwargs):
955 """GetRotation(self) -> double"""
956 return _ogl.PyShape_GetRotation(*args, **kwargs)
957
958 def SetRotation(*args, **kwargs):
959 """SetRotation(self, double rotation)"""
960 return _ogl.PyShape_SetRotation(*args, **kwargs)
961
962 def ClearAttachments(*args, **kwargs):
963 """ClearAttachments(self)"""
964 return _ogl.PyShape_ClearAttachments(*args, **kwargs)
965
966 def Recentre(*args, **kwargs):
967 """Recentre(self, DC dc)"""
968 return _ogl.PyShape_Recentre(*args, **kwargs)
969
970 def ClearPointList(*args, **kwargs):
971 """ClearPointList(self, wxList list)"""
972 return _ogl.PyShape_ClearPointList(*args, **kwargs)
973
974 def GetBackgroundPen(*args, **kwargs):
975 """GetBackgroundPen(self) -> wxPen"""
976 return _ogl.PyShape_GetBackgroundPen(*args, **kwargs)
977
978 def GetBackgroundBrush(*args, **kwargs):
979 """GetBackgroundBrush(self) -> wxBrush"""
980 return _ogl.PyShape_GetBackgroundBrush(*args, **kwargs)
981
982 def base_OnDelete(*args, **kwargs):
983 """base_OnDelete(self)"""
984 return _ogl.PyShape_base_OnDelete(*args, **kwargs)
985
986 def base_OnDraw(*args, **kwargs):
987 """base_OnDraw(self, DC dc)"""
988 return _ogl.PyShape_base_OnDraw(*args, **kwargs)
989
990 def base_OnDrawContents(*args, **kwargs):
991 """base_OnDrawContents(self, DC dc)"""
992 return _ogl.PyShape_base_OnDrawContents(*args, **kwargs)
993
994 def base_OnDrawBranches(*args, **kwargs):
995 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
996 return _ogl.PyShape_base_OnDrawBranches(*args, **kwargs)
997
998 def base_OnMoveLinks(*args, **kwargs):
999 """base_OnMoveLinks(self, DC dc)"""
1000 return _ogl.PyShape_base_OnMoveLinks(*args, **kwargs)
1001
1002 def base_OnErase(*args, **kwargs):
1003 """base_OnErase(self, DC dc)"""
1004 return _ogl.PyShape_base_OnErase(*args, **kwargs)
1005
1006 def base_OnEraseContents(*args, **kwargs):
1007 """base_OnEraseContents(self, DC dc)"""
1008 return _ogl.PyShape_base_OnEraseContents(*args, **kwargs)
1009
1010 def base_OnHighlight(*args, **kwargs):
1011 """base_OnHighlight(self, DC dc)"""
1012 return _ogl.PyShape_base_OnHighlight(*args, **kwargs)
1013
1014 def base_OnLeftClick(*args, **kwargs):
1015 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
1016 return _ogl.PyShape_base_OnLeftClick(*args, **kwargs)
1017
1018 def base_OnLeftDoubleClick(*args, **kwargs):
1019 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
1020 return _ogl.PyShape_base_OnLeftDoubleClick(*args, **kwargs)
1021
1022 def base_OnRightClick(*args, **kwargs):
1023 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
1024 return _ogl.PyShape_base_OnRightClick(*args, **kwargs)
1025
1026 def base_OnSize(*args, **kwargs):
1027 """base_OnSize(self, double x, double y)"""
1028 return _ogl.PyShape_base_OnSize(*args, **kwargs)
1029
1030 def base_OnMovePre(*args, **kwargs):
1031 """
1032 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
1033 bool display=True) -> bool
1034 """
1035 return _ogl.PyShape_base_OnMovePre(*args, **kwargs)
1036
1037 def base_OnMovePost(*args, **kwargs):
1038 """
1039 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
1040 bool display=True)
1041 """
1042 return _ogl.PyShape_base_OnMovePost(*args, **kwargs)
1043
1044 def base_OnDragLeft(*args, **kwargs):
1045 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
1046 return _ogl.PyShape_base_OnDragLeft(*args, **kwargs)
1047
1048 def base_OnBeginDragLeft(*args, **kwargs):
1049 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
1050 return _ogl.PyShape_base_OnBeginDragLeft(*args, **kwargs)
1051
1052 def base_OnEndDragLeft(*args, **kwargs):
1053 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
1054 return _ogl.PyShape_base_OnEndDragLeft(*args, **kwargs)
1055
1056 def base_OnDragRight(*args, **kwargs):
1057 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
1058 return _ogl.PyShape_base_OnDragRight(*args, **kwargs)
1059
1060 def base_OnBeginDragRight(*args, **kwargs):
1061 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
1062 return _ogl.PyShape_base_OnBeginDragRight(*args, **kwargs)
1063
1064 def base_OnEndDragRight(*args, **kwargs):
1065 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
1066 return _ogl.PyShape_base_OnEndDragRight(*args, **kwargs)
1067
1068 def base_OnDrawOutline(*args, **kwargs):
1069 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
1070 return _ogl.PyShape_base_OnDrawOutline(*args, **kwargs)
1071
1072 def base_OnDrawControlPoints(*args, **kwargs):
1073 """base_OnDrawControlPoints(self, DC dc)"""
1074 return _ogl.PyShape_base_OnDrawControlPoints(*args, **kwargs)
1075
1076 def base_OnEraseControlPoints(*args, **kwargs):
1077 """base_OnEraseControlPoints(self, DC dc)"""
1078 return _ogl.PyShape_base_OnEraseControlPoints(*args, **kwargs)
1079
1080 def base_OnMoveLink(*args, **kwargs):
1081 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
1082 return _ogl.PyShape_base_OnMoveLink(*args, **kwargs)
1083
1084 def base_OnSizingDragLeft(*args, **kwargs):
1085 """
1086 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
1087 int attachment=0)
1088 """
1089 return _ogl.PyShape_base_OnSizingDragLeft(*args, **kwargs)
1090
1091 def base_OnSizingBeginDragLeft(*args, **kwargs):
1092 """
1093 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
1094 int attachment=0)
1095 """
1096 return _ogl.PyShape_base_OnSizingBeginDragLeft(*args, **kwargs)
1097
1098 def base_OnSizingEndDragLeft(*args, **kwargs):
1099 """
1100 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
1101 int attachment=0)
1102 """
1103 return _ogl.PyShape_base_OnSizingEndDragLeft(*args, **kwargs)
1104
1105 def base_OnBeginSize(*args, **kwargs):
1106 """base_OnBeginSize(self, double w, double h)"""
1107 return _ogl.PyShape_base_OnBeginSize(*args, **kwargs)
1108
1109 def base_OnEndSize(*args, **kwargs):
1110 """base_OnEndSize(self, double w, double h)"""
1111 return _ogl.PyShape_base_OnEndSize(*args, **kwargs)
1112
1113
1114 class PyShapePtr(PyShape):
1115 def __init__(self, this):
1116 self.this = this
1117 if not hasattr(self,"thisown"): self.thisown = 0
1118 self.__class__ = PyShape
1119 _ogl.PyShape_swigregister(PyShapePtr)
1120
1121 oglMETAFLAGS_OUTLINE = _ogl.oglMETAFLAGS_OUTLINE
1122 oglMETAFLAGS_ATTACHMENTS = _ogl.oglMETAFLAGS_ATTACHMENTS
1123 class PseudoMetaFile(_core.Object):
1124 """Proxy of C++ PseudoMetaFile class"""
1125 def __repr__(self):
1126 return "<%s.%s; proxy of C++ wxPseudoMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1127 def __init__(self, *args, **kwargs):
1128 """__init__(self) -> PseudoMetaFile"""
1129 newobj = _ogl.new_PseudoMetaFile(*args, **kwargs)
1130 self.this = newobj.this
1131 self.thisown = 1
1132 del newobj.thisown
1133 def __del__(self, destroy=_ogl.delete_PseudoMetaFile):
1134 """__del__(self)"""
1135 try:
1136 if self.thisown: destroy(self)
1137 except: pass
1138
1139 def Draw(*args, **kwargs):
1140 """Draw(self, DC dc, double xoffset, double yoffset)"""
1141 return _ogl.PseudoMetaFile_Draw(*args, **kwargs)
1142
1143 def Clear(*args, **kwargs):
1144 """Clear(self)"""
1145 return _ogl.PseudoMetaFile_Clear(*args, **kwargs)
1146
1147 def Copy(*args, **kwargs):
1148 """Copy(self, PseudoMetaFile copy)"""
1149 return _ogl.PseudoMetaFile_Copy(*args, **kwargs)
1150
1151 def Scale(*args, **kwargs):
1152 """Scale(self, double sx, double sy)"""
1153 return _ogl.PseudoMetaFile_Scale(*args, **kwargs)
1154
1155 def ScaleTo(*args, **kwargs):
1156 """ScaleTo(self, double w, double h)"""
1157 return _ogl.PseudoMetaFile_ScaleTo(*args, **kwargs)
1158
1159 def Translate(*args, **kwargs):
1160 """Translate(self, double x, double y)"""
1161 return _ogl.PseudoMetaFile_Translate(*args, **kwargs)
1162
1163 def Rotate(*args, **kwargs):
1164 """Rotate(self, double x, double y, double theta)"""
1165 return _ogl.PseudoMetaFile_Rotate(*args, **kwargs)
1166
1167 def LoadFromMetaFile(*args, **kwargs):
1168 """LoadFromMetaFile(self, String filename, double width, double height) -> bool"""
1169 return _ogl.PseudoMetaFile_LoadFromMetaFile(*args, **kwargs)
1170
1171 def GetBounds(*args, **kwargs):
1172 """GetBounds(self, double minX, double minY, double maxX, double maxY)"""
1173 return _ogl.PseudoMetaFile_GetBounds(*args, **kwargs)
1174
1175 def CalculateSize(*args, **kwargs):
1176 """CalculateSize(self, PyDrawnShape shape)"""
1177 return _ogl.PseudoMetaFile_CalculateSize(*args, **kwargs)
1178
1179 def SetRotateable(*args, **kwargs):
1180 """SetRotateable(self, bool rot)"""
1181 return _ogl.PseudoMetaFile_SetRotateable(*args, **kwargs)
1182
1183 def GetRotateable(*args, **kwargs):
1184 """GetRotateable(self) -> bool"""
1185 return _ogl.PseudoMetaFile_GetRotateable(*args, **kwargs)
1186
1187 def SetSize(*args, **kwargs):
1188 """SetSize(self, double w, double h)"""
1189 return _ogl.PseudoMetaFile_SetSize(*args, **kwargs)
1190
1191 def SetFillBrush(*args, **kwargs):
1192 """SetFillBrush(self, wxBrush brush)"""
1193 return _ogl.PseudoMetaFile_SetFillBrush(*args, **kwargs)
1194
1195 def GetFillBrush(*args, **kwargs):
1196 """GetFillBrush(self) -> wxBrush"""
1197 return _ogl.PseudoMetaFile_GetFillBrush(*args, **kwargs)
1198
1199 def SetOutlinePen(*args, **kwargs):
1200 """SetOutlinePen(self, wxPen pen)"""
1201 return _ogl.PseudoMetaFile_SetOutlinePen(*args, **kwargs)
1202
1203 def GetOutlinePen(*args, **kwargs):
1204 """GetOutlinePen(self) -> wxPen"""
1205 return _ogl.PseudoMetaFile_GetOutlinePen(*args, **kwargs)
1206
1207 def SetOutlineOp(*args, **kwargs):
1208 """SetOutlineOp(self, int op)"""
1209 return _ogl.PseudoMetaFile_SetOutlineOp(*args, **kwargs)
1210
1211 def GetOutlineOp(*args, **kwargs):
1212 """GetOutlineOp(self) -> int"""
1213 return _ogl.PseudoMetaFile_GetOutlineOp(*args, **kwargs)
1214
1215 def IsValid(*args, **kwargs):
1216 """IsValid(self) -> bool"""
1217 return _ogl.PseudoMetaFile_IsValid(*args, **kwargs)
1218
1219 def DrawLine(*args, **kwargs):
1220 """DrawLine(self, Point pt1, Point pt2)"""
1221 return _ogl.PseudoMetaFile_DrawLine(*args, **kwargs)
1222
1223 def DrawRectangle(*args, **kwargs):
1224 """DrawRectangle(self, Rect rect)"""
1225 return _ogl.PseudoMetaFile_DrawRectangle(*args, **kwargs)
1226
1227 def DrawRoundedRectangle(*args, **kwargs):
1228 """DrawRoundedRectangle(self, Rect rect, double radius)"""
1229 return _ogl.PseudoMetaFile_DrawRoundedRectangle(*args, **kwargs)
1230
1231 def DrawArc(*args, **kwargs):
1232 """DrawArc(self, Point centrePt, Point startPt, Point endPt)"""
1233 return _ogl.PseudoMetaFile_DrawArc(*args, **kwargs)
1234
1235 def DrawEllipticArc(*args, **kwargs):
1236 """DrawEllipticArc(self, Rect rect, double startAngle, double endAngle)"""
1237 return _ogl.PseudoMetaFile_DrawEllipticArc(*args, **kwargs)
1238
1239 def DrawEllipse(*args, **kwargs):
1240 """DrawEllipse(self, Rect rect)"""
1241 return _ogl.PseudoMetaFile_DrawEllipse(*args, **kwargs)
1242
1243 def DrawPoint(*args, **kwargs):
1244 """DrawPoint(self, Point pt)"""
1245 return _ogl.PseudoMetaFile_DrawPoint(*args, **kwargs)
1246
1247 def DrawText(*args, **kwargs):
1248 """DrawText(self, String text, Point pt)"""
1249 return _ogl.PseudoMetaFile_DrawText(*args, **kwargs)
1250
1251 def DrawLines(*args, **kwargs):
1252 """DrawLines(self, int points)"""
1253 return _ogl.PseudoMetaFile_DrawLines(*args, **kwargs)
1254
1255 def DrawPolygon(*args, **kwargs):
1256 """DrawPolygon(self, int points, int flags=0)"""
1257 return _ogl.PseudoMetaFile_DrawPolygon(*args, **kwargs)
1258
1259 def DrawSpline(*args, **kwargs):
1260 """DrawSpline(self, int points)"""
1261 return _ogl.PseudoMetaFile_DrawSpline(*args, **kwargs)
1262
1263 def SetClippingRect(*args, **kwargs):
1264 """SetClippingRect(self, Rect rect)"""
1265 return _ogl.PseudoMetaFile_SetClippingRect(*args, **kwargs)
1266
1267 def DestroyClippingRect(*args, **kwargs):
1268 """DestroyClippingRect(self)"""
1269 return _ogl.PseudoMetaFile_DestroyClippingRect(*args, **kwargs)
1270
1271 def SetPen(*args, **kwargs):
1272 """SetPen(self, wxPen pen, bool isOutline=False)"""
1273 return _ogl.PseudoMetaFile_SetPen(*args, **kwargs)
1274
1275 def SetBrush(*args, **kwargs):
1276 """SetBrush(self, wxBrush brush, bool isFill=False)"""
1277 return _ogl.PseudoMetaFile_SetBrush(*args, **kwargs)
1278
1279 def SetFont(*args, **kwargs):
1280 """SetFont(self, Font font)"""
1281 return _ogl.PseudoMetaFile_SetFont(*args, **kwargs)
1282
1283 def SetTextColour(*args, **kwargs):
1284 """SetTextColour(self, Colour colour)"""
1285 return _ogl.PseudoMetaFile_SetTextColour(*args, **kwargs)
1286
1287 def SetBackgroundColour(*args, **kwargs):
1288 """SetBackgroundColour(self, Colour colour)"""
1289 return _ogl.PseudoMetaFile_SetBackgroundColour(*args, **kwargs)
1290
1291 def SetBackgroundMode(*args, **kwargs):
1292 """SetBackgroundMode(self, int mode)"""
1293 return _ogl.PseudoMetaFile_SetBackgroundMode(*args, **kwargs)
1294
1295
1296 class PseudoMetaFilePtr(PseudoMetaFile):
1297 def __init__(self, this):
1298 self.this = this
1299 if not hasattr(self,"thisown"): self.thisown = 0
1300 self.__class__ = PseudoMetaFile
1301 _ogl.PseudoMetaFile_swigregister(PseudoMetaFilePtr)
1302
1303 class PyRectangleShape(PyShape):
1304 """Proxy of C++ PyRectangleShape class"""
1305 def __repr__(self):
1306 return "<%s.%s; proxy of C++ wxPyRectangleShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1307 def __init__(self, *args, **kwargs):
1308 """__init__(self, double width=0.0, double height=0.0) -> PyRectangleShape"""
1309 newobj = _ogl.new_PyRectangleShape(*args, **kwargs)
1310 self.this = newobj.this
1311 self.thisown = 1
1312 del newobj.thisown
1313 self._setOORandCallbackInfo(PyRectangleShape)
1314
1315 def _setCallbackInfo(*args, **kwargs):
1316 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1317 return _ogl.PyRectangleShape__setCallbackInfo(*args, **kwargs)
1318
1319 def SetCornerRadius(*args, **kwargs):
1320 """SetCornerRadius(self, double radius)"""
1321 return _ogl.PyRectangleShape_SetCornerRadius(*args, **kwargs)
1322
1323 def GetCornerRadius(*args, **kwargs):
1324 """GetCornerRadius(self) -> double"""
1325 return _ogl.PyRectangleShape_GetCornerRadius(*args, **kwargs)
1326
1327 def base_OnDelete(*args, **kwargs):
1328 """base_OnDelete(self)"""
1329 return _ogl.PyRectangleShape_base_OnDelete(*args, **kwargs)
1330
1331 def base_OnDraw(*args, **kwargs):
1332 """base_OnDraw(self, DC dc)"""
1333 return _ogl.PyRectangleShape_base_OnDraw(*args, **kwargs)
1334
1335 def base_OnDrawContents(*args, **kwargs):
1336 """base_OnDrawContents(self, DC dc)"""
1337 return _ogl.PyRectangleShape_base_OnDrawContents(*args, **kwargs)
1338
1339 def base_OnDrawBranches(*args, **kwargs):
1340 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
1341 return _ogl.PyRectangleShape_base_OnDrawBranches(*args, **kwargs)
1342
1343 def base_OnMoveLinks(*args, **kwargs):
1344 """base_OnMoveLinks(self, DC dc)"""
1345 return _ogl.PyRectangleShape_base_OnMoveLinks(*args, **kwargs)
1346
1347 def base_OnErase(*args, **kwargs):
1348 """base_OnErase(self, DC dc)"""
1349 return _ogl.PyRectangleShape_base_OnErase(*args, **kwargs)
1350
1351 def base_OnEraseContents(*args, **kwargs):
1352 """base_OnEraseContents(self, DC dc)"""
1353 return _ogl.PyRectangleShape_base_OnEraseContents(*args, **kwargs)
1354
1355 def base_OnHighlight(*args, **kwargs):
1356 """base_OnHighlight(self, DC dc)"""
1357 return _ogl.PyRectangleShape_base_OnHighlight(*args, **kwargs)
1358
1359 def base_OnLeftClick(*args, **kwargs):
1360 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
1361 return _ogl.PyRectangleShape_base_OnLeftClick(*args, **kwargs)
1362
1363 def base_OnLeftDoubleClick(*args, **kwargs):
1364 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
1365 return _ogl.PyRectangleShape_base_OnLeftDoubleClick(*args, **kwargs)
1366
1367 def base_OnRightClick(*args, **kwargs):
1368 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
1369 return _ogl.PyRectangleShape_base_OnRightClick(*args, **kwargs)
1370
1371 def base_OnSize(*args, **kwargs):
1372 """base_OnSize(self, double x, double y)"""
1373 return _ogl.PyRectangleShape_base_OnSize(*args, **kwargs)
1374
1375 def base_OnMovePre(*args, **kwargs):
1376 """
1377 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
1378 bool display=True) -> bool
1379 """
1380 return _ogl.PyRectangleShape_base_OnMovePre(*args, **kwargs)
1381
1382 def base_OnMovePost(*args, **kwargs):
1383 """
1384 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
1385 bool display=True)
1386 """
1387 return _ogl.PyRectangleShape_base_OnMovePost(*args, **kwargs)
1388
1389 def base_OnDragLeft(*args, **kwargs):
1390 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
1391 return _ogl.PyRectangleShape_base_OnDragLeft(*args, **kwargs)
1392
1393 def base_OnBeginDragLeft(*args, **kwargs):
1394 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
1395 return _ogl.PyRectangleShape_base_OnBeginDragLeft(*args, **kwargs)
1396
1397 def base_OnEndDragLeft(*args, **kwargs):
1398 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
1399 return _ogl.PyRectangleShape_base_OnEndDragLeft(*args, **kwargs)
1400
1401 def base_OnDragRight(*args, **kwargs):
1402 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
1403 return _ogl.PyRectangleShape_base_OnDragRight(*args, **kwargs)
1404
1405 def base_OnBeginDragRight(*args, **kwargs):
1406 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
1407 return _ogl.PyRectangleShape_base_OnBeginDragRight(*args, **kwargs)
1408
1409 def base_OnEndDragRight(*args, **kwargs):
1410 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
1411 return _ogl.PyRectangleShape_base_OnEndDragRight(*args, **kwargs)
1412
1413 def base_OnDrawOutline(*args, **kwargs):
1414 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
1415 return _ogl.PyRectangleShape_base_OnDrawOutline(*args, **kwargs)
1416
1417 def base_OnDrawControlPoints(*args, **kwargs):
1418 """base_OnDrawControlPoints(self, DC dc)"""
1419 return _ogl.PyRectangleShape_base_OnDrawControlPoints(*args, **kwargs)
1420
1421 def base_OnEraseControlPoints(*args, **kwargs):
1422 """base_OnEraseControlPoints(self, DC dc)"""
1423 return _ogl.PyRectangleShape_base_OnEraseControlPoints(*args, **kwargs)
1424
1425 def base_OnMoveLink(*args, **kwargs):
1426 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
1427 return _ogl.PyRectangleShape_base_OnMoveLink(*args, **kwargs)
1428
1429 def base_OnSizingDragLeft(*args, **kwargs):
1430 """
1431 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
1432 int attachment=0)
1433 """
1434 return _ogl.PyRectangleShape_base_OnSizingDragLeft(*args, **kwargs)
1435
1436 def base_OnSizingBeginDragLeft(*args, **kwargs):
1437 """
1438 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
1439 int attachment=0)
1440 """
1441 return _ogl.PyRectangleShape_base_OnSizingBeginDragLeft(*args, **kwargs)
1442
1443 def base_OnSizingEndDragLeft(*args, **kwargs):
1444 """
1445 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
1446 int attachment=0)
1447 """
1448 return _ogl.PyRectangleShape_base_OnSizingEndDragLeft(*args, **kwargs)
1449
1450 def base_OnBeginSize(*args, **kwargs):
1451 """base_OnBeginSize(self, double w, double h)"""
1452 return _ogl.PyRectangleShape_base_OnBeginSize(*args, **kwargs)
1453
1454 def base_OnEndSize(*args, **kwargs):
1455 """base_OnEndSize(self, double w, double h)"""
1456 return _ogl.PyRectangleShape_base_OnEndSize(*args, **kwargs)
1457
1458
1459 class PyRectangleShapePtr(PyRectangleShape):
1460 def __init__(self, this):
1461 self.this = this
1462 if not hasattr(self,"thisown"): self.thisown = 0
1463 self.__class__ = PyRectangleShape
1464 _ogl.PyRectangleShape_swigregister(PyRectangleShapePtr)
1465
1466 class PyControlPoint(PyRectangleShape):
1467 """Proxy of C++ PyControlPoint class"""
1468 def __repr__(self):
1469 return "<%s.%s; proxy of C++ wxPyControlPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1470 def __init__(self, *args, **kwargs):
1471 """
1472 __init__(self, PyShapeCanvas the_canvas=None, PyShape object=None,
1473 double size=0.0, double the_xoffset=0.0, double the_yoffset=0.0,
1474 int the_type=0) -> PyControlPoint
1475 """
1476 newobj = _ogl.new_PyControlPoint(*args, **kwargs)
1477 self.this = newobj.this
1478 self.thisown = 1
1479 del newobj.thisown
1480 self._setOORandCallbackInfo(PyControlPoint)
1481
1482 def _setCallbackInfo(*args, **kwargs):
1483 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1484 return _ogl.PyControlPoint__setCallbackInfo(*args, **kwargs)
1485
1486 def SetCornerRadius(*args, **kwargs):
1487 """SetCornerRadius(self, double radius)"""
1488 return _ogl.PyControlPoint_SetCornerRadius(*args, **kwargs)
1489
1490 def base_OnDelete(*args, **kwargs):
1491 """base_OnDelete(self)"""
1492 return _ogl.PyControlPoint_base_OnDelete(*args, **kwargs)
1493
1494 def base_OnDraw(*args, **kwargs):
1495 """base_OnDraw(self, DC dc)"""
1496 return _ogl.PyControlPoint_base_OnDraw(*args, **kwargs)
1497
1498 def base_OnDrawContents(*args, **kwargs):
1499 """base_OnDrawContents(self, DC dc)"""
1500 return _ogl.PyControlPoint_base_OnDrawContents(*args, **kwargs)
1501
1502 def base_OnDrawBranches(*args, **kwargs):
1503 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
1504 return _ogl.PyControlPoint_base_OnDrawBranches(*args, **kwargs)
1505
1506 def base_OnMoveLinks(*args, **kwargs):
1507 """base_OnMoveLinks(self, DC dc)"""
1508 return _ogl.PyControlPoint_base_OnMoveLinks(*args, **kwargs)
1509
1510 def base_OnErase(*args, **kwargs):
1511 """base_OnErase(self, DC dc)"""
1512 return _ogl.PyControlPoint_base_OnErase(*args, **kwargs)
1513
1514 def base_OnEraseContents(*args, **kwargs):
1515 """base_OnEraseContents(self, DC dc)"""
1516 return _ogl.PyControlPoint_base_OnEraseContents(*args, **kwargs)
1517
1518 def base_OnHighlight(*args, **kwargs):
1519 """base_OnHighlight(self, DC dc)"""
1520 return _ogl.PyControlPoint_base_OnHighlight(*args, **kwargs)
1521
1522 def base_OnLeftClick(*args, **kwargs):
1523 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
1524 return _ogl.PyControlPoint_base_OnLeftClick(*args, **kwargs)
1525
1526 def base_OnLeftDoubleClick(*args, **kwargs):
1527 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
1528 return _ogl.PyControlPoint_base_OnLeftDoubleClick(*args, **kwargs)
1529
1530 def base_OnRightClick(*args, **kwargs):
1531 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
1532 return _ogl.PyControlPoint_base_OnRightClick(*args, **kwargs)
1533
1534 def base_OnSize(*args, **kwargs):
1535 """base_OnSize(self, double x, double y)"""
1536 return _ogl.PyControlPoint_base_OnSize(*args, **kwargs)
1537
1538 def base_OnMovePre(*args, **kwargs):
1539 """
1540 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
1541 bool display=True) -> bool
1542 """
1543 return _ogl.PyControlPoint_base_OnMovePre(*args, **kwargs)
1544
1545 def base_OnMovePost(*args, **kwargs):
1546 """
1547 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
1548 bool display=True)
1549 """
1550 return _ogl.PyControlPoint_base_OnMovePost(*args, **kwargs)
1551
1552 def base_OnDragLeft(*args, **kwargs):
1553 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
1554 return _ogl.PyControlPoint_base_OnDragLeft(*args, **kwargs)
1555
1556 def base_OnBeginDragLeft(*args, **kwargs):
1557 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
1558 return _ogl.PyControlPoint_base_OnBeginDragLeft(*args, **kwargs)
1559
1560 def base_OnEndDragLeft(*args, **kwargs):
1561 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
1562 return _ogl.PyControlPoint_base_OnEndDragLeft(*args, **kwargs)
1563
1564 def base_OnDragRight(*args, **kwargs):
1565 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
1566 return _ogl.PyControlPoint_base_OnDragRight(*args, **kwargs)
1567
1568 def base_OnBeginDragRight(*args, **kwargs):
1569 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
1570 return _ogl.PyControlPoint_base_OnBeginDragRight(*args, **kwargs)
1571
1572 def base_OnEndDragRight(*args, **kwargs):
1573 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
1574 return _ogl.PyControlPoint_base_OnEndDragRight(*args, **kwargs)
1575
1576 def base_OnDrawOutline(*args, **kwargs):
1577 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
1578 return _ogl.PyControlPoint_base_OnDrawOutline(*args, **kwargs)
1579
1580 def base_OnDrawControlPoints(*args, **kwargs):
1581 """base_OnDrawControlPoints(self, DC dc)"""
1582 return _ogl.PyControlPoint_base_OnDrawControlPoints(*args, **kwargs)
1583
1584 def base_OnEraseControlPoints(*args, **kwargs):
1585 """base_OnEraseControlPoints(self, DC dc)"""
1586 return _ogl.PyControlPoint_base_OnEraseControlPoints(*args, **kwargs)
1587
1588 def base_OnMoveLink(*args, **kwargs):
1589 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
1590 return _ogl.PyControlPoint_base_OnMoveLink(*args, **kwargs)
1591
1592 def base_OnSizingDragLeft(*args, **kwargs):
1593 """
1594 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
1595 int attachment=0)
1596 """
1597 return _ogl.PyControlPoint_base_OnSizingDragLeft(*args, **kwargs)
1598
1599 def base_OnSizingBeginDragLeft(*args, **kwargs):
1600 """
1601 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
1602 int attachment=0)
1603 """
1604 return _ogl.PyControlPoint_base_OnSizingBeginDragLeft(*args, **kwargs)
1605
1606 def base_OnSizingEndDragLeft(*args, **kwargs):
1607 """
1608 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
1609 int attachment=0)
1610 """
1611 return _ogl.PyControlPoint_base_OnSizingEndDragLeft(*args, **kwargs)
1612
1613 def base_OnBeginSize(*args, **kwargs):
1614 """base_OnBeginSize(self, double w, double h)"""
1615 return _ogl.PyControlPoint_base_OnBeginSize(*args, **kwargs)
1616
1617 def base_OnEndSize(*args, **kwargs):
1618 """base_OnEndSize(self, double w, double h)"""
1619 return _ogl.PyControlPoint_base_OnEndSize(*args, **kwargs)
1620
1621
1622 class PyControlPointPtr(PyControlPoint):
1623 def __init__(self, this):
1624 self.this = this
1625 if not hasattr(self,"thisown"): self.thisown = 0
1626 self.__class__ = PyControlPoint
1627 _ogl.PyControlPoint_swigregister(PyControlPointPtr)
1628
1629 class PyBitmapShape(PyRectangleShape):
1630 """Proxy of C++ PyBitmapShape class"""
1631 def __repr__(self):
1632 return "<%s.%s; proxy of C++ wxPyBitmapShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1633 def __init__(self, *args, **kwargs):
1634 """__init__(self) -> PyBitmapShape"""
1635 newobj = _ogl.new_PyBitmapShape(*args, **kwargs)
1636 self.this = newobj.this
1637 self.thisown = 1
1638 del newobj.thisown
1639 self._setOORandCallbackInfo(PyBitmapShape)
1640
1641 def _setCallbackInfo(*args, **kwargs):
1642 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1643 return _ogl.PyBitmapShape__setCallbackInfo(*args, **kwargs)
1644
1645 def GetBitmap(*args, **kwargs):
1646 """GetBitmap(self) -> Bitmap"""
1647 return _ogl.PyBitmapShape_GetBitmap(*args, **kwargs)
1648
1649 def GetFilename(*args, **kwargs):
1650 """GetFilename(self) -> String"""
1651 return _ogl.PyBitmapShape_GetFilename(*args, **kwargs)
1652
1653 def SetBitmap(*args, **kwargs):
1654 """SetBitmap(self, Bitmap bitmap)"""
1655 return _ogl.PyBitmapShape_SetBitmap(*args, **kwargs)
1656
1657 def SetFilename(*args, **kwargs):
1658 """SetFilename(self, String filename)"""
1659 return _ogl.PyBitmapShape_SetFilename(*args, **kwargs)
1660
1661 def base_OnDelete(*args, **kwargs):
1662 """base_OnDelete(self)"""
1663 return _ogl.PyBitmapShape_base_OnDelete(*args, **kwargs)
1664
1665 def base_OnDraw(*args, **kwargs):
1666 """base_OnDraw(self, DC dc)"""
1667 return _ogl.PyBitmapShape_base_OnDraw(*args, **kwargs)
1668
1669 def base_OnDrawContents(*args, **kwargs):
1670 """base_OnDrawContents(self, DC dc)"""
1671 return _ogl.PyBitmapShape_base_OnDrawContents(*args, **kwargs)
1672
1673 def base_OnDrawBranches(*args, **kwargs):
1674 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
1675 return _ogl.PyBitmapShape_base_OnDrawBranches(*args, **kwargs)
1676
1677 def base_OnMoveLinks(*args, **kwargs):
1678 """base_OnMoveLinks(self, DC dc)"""
1679 return _ogl.PyBitmapShape_base_OnMoveLinks(*args, **kwargs)
1680
1681 def base_OnErase(*args, **kwargs):
1682 """base_OnErase(self, DC dc)"""
1683 return _ogl.PyBitmapShape_base_OnErase(*args, **kwargs)
1684
1685 def base_OnEraseContents(*args, **kwargs):
1686 """base_OnEraseContents(self, DC dc)"""
1687 return _ogl.PyBitmapShape_base_OnEraseContents(*args, **kwargs)
1688
1689 def base_OnHighlight(*args, **kwargs):
1690 """base_OnHighlight(self, DC dc)"""
1691 return _ogl.PyBitmapShape_base_OnHighlight(*args, **kwargs)
1692
1693 def base_OnLeftClick(*args, **kwargs):
1694 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
1695 return _ogl.PyBitmapShape_base_OnLeftClick(*args, **kwargs)
1696
1697 def base_OnLeftDoubleClick(*args, **kwargs):
1698 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
1699 return _ogl.PyBitmapShape_base_OnLeftDoubleClick(*args, **kwargs)
1700
1701 def base_OnRightClick(*args, **kwargs):
1702 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
1703 return _ogl.PyBitmapShape_base_OnRightClick(*args, **kwargs)
1704
1705 def base_OnSize(*args, **kwargs):
1706 """base_OnSize(self, double x, double y)"""
1707 return _ogl.PyBitmapShape_base_OnSize(*args, **kwargs)
1708
1709 def base_OnMovePre(*args, **kwargs):
1710 """
1711 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
1712 bool display=True) -> bool
1713 """
1714 return _ogl.PyBitmapShape_base_OnMovePre(*args, **kwargs)
1715
1716 def base_OnMovePost(*args, **kwargs):
1717 """
1718 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
1719 bool display=True)
1720 """
1721 return _ogl.PyBitmapShape_base_OnMovePost(*args, **kwargs)
1722
1723 def base_OnDragLeft(*args, **kwargs):
1724 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
1725 return _ogl.PyBitmapShape_base_OnDragLeft(*args, **kwargs)
1726
1727 def base_OnBeginDragLeft(*args, **kwargs):
1728 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
1729 return _ogl.PyBitmapShape_base_OnBeginDragLeft(*args, **kwargs)
1730
1731 def base_OnEndDragLeft(*args, **kwargs):
1732 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
1733 return _ogl.PyBitmapShape_base_OnEndDragLeft(*args, **kwargs)
1734
1735 def base_OnDragRight(*args, **kwargs):
1736 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
1737 return _ogl.PyBitmapShape_base_OnDragRight(*args, **kwargs)
1738
1739 def base_OnBeginDragRight(*args, **kwargs):
1740 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
1741 return _ogl.PyBitmapShape_base_OnBeginDragRight(*args, **kwargs)
1742
1743 def base_OnEndDragRight(*args, **kwargs):
1744 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
1745 return _ogl.PyBitmapShape_base_OnEndDragRight(*args, **kwargs)
1746
1747 def base_OnDrawOutline(*args, **kwargs):
1748 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
1749 return _ogl.PyBitmapShape_base_OnDrawOutline(*args, **kwargs)
1750
1751 def base_OnDrawControlPoints(*args, **kwargs):
1752 """base_OnDrawControlPoints(self, DC dc)"""
1753 return _ogl.PyBitmapShape_base_OnDrawControlPoints(*args, **kwargs)
1754
1755 def base_OnEraseControlPoints(*args, **kwargs):
1756 """base_OnEraseControlPoints(self, DC dc)"""
1757 return _ogl.PyBitmapShape_base_OnEraseControlPoints(*args, **kwargs)
1758
1759 def base_OnMoveLink(*args, **kwargs):
1760 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
1761 return _ogl.PyBitmapShape_base_OnMoveLink(*args, **kwargs)
1762
1763 def base_OnSizingDragLeft(*args, **kwargs):
1764 """
1765 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
1766 int attachment=0)
1767 """
1768 return _ogl.PyBitmapShape_base_OnSizingDragLeft(*args, **kwargs)
1769
1770 def base_OnSizingBeginDragLeft(*args, **kwargs):
1771 """
1772 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
1773 int attachment=0)
1774 """
1775 return _ogl.PyBitmapShape_base_OnSizingBeginDragLeft(*args, **kwargs)
1776
1777 def base_OnSizingEndDragLeft(*args, **kwargs):
1778 """
1779 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
1780 int attachment=0)
1781 """
1782 return _ogl.PyBitmapShape_base_OnSizingEndDragLeft(*args, **kwargs)
1783
1784 def base_OnBeginSize(*args, **kwargs):
1785 """base_OnBeginSize(self, double w, double h)"""
1786 return _ogl.PyBitmapShape_base_OnBeginSize(*args, **kwargs)
1787
1788 def base_OnEndSize(*args, **kwargs):
1789 """base_OnEndSize(self, double w, double h)"""
1790 return _ogl.PyBitmapShape_base_OnEndSize(*args, **kwargs)
1791
1792
1793 class PyBitmapShapePtr(PyBitmapShape):
1794 def __init__(self, this):
1795 self.this = this
1796 if not hasattr(self,"thisown"): self.thisown = 0
1797 self.__class__ = PyBitmapShape
1798 _ogl.PyBitmapShape_swigregister(PyBitmapShapePtr)
1799
1800 class PyDrawnShape(PyRectangleShape):
1801 """Proxy of C++ PyDrawnShape class"""
1802 def __repr__(self):
1803 return "<%s.%s; proxy of C++ wxPyDrawnShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1804 def __init__(self, *args, **kwargs):
1805 """__init__(self) -> PyDrawnShape"""
1806 newobj = _ogl.new_PyDrawnShape(*args, **kwargs)
1807 self.this = newobj.this
1808 self.thisown = 1
1809 del newobj.thisown
1810 self._setOORandCallbackInfo(PyDrawnShape)
1811
1812 def _setCallbackInfo(*args, **kwargs):
1813 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1814 return _ogl.PyDrawnShape__setCallbackInfo(*args, **kwargs)
1815
1816 def CalculateSize(*args, **kwargs):
1817 """CalculateSize(self)"""
1818 return _ogl.PyDrawnShape_CalculateSize(*args, **kwargs)
1819
1820 def DestroyClippingRect(*args, **kwargs):
1821 """DestroyClippingRect(self)"""
1822 return _ogl.PyDrawnShape_DestroyClippingRect(*args, **kwargs)
1823
1824 def DrawArc(*args, **kwargs):
1825 """DrawArc(self, Point centrePoint, Point startPoint, Point endPoint)"""
1826 return _ogl.PyDrawnShape_DrawArc(*args, **kwargs)
1827
1828 def DrawAtAngle(*args, **kwargs):
1829 """DrawAtAngle(self, int angle)"""
1830 return _ogl.PyDrawnShape_DrawAtAngle(*args, **kwargs)
1831
1832 def DrawEllipticArc(*args, **kwargs):
1833 """DrawEllipticArc(self, Rect rect, double startAngle, double endAngle)"""
1834 return _ogl.PyDrawnShape_DrawEllipticArc(*args, **kwargs)
1835
1836 def DrawLine(*args, **kwargs):
1837 """DrawLine(self, Point point1, Point point2)"""
1838 return _ogl.PyDrawnShape_DrawLine(*args, **kwargs)
1839
1840 def DrawLines(*args, **kwargs):
1841 """DrawLines(self, int points)"""
1842 return _ogl.PyDrawnShape_DrawLines(*args, **kwargs)
1843
1844 def DrawPoint(*args, **kwargs):
1845 """DrawPoint(self, Point point)"""
1846 return _ogl.PyDrawnShape_DrawPoint(*args, **kwargs)
1847
1848 def DrawPolygon(*args, **kwargs):
1849 """DrawPolygon(self, int points, int flags=0)"""
1850 return _ogl.PyDrawnShape_DrawPolygon(*args, **kwargs)
1851
1852 def DrawRectangle(*args, **kwargs):
1853 """DrawRectangle(self, Rect rect)"""
1854 return _ogl.PyDrawnShape_DrawRectangle(*args, **kwargs)
1855
1856 def DrawRoundedRectangle(*args, **kwargs):
1857 """DrawRoundedRectangle(self, Rect rect, double radius)"""
1858 return _ogl.PyDrawnShape_DrawRoundedRectangle(*args, **kwargs)
1859
1860 def DrawSpline(*args, **kwargs):
1861 """DrawSpline(self, int points)"""
1862 return _ogl.PyDrawnShape_DrawSpline(*args, **kwargs)
1863
1864 def DrawText(*args, **kwargs):
1865 """DrawText(self, String text, Point point)"""
1866 return _ogl.PyDrawnShape_DrawText(*args, **kwargs)
1867
1868 def GetAngle(*args, **kwargs):
1869 """GetAngle(self) -> int"""
1870 return _ogl.PyDrawnShape_GetAngle(*args, **kwargs)
1871
1872 def GetMetaFile(*args, **kwargs):
1873 """GetMetaFile(self) -> PseudoMetaFile"""
1874 return _ogl.PyDrawnShape_GetMetaFile(*args, **kwargs)
1875
1876 def GetRotation(*args, **kwargs):
1877 """GetRotation(self) -> double"""
1878 return _ogl.PyDrawnShape_GetRotation(*args, **kwargs)
1879
1880 def LoadFromMetaFile(*args, **kwargs):
1881 """LoadFromMetaFile(self, String filename) -> bool"""
1882 return _ogl.PyDrawnShape_LoadFromMetaFile(*args, **kwargs)
1883
1884 def Rotate(*args, **kwargs):
1885 """Rotate(self, double x, double y, double theta)"""
1886 return _ogl.PyDrawnShape_Rotate(*args, **kwargs)
1887
1888 def SetClippingRect(*args, **kwargs):
1889 """SetClippingRect(self, Rect rect)"""
1890 return _ogl.PyDrawnShape_SetClippingRect(*args, **kwargs)
1891
1892 def SetDrawnBackgroundColour(*args, **kwargs):
1893 """SetDrawnBackgroundColour(self, Colour colour)"""
1894 return _ogl.PyDrawnShape_SetDrawnBackgroundColour(*args, **kwargs)
1895
1896 def SetDrawnBackgroundMode(*args, **kwargs):
1897 """SetDrawnBackgroundMode(self, int mode)"""
1898 return _ogl.PyDrawnShape_SetDrawnBackgroundMode(*args, **kwargs)
1899
1900 def SetDrawnBrush(*args, **kwargs):
1901 """SetDrawnBrush(self, wxBrush pen, bool isOutline=False)"""
1902 return _ogl.PyDrawnShape_SetDrawnBrush(*args, **kwargs)
1903
1904 def SetDrawnFont(*args, **kwargs):
1905 """SetDrawnFont(self, Font font)"""
1906 return _ogl.PyDrawnShape_SetDrawnFont(*args, **kwargs)
1907
1908 def SetDrawnPen(*args, **kwargs):
1909 """SetDrawnPen(self, wxPen pen, bool isOutline=False)"""
1910 return _ogl.PyDrawnShape_SetDrawnPen(*args, **kwargs)
1911
1912 def SetDrawnTextColour(*args, **kwargs):
1913 """SetDrawnTextColour(self, Colour colour)"""
1914 return _ogl.PyDrawnShape_SetDrawnTextColour(*args, **kwargs)
1915
1916 def Scale(*args, **kwargs):
1917 """Scale(self, double sx, double sy)"""
1918 return _ogl.PyDrawnShape_Scale(*args, **kwargs)
1919
1920 def SetSaveToFile(*args, **kwargs):
1921 """SetSaveToFile(self, bool save)"""
1922 return _ogl.PyDrawnShape_SetSaveToFile(*args, **kwargs)
1923
1924 def Translate(*args, **kwargs):
1925 """Translate(self, double x, double y)"""
1926 return _ogl.PyDrawnShape_Translate(*args, **kwargs)
1927
1928 def base_OnDelete(*args, **kwargs):
1929 """base_OnDelete(self)"""
1930 return _ogl.PyDrawnShape_base_OnDelete(*args, **kwargs)
1931
1932 def base_OnDraw(*args, **kwargs):
1933 """base_OnDraw(self, DC dc)"""
1934 return _ogl.PyDrawnShape_base_OnDraw(*args, **kwargs)
1935
1936 def base_OnDrawContents(*args, **kwargs):
1937 """base_OnDrawContents(self, DC dc)"""
1938 return _ogl.PyDrawnShape_base_OnDrawContents(*args, **kwargs)
1939
1940 def base_OnDrawBranches(*args, **kwargs):
1941 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
1942 return _ogl.PyDrawnShape_base_OnDrawBranches(*args, **kwargs)
1943
1944 def base_OnMoveLinks(*args, **kwargs):
1945 """base_OnMoveLinks(self, DC dc)"""
1946 return _ogl.PyDrawnShape_base_OnMoveLinks(*args, **kwargs)
1947
1948 def base_OnErase(*args, **kwargs):
1949 """base_OnErase(self, DC dc)"""
1950 return _ogl.PyDrawnShape_base_OnErase(*args, **kwargs)
1951
1952 def base_OnEraseContents(*args, **kwargs):
1953 """base_OnEraseContents(self, DC dc)"""
1954 return _ogl.PyDrawnShape_base_OnEraseContents(*args, **kwargs)
1955
1956 def base_OnHighlight(*args, **kwargs):
1957 """base_OnHighlight(self, DC dc)"""
1958 return _ogl.PyDrawnShape_base_OnHighlight(*args, **kwargs)
1959
1960 def base_OnLeftClick(*args, **kwargs):
1961 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
1962 return _ogl.PyDrawnShape_base_OnLeftClick(*args, **kwargs)
1963
1964 def base_OnLeftDoubleClick(*args, **kwargs):
1965 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
1966 return _ogl.PyDrawnShape_base_OnLeftDoubleClick(*args, **kwargs)
1967
1968 def base_OnRightClick(*args, **kwargs):
1969 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
1970 return _ogl.PyDrawnShape_base_OnRightClick(*args, **kwargs)
1971
1972 def base_OnSize(*args, **kwargs):
1973 """base_OnSize(self, double x, double y)"""
1974 return _ogl.PyDrawnShape_base_OnSize(*args, **kwargs)
1975
1976 def base_OnMovePre(*args, **kwargs):
1977 """
1978 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
1979 bool display=True) -> bool
1980 """
1981 return _ogl.PyDrawnShape_base_OnMovePre(*args, **kwargs)
1982
1983 def base_OnMovePost(*args, **kwargs):
1984 """
1985 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
1986 bool display=True)
1987 """
1988 return _ogl.PyDrawnShape_base_OnMovePost(*args, **kwargs)
1989
1990 def base_OnDragLeft(*args, **kwargs):
1991 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
1992 return _ogl.PyDrawnShape_base_OnDragLeft(*args, **kwargs)
1993
1994 def base_OnBeginDragLeft(*args, **kwargs):
1995 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
1996 return _ogl.PyDrawnShape_base_OnBeginDragLeft(*args, **kwargs)
1997
1998 def base_OnEndDragLeft(*args, **kwargs):
1999 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2000 return _ogl.PyDrawnShape_base_OnEndDragLeft(*args, **kwargs)
2001
2002 def base_OnDragRight(*args, **kwargs):
2003 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2004 return _ogl.PyDrawnShape_base_OnDragRight(*args, **kwargs)
2005
2006 def base_OnBeginDragRight(*args, **kwargs):
2007 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2008 return _ogl.PyDrawnShape_base_OnBeginDragRight(*args, **kwargs)
2009
2010 def base_OnEndDragRight(*args, **kwargs):
2011 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2012 return _ogl.PyDrawnShape_base_OnEndDragRight(*args, **kwargs)
2013
2014 def base_OnDrawOutline(*args, **kwargs):
2015 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
2016 return _ogl.PyDrawnShape_base_OnDrawOutline(*args, **kwargs)
2017
2018 def base_OnDrawControlPoints(*args, **kwargs):
2019 """base_OnDrawControlPoints(self, DC dc)"""
2020 return _ogl.PyDrawnShape_base_OnDrawControlPoints(*args, **kwargs)
2021
2022 def base_OnEraseControlPoints(*args, **kwargs):
2023 """base_OnEraseControlPoints(self, DC dc)"""
2024 return _ogl.PyDrawnShape_base_OnEraseControlPoints(*args, **kwargs)
2025
2026 def base_OnMoveLink(*args, **kwargs):
2027 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
2028 return _ogl.PyDrawnShape_base_OnMoveLink(*args, **kwargs)
2029
2030 def base_OnSizingDragLeft(*args, **kwargs):
2031 """
2032 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
2033 int attachment=0)
2034 """
2035 return _ogl.PyDrawnShape_base_OnSizingDragLeft(*args, **kwargs)
2036
2037 def base_OnSizingBeginDragLeft(*args, **kwargs):
2038 """
2039 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2040 int attachment=0)
2041 """
2042 return _ogl.PyDrawnShape_base_OnSizingBeginDragLeft(*args, **kwargs)
2043
2044 def base_OnSizingEndDragLeft(*args, **kwargs):
2045 """
2046 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2047 int attachment=0)
2048 """
2049 return _ogl.PyDrawnShape_base_OnSizingEndDragLeft(*args, **kwargs)
2050
2051 def base_OnBeginSize(*args, **kwargs):
2052 """base_OnBeginSize(self, double w, double h)"""
2053 return _ogl.PyDrawnShape_base_OnBeginSize(*args, **kwargs)
2054
2055 def base_OnEndSize(*args, **kwargs):
2056 """base_OnEndSize(self, double w, double h)"""
2057 return _ogl.PyDrawnShape_base_OnEndSize(*args, **kwargs)
2058
2059
2060 class PyDrawnShapePtr(PyDrawnShape):
2061 def __init__(self, this):
2062 self.this = this
2063 if not hasattr(self,"thisown"): self.thisown = 0
2064 self.__class__ = PyDrawnShape
2065 _ogl.PyDrawnShape_swigregister(PyDrawnShapePtr)
2066
2067 class OGLConstraint(_core.Object):
2068 """Proxy of C++ OGLConstraint class"""
2069 def __repr__(self):
2070 return "<%s.%s; proxy of C++ wxOGLConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2071 def __init__(self, *args, **kwargs):
2072 """__init__(self, int type, PyShape constraining, PyObject constrained) -> OGLConstraint"""
2073 newobj = _ogl.new_OGLConstraint(*args, **kwargs)
2074 self.this = newobj.this
2075 self.thisown = 1
2076 del newobj.thisown
2077 def Evaluate(*args, **kwargs):
2078 """Evaluate(self) -> bool"""
2079 return _ogl.OGLConstraint_Evaluate(*args, **kwargs)
2080
2081 def SetSpacing(*args, **kwargs):
2082 """SetSpacing(self, double x, double y)"""
2083 return _ogl.OGLConstraint_SetSpacing(*args, **kwargs)
2084
2085 def Equals(*args, **kwargs):
2086 """Equals(self, double a, double b) -> bool"""
2087 return _ogl.OGLConstraint_Equals(*args, **kwargs)
2088
2089
2090 class OGLConstraintPtr(OGLConstraint):
2091 def __init__(self, this):
2092 self.this = this
2093 if not hasattr(self,"thisown"): self.thisown = 0
2094 self.__class__ = OGLConstraint
2095 _ogl.OGLConstraint_swigregister(OGLConstraintPtr)
2096
2097 class PyCompositeShape(PyRectangleShape):
2098 """Proxy of C++ PyCompositeShape class"""
2099 def __repr__(self):
2100 return "<%s.%s; proxy of C++ wxPyCompositeShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2101 def __init__(self, *args, **kwargs):
2102 """__init__(self) -> PyCompositeShape"""
2103 newobj = _ogl.new_PyCompositeShape(*args, **kwargs)
2104 self.this = newobj.this
2105 self.thisown = 1
2106 del newobj.thisown
2107 self._setOORandCallbackInfo(PyCompositeShape)
2108
2109 def _setCallbackInfo(*args, **kwargs):
2110 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2111 return _ogl.PyCompositeShape__setCallbackInfo(*args, **kwargs)
2112
2113 def AddChild(*args, **kwargs):
2114 """AddChild(self, PyShape child, PyShape addAfter=None)"""
2115 return _ogl.PyCompositeShape_AddChild(*args, **kwargs)
2116
2117 def AddConstraint(*args, **kwargs):
2118 """AddConstraint(self, OGLConstraint constraint) -> OGLConstraint"""
2119 return _ogl.PyCompositeShape_AddConstraint(*args, **kwargs)
2120
2121 def AddConstrainedShapes(*args, **kwargs):
2122 """AddConstrainedShapes(self, int type, PyShape constraining, PyObject constrained) -> OGLConstraint"""
2123 return _ogl.PyCompositeShape_AddConstrainedShapes(*args, **kwargs)
2124
2125 def AddSimpleConstraint(*args, **kwargs):
2126 """AddSimpleConstraint(self, int type, PyShape constraining, PyShape constrained) -> OGLConstraint"""
2127 return _ogl.PyCompositeShape_AddSimpleConstraint(*args, **kwargs)
2128
2129 def CalculateSize(*args, **kwargs):
2130 """CalculateSize(self)"""
2131 return _ogl.PyCompositeShape_CalculateSize(*args, **kwargs)
2132
2133 def ContainsDivision(*args, **kwargs):
2134 """ContainsDivision(self, PyDivisionShape division) -> bool"""
2135 return _ogl.PyCompositeShape_ContainsDivision(*args, **kwargs)
2136
2137 def DeleteConstraint(*args, **kwargs):
2138 """DeleteConstraint(self, OGLConstraint constraint)"""
2139 return _ogl.PyCompositeShape_DeleteConstraint(*args, **kwargs)
2140
2141 def DeleteConstraintsInvolvingChild(*args, **kwargs):
2142 """DeleteConstraintsInvolvingChild(self, PyShape child)"""
2143 return _ogl.PyCompositeShape_DeleteConstraintsInvolvingChild(*args, **kwargs)
2144
2145 def FindContainerImage(*args, **kwargs):
2146 """FindContainerImage(self) -> PyShape"""
2147 return _ogl.PyCompositeShape_FindContainerImage(*args, **kwargs)
2148
2149 def GetConstraints(*args, **kwargs):
2150 """GetConstraints(self) -> PyObject"""
2151 return _ogl.PyCompositeShape_GetConstraints(*args, **kwargs)
2152
2153 def GetDivisions(*args, **kwargs):
2154 """GetDivisions(self) -> PyObject"""
2155 return _ogl.PyCompositeShape_GetDivisions(*args, **kwargs)
2156
2157 def MakeContainer(*args, **kwargs):
2158 """MakeContainer(self)"""
2159 return _ogl.PyCompositeShape_MakeContainer(*args, **kwargs)
2160
2161 def Recompute(*args, **kwargs):
2162 """Recompute(self) -> bool"""
2163 return _ogl.PyCompositeShape_Recompute(*args, **kwargs)
2164
2165 def RemoveChild(*args, **kwargs):
2166 """RemoveChild(self, PyShape child)"""
2167 return _ogl.PyCompositeShape_RemoveChild(*args, **kwargs)
2168
2169 def base_OnDelete(*args, **kwargs):
2170 """base_OnDelete(self)"""
2171 return _ogl.PyCompositeShape_base_OnDelete(*args, **kwargs)
2172
2173 def base_OnDraw(*args, **kwargs):
2174 """base_OnDraw(self, DC dc)"""
2175 return _ogl.PyCompositeShape_base_OnDraw(*args, **kwargs)
2176
2177 def base_OnDrawContents(*args, **kwargs):
2178 """base_OnDrawContents(self, DC dc)"""
2179 return _ogl.PyCompositeShape_base_OnDrawContents(*args, **kwargs)
2180
2181 def base_OnDrawBranches(*args, **kwargs):
2182 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
2183 return _ogl.PyCompositeShape_base_OnDrawBranches(*args, **kwargs)
2184
2185 def base_OnMoveLinks(*args, **kwargs):
2186 """base_OnMoveLinks(self, DC dc)"""
2187 return _ogl.PyCompositeShape_base_OnMoveLinks(*args, **kwargs)
2188
2189 def base_OnErase(*args, **kwargs):
2190 """base_OnErase(self, DC dc)"""
2191 return _ogl.PyCompositeShape_base_OnErase(*args, **kwargs)
2192
2193 def base_OnEraseContents(*args, **kwargs):
2194 """base_OnEraseContents(self, DC dc)"""
2195 return _ogl.PyCompositeShape_base_OnEraseContents(*args, **kwargs)
2196
2197 def base_OnHighlight(*args, **kwargs):
2198 """base_OnHighlight(self, DC dc)"""
2199 return _ogl.PyCompositeShape_base_OnHighlight(*args, **kwargs)
2200
2201 def base_OnLeftClick(*args, **kwargs):
2202 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
2203 return _ogl.PyCompositeShape_base_OnLeftClick(*args, **kwargs)
2204
2205 def base_OnLeftDoubleClick(*args, **kwargs):
2206 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
2207 return _ogl.PyCompositeShape_base_OnLeftDoubleClick(*args, **kwargs)
2208
2209 def base_OnRightClick(*args, **kwargs):
2210 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
2211 return _ogl.PyCompositeShape_base_OnRightClick(*args, **kwargs)
2212
2213 def base_OnSize(*args, **kwargs):
2214 """base_OnSize(self, double x, double y)"""
2215 return _ogl.PyCompositeShape_base_OnSize(*args, **kwargs)
2216
2217 def base_OnMovePre(*args, **kwargs):
2218 """
2219 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
2220 bool display=True) -> bool
2221 """
2222 return _ogl.PyCompositeShape_base_OnMovePre(*args, **kwargs)
2223
2224 def base_OnMovePost(*args, **kwargs):
2225 """
2226 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
2227 bool display=True)
2228 """
2229 return _ogl.PyCompositeShape_base_OnMovePost(*args, **kwargs)
2230
2231 def base_OnDragLeft(*args, **kwargs):
2232 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2233 return _ogl.PyCompositeShape_base_OnDragLeft(*args, **kwargs)
2234
2235 def base_OnBeginDragLeft(*args, **kwargs):
2236 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2237 return _ogl.PyCompositeShape_base_OnBeginDragLeft(*args, **kwargs)
2238
2239 def base_OnEndDragLeft(*args, **kwargs):
2240 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2241 return _ogl.PyCompositeShape_base_OnEndDragLeft(*args, **kwargs)
2242
2243 def base_OnDragRight(*args, **kwargs):
2244 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2245 return _ogl.PyCompositeShape_base_OnDragRight(*args, **kwargs)
2246
2247 def base_OnBeginDragRight(*args, **kwargs):
2248 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2249 return _ogl.PyCompositeShape_base_OnBeginDragRight(*args, **kwargs)
2250
2251 def base_OnEndDragRight(*args, **kwargs):
2252 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2253 return _ogl.PyCompositeShape_base_OnEndDragRight(*args, **kwargs)
2254
2255 def base_OnDrawOutline(*args, **kwargs):
2256 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
2257 return _ogl.PyCompositeShape_base_OnDrawOutline(*args, **kwargs)
2258
2259 def base_OnDrawControlPoints(*args, **kwargs):
2260 """base_OnDrawControlPoints(self, DC dc)"""
2261 return _ogl.PyCompositeShape_base_OnDrawControlPoints(*args, **kwargs)
2262
2263 def base_OnEraseControlPoints(*args, **kwargs):
2264 """base_OnEraseControlPoints(self, DC dc)"""
2265 return _ogl.PyCompositeShape_base_OnEraseControlPoints(*args, **kwargs)
2266
2267 def base_OnMoveLink(*args, **kwargs):
2268 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
2269 return _ogl.PyCompositeShape_base_OnMoveLink(*args, **kwargs)
2270
2271 def base_OnSizingDragLeft(*args, **kwargs):
2272 """
2273 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
2274 int attachment=0)
2275 """
2276 return _ogl.PyCompositeShape_base_OnSizingDragLeft(*args, **kwargs)
2277
2278 def base_OnSizingBeginDragLeft(*args, **kwargs):
2279 """
2280 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2281 int attachment=0)
2282 """
2283 return _ogl.PyCompositeShape_base_OnSizingBeginDragLeft(*args, **kwargs)
2284
2285 def base_OnSizingEndDragLeft(*args, **kwargs):
2286 """
2287 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2288 int attachment=0)
2289 """
2290 return _ogl.PyCompositeShape_base_OnSizingEndDragLeft(*args, **kwargs)
2291
2292 def base_OnBeginSize(*args, **kwargs):
2293 """base_OnBeginSize(self, double w, double h)"""
2294 return _ogl.PyCompositeShape_base_OnBeginSize(*args, **kwargs)
2295
2296 def base_OnEndSize(*args, **kwargs):
2297 """base_OnEndSize(self, double w, double h)"""
2298 return _ogl.PyCompositeShape_base_OnEndSize(*args, **kwargs)
2299
2300
2301 class PyCompositeShapePtr(PyCompositeShape):
2302 def __init__(self, this):
2303 self.this = this
2304 if not hasattr(self,"thisown"): self.thisown = 0
2305 self.__class__ = PyCompositeShape
2306 _ogl.PyCompositeShape_swigregister(PyCompositeShapePtr)
2307
2308 class PyDividedShape(PyRectangleShape):
2309 """Proxy of C++ PyDividedShape class"""
2310 def __repr__(self):
2311 return "<%s.%s; proxy of C++ wxPyDividedShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2312 def __init__(self, *args, **kwargs):
2313 """__init__(self, double width=0.0, double height=0.0) -> PyDividedShape"""
2314 newobj = _ogl.new_PyDividedShape(*args, **kwargs)
2315 self.this = newobj.this
2316 self.thisown = 1
2317 del newobj.thisown
2318 self._setOORandCallbackInfo(PyDividedShape)
2319
2320 def _setCallbackInfo(*args, **kwargs):
2321 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2322 return _ogl.PyDividedShape__setCallbackInfo(*args, **kwargs)
2323
2324 def EditRegions(*args, **kwargs):
2325 """EditRegions(self)"""
2326 return _ogl.PyDividedShape_EditRegions(*args, **kwargs)
2327
2328 def SetRegionSizes(*args, **kwargs):
2329 """SetRegionSizes(self)"""
2330 return _ogl.PyDividedShape_SetRegionSizes(*args, **kwargs)
2331
2332 def base_OnDelete(*args, **kwargs):
2333 """base_OnDelete(self)"""
2334 return _ogl.PyDividedShape_base_OnDelete(*args, **kwargs)
2335
2336 def base_OnDraw(*args, **kwargs):
2337 """base_OnDraw(self, DC dc)"""
2338 return _ogl.PyDividedShape_base_OnDraw(*args, **kwargs)
2339
2340 def base_OnDrawContents(*args, **kwargs):
2341 """base_OnDrawContents(self, DC dc)"""
2342 return _ogl.PyDividedShape_base_OnDrawContents(*args, **kwargs)
2343
2344 def base_OnDrawBranches(*args, **kwargs):
2345 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
2346 return _ogl.PyDividedShape_base_OnDrawBranches(*args, **kwargs)
2347
2348 def base_OnMoveLinks(*args, **kwargs):
2349 """base_OnMoveLinks(self, DC dc)"""
2350 return _ogl.PyDividedShape_base_OnMoveLinks(*args, **kwargs)
2351
2352 def base_OnErase(*args, **kwargs):
2353 """base_OnErase(self, DC dc)"""
2354 return _ogl.PyDividedShape_base_OnErase(*args, **kwargs)
2355
2356 def base_OnEraseContents(*args, **kwargs):
2357 """base_OnEraseContents(self, DC dc)"""
2358 return _ogl.PyDividedShape_base_OnEraseContents(*args, **kwargs)
2359
2360 def base_OnHighlight(*args, **kwargs):
2361 """base_OnHighlight(self, DC dc)"""
2362 return _ogl.PyDividedShape_base_OnHighlight(*args, **kwargs)
2363
2364 def base_OnLeftClick(*args, **kwargs):
2365 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
2366 return _ogl.PyDividedShape_base_OnLeftClick(*args, **kwargs)
2367
2368 def base_OnLeftDoubleClick(*args, **kwargs):
2369 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
2370 return _ogl.PyDividedShape_base_OnLeftDoubleClick(*args, **kwargs)
2371
2372 def base_OnRightClick(*args, **kwargs):
2373 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
2374 return _ogl.PyDividedShape_base_OnRightClick(*args, **kwargs)
2375
2376 def base_OnSize(*args, **kwargs):
2377 """base_OnSize(self, double x, double y)"""
2378 return _ogl.PyDividedShape_base_OnSize(*args, **kwargs)
2379
2380 def base_OnMovePre(*args, **kwargs):
2381 """
2382 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
2383 bool display=True) -> bool
2384 """
2385 return _ogl.PyDividedShape_base_OnMovePre(*args, **kwargs)
2386
2387 def base_OnMovePost(*args, **kwargs):
2388 """
2389 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
2390 bool display=True)
2391 """
2392 return _ogl.PyDividedShape_base_OnMovePost(*args, **kwargs)
2393
2394 def base_OnDragLeft(*args, **kwargs):
2395 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2396 return _ogl.PyDividedShape_base_OnDragLeft(*args, **kwargs)
2397
2398 def base_OnBeginDragLeft(*args, **kwargs):
2399 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2400 return _ogl.PyDividedShape_base_OnBeginDragLeft(*args, **kwargs)
2401
2402 def base_OnEndDragLeft(*args, **kwargs):
2403 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2404 return _ogl.PyDividedShape_base_OnEndDragLeft(*args, **kwargs)
2405
2406 def base_OnDragRight(*args, **kwargs):
2407 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2408 return _ogl.PyDividedShape_base_OnDragRight(*args, **kwargs)
2409
2410 def base_OnBeginDragRight(*args, **kwargs):
2411 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2412 return _ogl.PyDividedShape_base_OnBeginDragRight(*args, **kwargs)
2413
2414 def base_OnEndDragRight(*args, **kwargs):
2415 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2416 return _ogl.PyDividedShape_base_OnEndDragRight(*args, **kwargs)
2417
2418 def base_OnDrawOutline(*args, **kwargs):
2419 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
2420 return _ogl.PyDividedShape_base_OnDrawOutline(*args, **kwargs)
2421
2422 def base_OnDrawControlPoints(*args, **kwargs):
2423 """base_OnDrawControlPoints(self, DC dc)"""
2424 return _ogl.PyDividedShape_base_OnDrawControlPoints(*args, **kwargs)
2425
2426 def base_OnEraseControlPoints(*args, **kwargs):
2427 """base_OnEraseControlPoints(self, DC dc)"""
2428 return _ogl.PyDividedShape_base_OnEraseControlPoints(*args, **kwargs)
2429
2430 def base_OnMoveLink(*args, **kwargs):
2431 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
2432 return _ogl.PyDividedShape_base_OnMoveLink(*args, **kwargs)
2433
2434 def base_OnSizingDragLeft(*args, **kwargs):
2435 """
2436 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
2437 int attachment=0)
2438 """
2439 return _ogl.PyDividedShape_base_OnSizingDragLeft(*args, **kwargs)
2440
2441 def base_OnSizingBeginDragLeft(*args, **kwargs):
2442 """
2443 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2444 int attachment=0)
2445 """
2446 return _ogl.PyDividedShape_base_OnSizingBeginDragLeft(*args, **kwargs)
2447
2448 def base_OnSizingEndDragLeft(*args, **kwargs):
2449 """
2450 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2451 int attachment=0)
2452 """
2453 return _ogl.PyDividedShape_base_OnSizingEndDragLeft(*args, **kwargs)
2454
2455 def base_OnBeginSize(*args, **kwargs):
2456 """base_OnBeginSize(self, double w, double h)"""
2457 return _ogl.PyDividedShape_base_OnBeginSize(*args, **kwargs)
2458
2459 def base_OnEndSize(*args, **kwargs):
2460 """base_OnEndSize(self, double w, double h)"""
2461 return _ogl.PyDividedShape_base_OnEndSize(*args, **kwargs)
2462
2463
2464 class PyDividedShapePtr(PyDividedShape):
2465 def __init__(self, this):
2466 self.this = this
2467 if not hasattr(self,"thisown"): self.thisown = 0
2468 self.__class__ = PyDividedShape
2469 _ogl.PyDividedShape_swigregister(PyDividedShapePtr)
2470
2471 class PyDivisionShape(PyCompositeShape):
2472 """Proxy of C++ PyDivisionShape class"""
2473 def __repr__(self):
2474 return "<%s.%s; proxy of C++ wxPyDivisionShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2475 def __init__(self, *args, **kwargs):
2476 """__init__(self) -> PyDivisionShape"""
2477 newobj = _ogl.new_PyDivisionShape(*args, **kwargs)
2478 self.this = newobj.this
2479 self.thisown = 1
2480 del newobj.thisown
2481 self._setOORandCallbackInfo(PyDivisionShape)
2482
2483 def _setCallbackInfo(*args, **kwargs):
2484 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2485 return _ogl.PyDivisionShape__setCallbackInfo(*args, **kwargs)
2486
2487 def AdjustBottom(*args, **kwargs):
2488 """AdjustBottom(self, double bottom, bool test)"""
2489 return _ogl.PyDivisionShape_AdjustBottom(*args, **kwargs)
2490
2491 def AdjustLeft(*args, **kwargs):
2492 """AdjustLeft(self, double left, bool test)"""
2493 return _ogl.PyDivisionShape_AdjustLeft(*args, **kwargs)
2494
2495 def AdjustRight(*args, **kwargs):
2496 """AdjustRight(self, double right, bool test)"""
2497 return _ogl.PyDivisionShape_AdjustRight(*args, **kwargs)
2498
2499 def AdjustTop(*args, **kwargs):
2500 """AdjustTop(self, double top, bool test)"""
2501 return _ogl.PyDivisionShape_AdjustTop(*args, **kwargs)
2502
2503 def Divide(*args, **kwargs):
2504 """Divide(self, int direction)"""
2505 return _ogl.PyDivisionShape_Divide(*args, **kwargs)
2506
2507 def EditEdge(*args, **kwargs):
2508 """EditEdge(self, int side)"""
2509 return _ogl.PyDivisionShape_EditEdge(*args, **kwargs)
2510
2511 def GetBottomSide(*args, **kwargs):
2512 """GetBottomSide(self) -> PyDivisionShape"""
2513 return _ogl.PyDivisionShape_GetBottomSide(*args, **kwargs)
2514
2515 def GetHandleSide(*args, **kwargs):
2516 """GetHandleSide(self) -> int"""
2517 return _ogl.PyDivisionShape_GetHandleSide(*args, **kwargs)
2518
2519 def GetLeftSide(*args, **kwargs):
2520 """GetLeftSide(self) -> PyDivisionShape"""
2521 return _ogl.PyDivisionShape_GetLeftSide(*args, **kwargs)
2522
2523 def GetLeftSideColour(*args, **kwargs):
2524 """GetLeftSideColour(self) -> String"""
2525 return _ogl.PyDivisionShape_GetLeftSideColour(*args, **kwargs)
2526
2527 def GetLeftSidePen(*args, **kwargs):
2528 """GetLeftSidePen(self) -> wxPen"""
2529 return _ogl.PyDivisionShape_GetLeftSidePen(*args, **kwargs)
2530
2531 def GetRightSide(*args, **kwargs):
2532 """GetRightSide(self) -> PyDivisionShape"""
2533 return _ogl.PyDivisionShape_GetRightSide(*args, **kwargs)
2534
2535 def GetTopSide(*args, **kwargs):
2536 """GetTopSide(self) -> PyDivisionShape"""
2537 return _ogl.PyDivisionShape_GetTopSide(*args, **kwargs)
2538
2539 def GetTopSidePen(*args, **kwargs):
2540 """GetTopSidePen(self) -> wxPen"""
2541 return _ogl.PyDivisionShape_GetTopSidePen(*args, **kwargs)
2542
2543 def ResizeAdjoining(*args, **kwargs):
2544 """ResizeAdjoining(self, int side, double newPos, bool test)"""
2545 return _ogl.PyDivisionShape_ResizeAdjoining(*args, **kwargs)
2546
2547 def PopupMenu(*args, **kwargs):
2548 """PopupMenu(self, double x, double y)"""
2549 return _ogl.PyDivisionShape_PopupMenu(*args, **kwargs)
2550
2551 def SetBottomSide(*args, **kwargs):
2552 """SetBottomSide(self, PyDivisionShape shape)"""
2553 return _ogl.PyDivisionShape_SetBottomSide(*args, **kwargs)
2554
2555 def SetHandleSide(*args, **kwargs):
2556 """SetHandleSide(self, int side)"""
2557 return _ogl.PyDivisionShape_SetHandleSide(*args, **kwargs)
2558
2559 def SetLeftSide(*args, **kwargs):
2560 """SetLeftSide(self, PyDivisionShape shape)"""
2561 return _ogl.PyDivisionShape_SetLeftSide(*args, **kwargs)
2562
2563 def SetLeftSideColour(*args, **kwargs):
2564 """SetLeftSideColour(self, String colour)"""
2565 return _ogl.PyDivisionShape_SetLeftSideColour(*args, **kwargs)
2566
2567 def SetLeftSidePen(*args, **kwargs):
2568 """SetLeftSidePen(self, wxPen pen)"""
2569 return _ogl.PyDivisionShape_SetLeftSidePen(*args, **kwargs)
2570
2571 def SetRightSide(*args, **kwargs):
2572 """SetRightSide(self, PyDivisionShape shape)"""
2573 return _ogl.PyDivisionShape_SetRightSide(*args, **kwargs)
2574
2575 def SetTopSide(*args, **kwargs):
2576 """SetTopSide(self, PyDivisionShape shape)"""
2577 return _ogl.PyDivisionShape_SetTopSide(*args, **kwargs)
2578
2579 def SetTopSideColour(*args, **kwargs):
2580 """SetTopSideColour(self, String colour)"""
2581 return _ogl.PyDivisionShape_SetTopSideColour(*args, **kwargs)
2582
2583 def SetTopSidePen(*args, **kwargs):
2584 """SetTopSidePen(self, wxPen pen)"""
2585 return _ogl.PyDivisionShape_SetTopSidePen(*args, **kwargs)
2586
2587 def base_OnDelete(*args, **kwargs):
2588 """base_OnDelete(self)"""
2589 return _ogl.PyDivisionShape_base_OnDelete(*args, **kwargs)
2590
2591 def base_OnDraw(*args, **kwargs):
2592 """base_OnDraw(self, DC dc)"""
2593 return _ogl.PyDivisionShape_base_OnDraw(*args, **kwargs)
2594
2595 def base_OnDrawContents(*args, **kwargs):
2596 """base_OnDrawContents(self, DC dc)"""
2597 return _ogl.PyDivisionShape_base_OnDrawContents(*args, **kwargs)
2598
2599 def base_OnDrawBranches(*args, **kwargs):
2600 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
2601 return _ogl.PyDivisionShape_base_OnDrawBranches(*args, **kwargs)
2602
2603 def base_OnMoveLinks(*args, **kwargs):
2604 """base_OnMoveLinks(self, DC dc)"""
2605 return _ogl.PyDivisionShape_base_OnMoveLinks(*args, **kwargs)
2606
2607 def base_OnErase(*args, **kwargs):
2608 """base_OnErase(self, DC dc)"""
2609 return _ogl.PyDivisionShape_base_OnErase(*args, **kwargs)
2610
2611 def base_OnEraseContents(*args, **kwargs):
2612 """base_OnEraseContents(self, DC dc)"""
2613 return _ogl.PyDivisionShape_base_OnEraseContents(*args, **kwargs)
2614
2615 def base_OnHighlight(*args, **kwargs):
2616 """base_OnHighlight(self, DC dc)"""
2617 return _ogl.PyDivisionShape_base_OnHighlight(*args, **kwargs)
2618
2619 def base_OnLeftClick(*args, **kwargs):
2620 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
2621 return _ogl.PyDivisionShape_base_OnLeftClick(*args, **kwargs)
2622
2623 def base_OnLeftDoubleClick(*args, **kwargs):
2624 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
2625 return _ogl.PyDivisionShape_base_OnLeftDoubleClick(*args, **kwargs)
2626
2627 def base_OnRightClick(*args, **kwargs):
2628 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
2629 return _ogl.PyDivisionShape_base_OnRightClick(*args, **kwargs)
2630
2631 def base_OnSize(*args, **kwargs):
2632 """base_OnSize(self, double x, double y)"""
2633 return _ogl.PyDivisionShape_base_OnSize(*args, **kwargs)
2634
2635 def base_OnMovePre(*args, **kwargs):
2636 """
2637 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
2638 bool display=True) -> bool
2639 """
2640 return _ogl.PyDivisionShape_base_OnMovePre(*args, **kwargs)
2641
2642 def base_OnMovePost(*args, **kwargs):
2643 """
2644 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
2645 bool display=True)
2646 """
2647 return _ogl.PyDivisionShape_base_OnMovePost(*args, **kwargs)
2648
2649 def base_OnDragLeft(*args, **kwargs):
2650 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2651 return _ogl.PyDivisionShape_base_OnDragLeft(*args, **kwargs)
2652
2653 def base_OnBeginDragLeft(*args, **kwargs):
2654 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2655 return _ogl.PyDivisionShape_base_OnBeginDragLeft(*args, **kwargs)
2656
2657 def base_OnEndDragLeft(*args, **kwargs):
2658 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2659 return _ogl.PyDivisionShape_base_OnEndDragLeft(*args, **kwargs)
2660
2661 def base_OnDragRight(*args, **kwargs):
2662 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2663 return _ogl.PyDivisionShape_base_OnDragRight(*args, **kwargs)
2664
2665 def base_OnBeginDragRight(*args, **kwargs):
2666 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2667 return _ogl.PyDivisionShape_base_OnBeginDragRight(*args, **kwargs)
2668
2669 def base_OnEndDragRight(*args, **kwargs):
2670 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2671 return _ogl.PyDivisionShape_base_OnEndDragRight(*args, **kwargs)
2672
2673 def base_OnDrawOutline(*args, **kwargs):
2674 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
2675 return _ogl.PyDivisionShape_base_OnDrawOutline(*args, **kwargs)
2676
2677 def base_OnDrawControlPoints(*args, **kwargs):
2678 """base_OnDrawControlPoints(self, DC dc)"""
2679 return _ogl.PyDivisionShape_base_OnDrawControlPoints(*args, **kwargs)
2680
2681 def base_OnEraseControlPoints(*args, **kwargs):
2682 """base_OnEraseControlPoints(self, DC dc)"""
2683 return _ogl.PyDivisionShape_base_OnEraseControlPoints(*args, **kwargs)
2684
2685 def base_OnMoveLink(*args, **kwargs):
2686 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
2687 return _ogl.PyDivisionShape_base_OnMoveLink(*args, **kwargs)
2688
2689 def base_OnSizingDragLeft(*args, **kwargs):
2690 """
2691 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
2692 int attachment=0)
2693 """
2694 return _ogl.PyDivisionShape_base_OnSizingDragLeft(*args, **kwargs)
2695
2696 def base_OnSizingBeginDragLeft(*args, **kwargs):
2697 """
2698 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2699 int attachment=0)
2700 """
2701 return _ogl.PyDivisionShape_base_OnSizingBeginDragLeft(*args, **kwargs)
2702
2703 def base_OnSizingEndDragLeft(*args, **kwargs):
2704 """
2705 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2706 int attachment=0)
2707 """
2708 return _ogl.PyDivisionShape_base_OnSizingEndDragLeft(*args, **kwargs)
2709
2710 def base_OnBeginSize(*args, **kwargs):
2711 """base_OnBeginSize(self, double w, double h)"""
2712 return _ogl.PyDivisionShape_base_OnBeginSize(*args, **kwargs)
2713
2714 def base_OnEndSize(*args, **kwargs):
2715 """base_OnEndSize(self, double w, double h)"""
2716 return _ogl.PyDivisionShape_base_OnEndSize(*args, **kwargs)
2717
2718
2719 class PyDivisionShapePtr(PyDivisionShape):
2720 def __init__(self, this):
2721 self.this = this
2722 if not hasattr(self,"thisown"): self.thisown = 0
2723 self.__class__ = PyDivisionShape
2724 _ogl.PyDivisionShape_swigregister(PyDivisionShapePtr)
2725
2726 class PyEllipseShape(PyShape):
2727 """Proxy of C++ PyEllipseShape class"""
2728 def __repr__(self):
2729 return "<%s.%s; proxy of C++ wxPyEllipseShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2730 def __init__(self, *args, **kwargs):
2731 """__init__(self, double width=0.0, double height=0.0) -> PyEllipseShape"""
2732 newobj = _ogl.new_PyEllipseShape(*args, **kwargs)
2733 self.this = newobj.this
2734 self.thisown = 1
2735 del newobj.thisown
2736 self._setOORandCallbackInfo(PyEllipseShape)
2737
2738 def _setCallbackInfo(*args, **kwargs):
2739 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2740 return _ogl.PyEllipseShape__setCallbackInfo(*args, **kwargs)
2741
2742 def base_OnDraw(*args, **kwargs):
2743 """base_OnDraw(self, DC dc)"""
2744 return _ogl.PyEllipseShape_base_OnDraw(*args, **kwargs)
2745
2746 def base_OnDrawContents(*args, **kwargs):
2747 """base_OnDrawContents(self, DC dc)"""
2748 return _ogl.PyEllipseShape_base_OnDrawContents(*args, **kwargs)
2749
2750 def base_OnDrawBranches(*args, **kwargs):
2751 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
2752 return _ogl.PyEllipseShape_base_OnDrawBranches(*args, **kwargs)
2753
2754 def base_OnMoveLinks(*args, **kwargs):
2755 """base_OnMoveLinks(self, DC dc)"""
2756 return _ogl.PyEllipseShape_base_OnMoveLinks(*args, **kwargs)
2757
2758 def base_OnErase(*args, **kwargs):
2759 """base_OnErase(self, DC dc)"""
2760 return _ogl.PyEllipseShape_base_OnErase(*args, **kwargs)
2761
2762 def base_OnEraseContents(*args, **kwargs):
2763 """base_OnEraseContents(self, DC dc)"""
2764 return _ogl.PyEllipseShape_base_OnEraseContents(*args, **kwargs)
2765
2766 def base_OnHighlight(*args, **kwargs):
2767 """base_OnHighlight(self, DC dc)"""
2768 return _ogl.PyEllipseShape_base_OnHighlight(*args, **kwargs)
2769
2770 def base_OnLeftClick(*args, **kwargs):
2771 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
2772 return _ogl.PyEllipseShape_base_OnLeftClick(*args, **kwargs)
2773
2774 def base_OnLeftDoubleClick(*args, **kwargs):
2775 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
2776 return _ogl.PyEllipseShape_base_OnLeftDoubleClick(*args, **kwargs)
2777
2778 def base_OnRightClick(*args, **kwargs):
2779 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
2780 return _ogl.PyEllipseShape_base_OnRightClick(*args, **kwargs)
2781
2782 def base_OnSize(*args, **kwargs):
2783 """base_OnSize(self, double x, double y)"""
2784 return _ogl.PyEllipseShape_base_OnSize(*args, **kwargs)
2785
2786 def base_OnMovePre(*args, **kwargs):
2787 """
2788 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
2789 bool display=True) -> bool
2790 """
2791 return _ogl.PyEllipseShape_base_OnMovePre(*args, **kwargs)
2792
2793 def base_OnMovePost(*args, **kwargs):
2794 """
2795 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
2796 bool display=True)
2797 """
2798 return _ogl.PyEllipseShape_base_OnMovePost(*args, **kwargs)
2799
2800 def base_OnDragLeft(*args, **kwargs):
2801 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2802 return _ogl.PyEllipseShape_base_OnDragLeft(*args, **kwargs)
2803
2804 def base_OnBeginDragLeft(*args, **kwargs):
2805 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2806 return _ogl.PyEllipseShape_base_OnBeginDragLeft(*args, **kwargs)
2807
2808 def base_OnEndDragLeft(*args, **kwargs):
2809 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2810 return _ogl.PyEllipseShape_base_OnEndDragLeft(*args, **kwargs)
2811
2812 def base_OnDragRight(*args, **kwargs):
2813 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2814 return _ogl.PyEllipseShape_base_OnDragRight(*args, **kwargs)
2815
2816 def base_OnBeginDragRight(*args, **kwargs):
2817 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2818 return _ogl.PyEllipseShape_base_OnBeginDragRight(*args, **kwargs)
2819
2820 def base_OnEndDragRight(*args, **kwargs):
2821 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2822 return _ogl.PyEllipseShape_base_OnEndDragRight(*args, **kwargs)
2823
2824 def base_OnDrawOutline(*args, **kwargs):
2825 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
2826 return _ogl.PyEllipseShape_base_OnDrawOutline(*args, **kwargs)
2827
2828 def base_OnDrawControlPoints(*args, **kwargs):
2829 """base_OnDrawControlPoints(self, DC dc)"""
2830 return _ogl.PyEllipseShape_base_OnDrawControlPoints(*args, **kwargs)
2831
2832 def base_OnEraseControlPoints(*args, **kwargs):
2833 """base_OnEraseControlPoints(self, DC dc)"""
2834 return _ogl.PyEllipseShape_base_OnEraseControlPoints(*args, **kwargs)
2835
2836 def base_OnMoveLink(*args, **kwargs):
2837 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
2838 return _ogl.PyEllipseShape_base_OnMoveLink(*args, **kwargs)
2839
2840 def base_OnSizingDragLeft(*args, **kwargs):
2841 """
2842 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
2843 int attachment=0)
2844 """
2845 return _ogl.PyEllipseShape_base_OnSizingDragLeft(*args, **kwargs)
2846
2847 def base_OnSizingBeginDragLeft(*args, **kwargs):
2848 """
2849 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2850 int attachment=0)
2851 """
2852 return _ogl.PyEllipseShape_base_OnSizingBeginDragLeft(*args, **kwargs)
2853
2854 def base_OnSizingEndDragLeft(*args, **kwargs):
2855 """
2856 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
2857 int attachment=0)
2858 """
2859 return _ogl.PyEllipseShape_base_OnSizingEndDragLeft(*args, **kwargs)
2860
2861 def base_OnBeginSize(*args, **kwargs):
2862 """base_OnBeginSize(self, double w, double h)"""
2863 return _ogl.PyEllipseShape_base_OnBeginSize(*args, **kwargs)
2864
2865 def base_OnEndSize(*args, **kwargs):
2866 """base_OnEndSize(self, double w, double h)"""
2867 return _ogl.PyEllipseShape_base_OnEndSize(*args, **kwargs)
2868
2869
2870 class PyEllipseShapePtr(PyEllipseShape):
2871 def __init__(self, this):
2872 self.this = this
2873 if not hasattr(self,"thisown"): self.thisown = 0
2874 self.__class__ = PyEllipseShape
2875 _ogl.PyEllipseShape_swigregister(PyEllipseShapePtr)
2876
2877 class PyCircleShape(PyEllipseShape):
2878 """Proxy of C++ PyCircleShape class"""
2879 def __repr__(self):
2880 return "<%s.%s; proxy of C++ wxPyCircleShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2881 def __init__(self, *args, **kwargs):
2882 """__init__(self, double width=0.0) -> PyCircleShape"""
2883 newobj = _ogl.new_PyCircleShape(*args, **kwargs)
2884 self.this = newobj.this
2885 self.thisown = 1
2886 del newobj.thisown
2887 self._setOORandCallbackInfo(PyCircleShape)
2888
2889 def _setCallbackInfo(*args, **kwargs):
2890 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2891 return _ogl.PyCircleShape__setCallbackInfo(*args, **kwargs)
2892
2893 def base_OnDraw(*args, **kwargs):
2894 """base_OnDraw(self, DC dc)"""
2895 return _ogl.PyCircleShape_base_OnDraw(*args, **kwargs)
2896
2897 def base_OnDrawContents(*args, **kwargs):
2898 """base_OnDrawContents(self, DC dc)"""
2899 return _ogl.PyCircleShape_base_OnDrawContents(*args, **kwargs)
2900
2901 def base_OnDrawBranches(*args, **kwargs):
2902 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
2903 return _ogl.PyCircleShape_base_OnDrawBranches(*args, **kwargs)
2904
2905 def base_OnMoveLinks(*args, **kwargs):
2906 """base_OnMoveLinks(self, DC dc)"""
2907 return _ogl.PyCircleShape_base_OnMoveLinks(*args, **kwargs)
2908
2909 def base_OnErase(*args, **kwargs):
2910 """base_OnErase(self, DC dc)"""
2911 return _ogl.PyCircleShape_base_OnErase(*args, **kwargs)
2912
2913 def base_OnEraseContents(*args, **kwargs):
2914 """base_OnEraseContents(self, DC dc)"""
2915 return _ogl.PyCircleShape_base_OnEraseContents(*args, **kwargs)
2916
2917 def base_OnHighlight(*args, **kwargs):
2918 """base_OnHighlight(self, DC dc)"""
2919 return _ogl.PyCircleShape_base_OnHighlight(*args, **kwargs)
2920
2921 def base_OnLeftClick(*args, **kwargs):
2922 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
2923 return _ogl.PyCircleShape_base_OnLeftClick(*args, **kwargs)
2924
2925 def base_OnLeftDoubleClick(*args, **kwargs):
2926 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
2927 return _ogl.PyCircleShape_base_OnLeftDoubleClick(*args, **kwargs)
2928
2929 def base_OnRightClick(*args, **kwargs):
2930 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
2931 return _ogl.PyCircleShape_base_OnRightClick(*args, **kwargs)
2932
2933 def base_OnSize(*args, **kwargs):
2934 """base_OnSize(self, double x, double y)"""
2935 return _ogl.PyCircleShape_base_OnSize(*args, **kwargs)
2936
2937 def base_OnMovePre(*args, **kwargs):
2938 """
2939 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
2940 bool display=True) -> bool
2941 """
2942 return _ogl.PyCircleShape_base_OnMovePre(*args, **kwargs)
2943
2944 def base_OnMovePost(*args, **kwargs):
2945 """
2946 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
2947 bool display=True)
2948 """
2949 return _ogl.PyCircleShape_base_OnMovePost(*args, **kwargs)
2950
2951 def base_OnDragLeft(*args, **kwargs):
2952 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2953 return _ogl.PyCircleShape_base_OnDragLeft(*args, **kwargs)
2954
2955 def base_OnBeginDragLeft(*args, **kwargs):
2956 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2957 return _ogl.PyCircleShape_base_OnBeginDragLeft(*args, **kwargs)
2958
2959 def base_OnEndDragLeft(*args, **kwargs):
2960 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
2961 return _ogl.PyCircleShape_base_OnEndDragLeft(*args, **kwargs)
2962
2963 def base_OnDragRight(*args, **kwargs):
2964 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
2965 return _ogl.PyCircleShape_base_OnDragRight(*args, **kwargs)
2966
2967 def base_OnBeginDragRight(*args, **kwargs):
2968 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2969 return _ogl.PyCircleShape_base_OnBeginDragRight(*args, **kwargs)
2970
2971 def base_OnEndDragRight(*args, **kwargs):
2972 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
2973 return _ogl.PyCircleShape_base_OnEndDragRight(*args, **kwargs)
2974
2975 def base_OnDrawOutline(*args, **kwargs):
2976 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
2977 return _ogl.PyCircleShape_base_OnDrawOutline(*args, **kwargs)
2978
2979 def base_OnDrawControlPoints(*args, **kwargs):
2980 """base_OnDrawControlPoints(self, DC dc)"""
2981 return _ogl.PyCircleShape_base_OnDrawControlPoints(*args, **kwargs)
2982
2983 def base_OnEraseControlPoints(*args, **kwargs):
2984 """base_OnEraseControlPoints(self, DC dc)"""
2985 return _ogl.PyCircleShape_base_OnEraseControlPoints(*args, **kwargs)
2986
2987 def base_OnMoveLink(*args, **kwargs):
2988 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
2989 return _ogl.PyCircleShape_base_OnMoveLink(*args, **kwargs)
2990
2991 def base_OnSizingDragLeft(*args, **kwargs):
2992 """
2993 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
2994 int attachment=0)
2995 """
2996 return _ogl.PyCircleShape_base_OnSizingDragLeft(*args, **kwargs)
2997
2998 def base_OnSizingBeginDragLeft(*args, **kwargs):
2999 """
3000 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
3001 int attachment=0)
3002 """
3003 return _ogl.PyCircleShape_base_OnSizingBeginDragLeft(*args, **kwargs)
3004
3005 def base_OnSizingEndDragLeft(*args, **kwargs):
3006 """
3007 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
3008 int attachment=0)
3009 """
3010 return _ogl.PyCircleShape_base_OnSizingEndDragLeft(*args, **kwargs)
3011
3012 def base_OnBeginSize(*args, **kwargs):
3013 """base_OnBeginSize(self, double w, double h)"""
3014 return _ogl.PyCircleShape_base_OnBeginSize(*args, **kwargs)
3015
3016 def base_OnEndSize(*args, **kwargs):
3017 """base_OnEndSize(self, double w, double h)"""
3018 return _ogl.PyCircleShape_base_OnEndSize(*args, **kwargs)
3019
3020
3021 class PyCircleShapePtr(PyCircleShape):
3022 def __init__(self, this):
3023 self.this = this
3024 if not hasattr(self,"thisown"): self.thisown = 0
3025 self.__class__ = PyCircleShape
3026 _ogl.PyCircleShape_swigregister(PyCircleShapePtr)
3027
3028 class ArrowHead(_core.Object):
3029 """Proxy of C++ ArrowHead class"""
3030 def __repr__(self):
3031 return "<%s.%s; proxy of C++ wxArrowHead instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3032 def __init__(self, *args, **kwargs):
3033 """
3034 __init__(self, int type=0, int end=0, double size=0.0, double dist=0.0,
3035 String name=EmptyString, PseudoMetaFile mf=None,
3036 long arrowId=-1) -> ArrowHead
3037 """
3038 newobj = _ogl.new_ArrowHead(*args, **kwargs)
3039 self.this = newobj.this
3040 self.thisown = 1
3041 del newobj.thisown
3042 def __del__(self, destroy=_ogl.delete_ArrowHead):
3043 """__del__(self)"""
3044 try:
3045 if self.thisown: destroy(self)
3046 except: pass
3047
3048 def _GetType(*args, **kwargs):
3049 """_GetType(self) -> int"""
3050 return _ogl.ArrowHead__GetType(*args, **kwargs)
3051
3052 def GetPosition(*args, **kwargs):
3053 """GetPosition(self) -> int"""
3054 return _ogl.ArrowHead_GetPosition(*args, **kwargs)
3055
3056 def SetPosition(*args, **kwargs):
3057 """SetPosition(self, int pos)"""
3058 return _ogl.ArrowHead_SetPosition(*args, **kwargs)
3059
3060 def GetXOffset(*args, **kwargs):
3061 """GetXOffset(self) -> double"""
3062 return _ogl.ArrowHead_GetXOffset(*args, **kwargs)
3063
3064 def GetYOffset(*args, **kwargs):
3065 """GetYOffset(self) -> double"""
3066 return _ogl.ArrowHead_GetYOffset(*args, **kwargs)
3067
3068 def GetSpacing(*args, **kwargs):
3069 """GetSpacing(self) -> double"""
3070 return _ogl.ArrowHead_GetSpacing(*args, **kwargs)
3071
3072 def GetSize(*args, **kwargs):
3073 """GetSize(self) -> double"""
3074 return _ogl.ArrowHead_GetSize(*args, **kwargs)
3075
3076 def GetName(*args, **kwargs):
3077 """GetName(self) -> String"""
3078 return _ogl.ArrowHead_GetName(*args, **kwargs)
3079
3080 def SetXOffset(*args, **kwargs):
3081 """SetXOffset(self, double x)"""
3082 return _ogl.ArrowHead_SetXOffset(*args, **kwargs)
3083
3084 def SetYOffset(*args, **kwargs):
3085 """SetYOffset(self, double y)"""
3086 return _ogl.ArrowHead_SetYOffset(*args, **kwargs)
3087
3088 def GetMetaFile(*args, **kwargs):
3089 """GetMetaFile(self) -> PseudoMetaFile"""
3090 return _ogl.ArrowHead_GetMetaFile(*args, **kwargs)
3091
3092 def GetId(*args, **kwargs):
3093 """GetId(self) -> long"""
3094 return _ogl.ArrowHead_GetId(*args, **kwargs)
3095
3096 def GetArrowEnd(*args, **kwargs):
3097 """GetArrowEnd(self) -> int"""
3098 return _ogl.ArrowHead_GetArrowEnd(*args, **kwargs)
3099
3100 def GetArrowSize(*args, **kwargs):
3101 """GetArrowSize(self) -> double"""
3102 return _ogl.ArrowHead_GetArrowSize(*args, **kwargs)
3103
3104 def SetSize(*args, **kwargs):
3105 """SetSize(self, double size)"""
3106 return _ogl.ArrowHead_SetSize(*args, **kwargs)
3107
3108 def SetSpacing(*args, **kwargs):
3109 """SetSpacing(self, double sp)"""
3110 return _ogl.ArrowHead_SetSpacing(*args, **kwargs)
3111
3112
3113 class ArrowHeadPtr(ArrowHead):
3114 def __init__(self, this):
3115 self.this = this
3116 if not hasattr(self,"thisown"): self.thisown = 0
3117 self.__class__ = ArrowHead
3118 _ogl.ArrowHead_swigregister(ArrowHeadPtr)
3119
3120 class PyLineShape(PyShape):
3121 """Proxy of C++ PyLineShape class"""
3122 def __repr__(self):
3123 return "<%s.%s; proxy of C++ wxPyLineShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3124 def __init__(self, *args, **kwargs):
3125 """__init__(self) -> PyLineShape"""
3126 newobj = _ogl.new_PyLineShape(*args, **kwargs)
3127 self.this = newobj.this
3128 self.thisown = 1
3129 del newobj.thisown
3130 self._setOORandCallbackInfo(PyLineShape)
3131
3132 def _setCallbackInfo(*args, **kwargs):
3133 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3134 return _ogl.PyLineShape__setCallbackInfo(*args, **kwargs)
3135
3136 def AddArrow(*args, **kwargs):
3137 """
3138 AddArrow(self, int type, int end=ARROW_POSITION_END, double arrowSize=10.0,
3139 double xOffset=0.0, String name=EmptyString,
3140 PseudoMetaFile mf=None, long arrowId=-1)
3141 """
3142 return _ogl.PyLineShape_AddArrow(*args, **kwargs)
3143
3144 def AddArrowOrdered(*args, **kwargs):
3145 """AddArrowOrdered(self, ArrowHead arrow, PyObject referenceList, int end)"""
3146 return _ogl.PyLineShape_AddArrowOrdered(*args, **kwargs)
3147
3148 def ClearArrow(*args, **kwargs):
3149 """ClearArrow(self, String name) -> bool"""
3150 return _ogl.PyLineShape_ClearArrow(*args, **kwargs)
3151
3152 def ClearArrowsAtPosition(*args, **kwargs):
3153 """ClearArrowsAtPosition(self, int position=-1)"""
3154 return _ogl.PyLineShape_ClearArrowsAtPosition(*args, **kwargs)
3155
3156 def DrawArrow(*args, **kwargs):
3157 """DrawArrow(self, DC dc, ArrowHead arrow, double xOffset, bool proportionalOffset)"""
3158 return _ogl.PyLineShape_DrawArrow(*args, **kwargs)
3159
3160 def DeleteArrowHeadId(*args, **kwargs):
3161 """DeleteArrowHeadId(self, long arrowId) -> bool"""
3162 return _ogl.PyLineShape_DeleteArrowHeadId(*args, **kwargs)
3163
3164 def DeleteArrowHead(*args, **kwargs):
3165 """DeleteArrowHead(self, int position, String name) -> bool"""
3166 return _ogl.PyLineShape_DeleteArrowHead(*args, **kwargs)
3167
3168 def DeleteLineControlPoint(*args, **kwargs):
3169 """DeleteLineControlPoint(self) -> bool"""
3170 return _ogl.PyLineShape_DeleteLineControlPoint(*args, **kwargs)
3171
3172 def DrawArrows(*args, **kwargs):
3173 """DrawArrows(self, DC dc)"""
3174 return _ogl.PyLineShape_DrawArrows(*args, **kwargs)
3175
3176 def DrawRegion(*args, **kwargs):
3177 """DrawRegion(self, DC dc, ShapeRegion region, double x, double y)"""
3178 return _ogl.PyLineShape_DrawRegion(*args, **kwargs)
3179
3180 def EraseRegion(*args, **kwargs):
3181 """EraseRegion(self, DC dc, ShapeRegion region, double x, double y)"""
3182 return _ogl.PyLineShape_EraseRegion(*args, **kwargs)
3183
3184 def FindArrowHeadId(*args, **kwargs):
3185 """FindArrowHeadId(self, long arrowId) -> ArrowHead"""
3186 return _ogl.PyLineShape_FindArrowHeadId(*args, **kwargs)
3187
3188 def FindArrowHead(*args, **kwargs):
3189 """FindArrowHead(self, int position, String name) -> ArrowHead"""
3190 return _ogl.PyLineShape_FindArrowHead(*args, **kwargs)
3191
3192 def FindLineEndPoints(*args, **kwargs):
3193 """FindLineEndPoints(self, double OUTPUT, double OUTPUT, double OUTPUT, double OUTPUT)"""
3194 return _ogl.PyLineShape_FindLineEndPoints(*args, **kwargs)
3195
3196 def FindLinePosition(*args, **kwargs):
3197 """FindLinePosition(self, double x, double y) -> int"""
3198 return _ogl.PyLineShape_FindLinePosition(*args, **kwargs)
3199
3200 def FindMinimumWidth(*args, **kwargs):
3201 """FindMinimumWidth(self) -> double"""
3202 return _ogl.PyLineShape_FindMinimumWidth(*args, **kwargs)
3203
3204 def FindNth(*args, **kwargs):
3205 """FindNth(self, PyShape image, int OUTPUT, int OUTPUT, bool incoming)"""
3206 return _ogl.PyLineShape_FindNth(*args, **kwargs)
3207
3208 def GetAttachmentFrom(*args, **kwargs):
3209 """GetAttachmentFrom(self) -> int"""
3210 return _ogl.PyLineShape_GetAttachmentFrom(*args, **kwargs)
3211
3212 def GetAttachmentTo(*args, **kwargs):
3213 """GetAttachmentTo(self) -> int"""
3214 return _ogl.PyLineShape_GetAttachmentTo(*args, **kwargs)
3215
3216 def GetEnds(*args, **kwargs):
3217 """GetEnds(self, double OUTPUT, double OUTPUT, double OUTPUT, double OUTPUT)"""
3218 return _ogl.PyLineShape_GetEnds(*args, **kwargs)
3219
3220 def GetFrom(*args, **kwargs):
3221 """GetFrom(self) -> PyShape"""
3222 return _ogl.PyLineShape_GetFrom(*args, **kwargs)
3223
3224 def GetLabelPosition(*args, **kwargs):
3225 """GetLabelPosition(self, int position, double OUTPUT, double OUTPUT)"""
3226 return _ogl.PyLineShape_GetLabelPosition(*args, **kwargs)
3227
3228 def GetNextControlPoint(*args, **kwargs):
3229 """GetNextControlPoint(self, PyShape shape) -> RealPoint"""
3230 return _ogl.PyLineShape_GetNextControlPoint(*args, **kwargs)
3231
3232 def GetTo(*args, **kwargs):
3233 """GetTo(self) -> PyShape"""
3234 return _ogl.PyLineShape_GetTo(*args, **kwargs)
3235
3236 def Initialise(*args, **kwargs):
3237 """Initialise(self)"""
3238 return _ogl.PyLineShape_Initialise(*args, **kwargs)
3239
3240 def InsertLineControlPoint(*args, **kwargs):
3241 """InsertLineControlPoint(self, DC dc)"""
3242 return _ogl.PyLineShape_InsertLineControlPoint(*args, **kwargs)
3243
3244 def IsEnd(*args, **kwargs):
3245 """IsEnd(self, PyShape shape) -> bool"""
3246 return _ogl.PyLineShape_IsEnd(*args, **kwargs)
3247
3248 def IsSpline(*args, **kwargs):
3249 """IsSpline(self) -> bool"""
3250 return _ogl.PyLineShape_IsSpline(*args, **kwargs)
3251
3252 def MakeLineControlPoints(*args, **kwargs):
3253 """MakeLineControlPoints(self, int n)"""
3254 return _ogl.PyLineShape_MakeLineControlPoints(*args, **kwargs)
3255
3256 def GetLineControlPoints(*args, **kwargs):
3257 """GetLineControlPoints(self) -> PyObject"""
3258 return _ogl.PyLineShape_GetLineControlPoints(*args, **kwargs)
3259
3260 def SetLineControlPoints(*args, **kwargs):
3261 """SetLineControlPoints(self, PyObject list)"""
3262 return _ogl.PyLineShape_SetLineControlPoints(*args, **kwargs)
3263
3264 def SetAttachmentFrom(*args, **kwargs):
3265 """SetAttachmentFrom(self, int fromAttach)"""
3266 return _ogl.PyLineShape_SetAttachmentFrom(*args, **kwargs)
3267
3268 def SetAttachments(*args, **kwargs):
3269 """SetAttachments(self, int fromAttach, int toAttach)"""
3270 return _ogl.PyLineShape_SetAttachments(*args, **kwargs)
3271
3272 def SetAttachmentTo(*args, **kwargs):
3273 """SetAttachmentTo(self, int toAttach)"""
3274 return _ogl.PyLineShape_SetAttachmentTo(*args, **kwargs)
3275
3276 def SetEnds(*args, **kwargs):
3277 """SetEnds(self, double x1, double y1, double x2, double y2)"""
3278 return _ogl.PyLineShape_SetEnds(*args, **kwargs)
3279
3280 def SetFrom(*args, **kwargs):
3281 """SetFrom(self, PyShape object)"""
3282 return _ogl.PyLineShape_SetFrom(*args, **kwargs)
3283
3284 def SetIgnoreOffsets(*args, **kwargs):
3285 """SetIgnoreOffsets(self, bool ignore)"""
3286 return _ogl.PyLineShape_SetIgnoreOffsets(*args, **kwargs)
3287
3288 def SetSpline(*args, **kwargs):
3289 """SetSpline(self, bool spline)"""
3290 return _ogl.PyLineShape_SetSpline(*args, **kwargs)
3291
3292 def SetTo(*args, **kwargs):
3293 """SetTo(self, PyShape object)"""
3294 return _ogl.PyLineShape_SetTo(*args, **kwargs)
3295
3296 def Straighten(*args, **kwargs):
3297 """Straighten(self, DC dc=None)"""
3298 return _ogl.PyLineShape_Straighten(*args, **kwargs)
3299
3300 def Unlink(*args, **kwargs):
3301 """Unlink(self)"""
3302 return _ogl.PyLineShape_Unlink(*args, **kwargs)
3303
3304 def SetAlignmentOrientation(*args, **kwargs):
3305 """SetAlignmentOrientation(self, bool isEnd, bool isHoriz)"""
3306 return _ogl.PyLineShape_SetAlignmentOrientation(*args, **kwargs)
3307
3308 def SetAlignmentType(*args, **kwargs):
3309 """SetAlignmentType(self, bool isEnd, int alignType)"""
3310 return _ogl.PyLineShape_SetAlignmentType(*args, **kwargs)
3311
3312 def GetAlignmentOrientation(*args, **kwargs):
3313 """GetAlignmentOrientation(self, bool isEnd) -> bool"""
3314 return _ogl.PyLineShape_GetAlignmentOrientation(*args, **kwargs)
3315
3316 def GetAlignmentType(*args, **kwargs):
3317 """GetAlignmentType(self, bool isEnd) -> int"""
3318 return _ogl.PyLineShape_GetAlignmentType(*args, **kwargs)
3319
3320 def GetAlignmentStart(*args, **kwargs):
3321 """GetAlignmentStart(self) -> int"""
3322 return _ogl.PyLineShape_GetAlignmentStart(*args, **kwargs)
3323
3324 def GetAlignmentEnd(*args, **kwargs):
3325 """GetAlignmentEnd(self) -> int"""
3326 return _ogl.PyLineShape_GetAlignmentEnd(*args, **kwargs)
3327
3328 def base_OnDraw(*args, **kwargs):
3329 """base_OnDraw(self, DC dc)"""
3330 return _ogl.PyLineShape_base_OnDraw(*args, **kwargs)
3331
3332 def base_OnDrawContents(*args, **kwargs):
3333 """base_OnDrawContents(self, DC dc)"""
3334 return _ogl.PyLineShape_base_OnDrawContents(*args, **kwargs)
3335
3336 def base_OnDrawBranches(*args, **kwargs):
3337 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
3338 return _ogl.PyLineShape_base_OnDrawBranches(*args, **kwargs)
3339
3340 def base_OnMoveLinks(*args, **kwargs):
3341 """base_OnMoveLinks(self, DC dc)"""
3342 return _ogl.PyLineShape_base_OnMoveLinks(*args, **kwargs)
3343
3344 def base_OnErase(*args, **kwargs):
3345 """base_OnErase(self, DC dc)"""
3346 return _ogl.PyLineShape_base_OnErase(*args, **kwargs)
3347
3348 def base_OnEraseContents(*args, **kwargs):
3349 """base_OnEraseContents(self, DC dc)"""
3350 return _ogl.PyLineShape_base_OnEraseContents(*args, **kwargs)
3351
3352 def base_OnHighlight(*args, **kwargs):
3353 """base_OnHighlight(self, DC dc)"""
3354 return _ogl.PyLineShape_base_OnHighlight(*args, **kwargs)
3355
3356 def base_OnLeftClick(*args, **kwargs):
3357 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
3358 return _ogl.PyLineShape_base_OnLeftClick(*args, **kwargs)
3359
3360 def base_OnLeftDoubleClick(*args, **kwargs):
3361 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
3362 return _ogl.PyLineShape_base_OnLeftDoubleClick(*args, **kwargs)
3363
3364 def base_OnRightClick(*args, **kwargs):
3365 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
3366 return _ogl.PyLineShape_base_OnRightClick(*args, **kwargs)
3367
3368 def base_OnSize(*args, **kwargs):
3369 """base_OnSize(self, double x, double y)"""
3370 return _ogl.PyLineShape_base_OnSize(*args, **kwargs)
3371
3372 def base_OnMovePre(*args, **kwargs):
3373 """
3374 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
3375 bool display=True) -> bool
3376 """
3377 return _ogl.PyLineShape_base_OnMovePre(*args, **kwargs)
3378
3379 def base_OnMovePost(*args, **kwargs):
3380 """
3381 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
3382 bool display=True)
3383 """
3384 return _ogl.PyLineShape_base_OnMovePost(*args, **kwargs)
3385
3386 def base_OnDragLeft(*args, **kwargs):
3387 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
3388 return _ogl.PyLineShape_base_OnDragLeft(*args, **kwargs)
3389
3390 def base_OnBeginDragLeft(*args, **kwargs):
3391 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
3392 return _ogl.PyLineShape_base_OnBeginDragLeft(*args, **kwargs)
3393
3394 def base_OnEndDragLeft(*args, **kwargs):
3395 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
3396 return _ogl.PyLineShape_base_OnEndDragLeft(*args, **kwargs)
3397
3398 def base_OnDragRight(*args, **kwargs):
3399 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
3400 return _ogl.PyLineShape_base_OnDragRight(*args, **kwargs)
3401
3402 def base_OnBeginDragRight(*args, **kwargs):
3403 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
3404 return _ogl.PyLineShape_base_OnBeginDragRight(*args, **kwargs)
3405
3406 def base_OnEndDragRight(*args, **kwargs):
3407 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
3408 return _ogl.PyLineShape_base_OnEndDragRight(*args, **kwargs)
3409
3410 def base_OnDrawOutline(*args, **kwargs):
3411 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
3412 return _ogl.PyLineShape_base_OnDrawOutline(*args, **kwargs)
3413
3414 def base_OnDrawControlPoints(*args, **kwargs):
3415 """base_OnDrawControlPoints(self, DC dc)"""
3416 return _ogl.PyLineShape_base_OnDrawControlPoints(*args, **kwargs)
3417
3418 def base_OnEraseControlPoints(*args, **kwargs):
3419 """base_OnEraseControlPoints(self, DC dc)"""
3420 return _ogl.PyLineShape_base_OnEraseControlPoints(*args, **kwargs)
3421
3422 def base_OnMoveLink(*args, **kwargs):
3423 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
3424 return _ogl.PyLineShape_base_OnMoveLink(*args, **kwargs)
3425
3426 def base_OnSizingDragLeft(*args, **kwargs):
3427 """
3428 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
3429 int attachment=0)
3430 """
3431 return _ogl.PyLineShape_base_OnSizingDragLeft(*args, **kwargs)
3432
3433 def base_OnSizingBeginDragLeft(*args, **kwargs):
3434 """
3435 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
3436 int attachment=0)
3437 """
3438 return _ogl.PyLineShape_base_OnSizingBeginDragLeft(*args, **kwargs)
3439
3440 def base_OnSizingEndDragLeft(*args, **kwargs):
3441 """
3442 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
3443 int attachment=0)
3444 """
3445 return _ogl.PyLineShape_base_OnSizingEndDragLeft(*args, **kwargs)
3446
3447 def base_OnBeginSize(*args, **kwargs):
3448 """base_OnBeginSize(self, double w, double h)"""
3449 return _ogl.PyLineShape_base_OnBeginSize(*args, **kwargs)
3450
3451 def base_OnEndSize(*args, **kwargs):
3452 """base_OnEndSize(self, double w, double h)"""
3453 return _ogl.PyLineShape_base_OnEndSize(*args, **kwargs)
3454
3455
3456 class PyLineShapePtr(PyLineShape):
3457 def __init__(self, this):
3458 self.this = this
3459 if not hasattr(self,"thisown"): self.thisown = 0
3460 self.__class__ = PyLineShape
3461 _ogl.PyLineShape_swigregister(PyLineShapePtr)
3462
3463 class PyPolygonShape(PyShape):
3464 """Proxy of C++ PyPolygonShape class"""
3465 def __repr__(self):
3466 return "<%s.%s; proxy of C++ wxPyPolygonShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3467 def __init__(self, *args, **kwargs):
3468 """__init__(self) -> PyPolygonShape"""
3469 newobj = _ogl.new_PyPolygonShape(*args, **kwargs)
3470 self.this = newobj.this
3471 self.thisown = 1
3472 del newobj.thisown
3473 self._setOORandCallbackInfo(PyPolygonShape)
3474
3475 def _setCallbackInfo(*args, **kwargs):
3476 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3477 return _ogl.PyPolygonShape__setCallbackInfo(*args, **kwargs)
3478
3479 def Create(*args, **kwargs):
3480 """Create(self, PyObject points) -> PyObject"""
3481 return _ogl.PyPolygonShape_Create(*args, **kwargs)
3482
3483 def AddPolygonPoint(*args, **kwargs):
3484 """AddPolygonPoint(self, int pos=0)"""
3485 return _ogl.PyPolygonShape_AddPolygonPoint(*args, **kwargs)
3486
3487 def CalculatePolygonCentre(*args, **kwargs):
3488 """CalculatePolygonCentre(self)"""
3489 return _ogl.PyPolygonShape_CalculatePolygonCentre(*args, **kwargs)
3490
3491 def DeletePolygonPoint(*args, **kwargs):
3492 """DeletePolygonPoint(self, int pos=0)"""
3493 return _ogl.PyPolygonShape_DeletePolygonPoint(*args, **kwargs)
3494
3495 def GetPoints(*args, **kwargs):
3496 """GetPoints(self) -> PyObject"""
3497 return _ogl.PyPolygonShape_GetPoints(*args, **kwargs)
3498
3499 def GetOriginalPoints(*args, **kwargs):
3500 """GetOriginalPoints(self) -> PyObject"""
3501 return _ogl.PyPolygonShape_GetOriginalPoints(*args, **kwargs)
3502
3503 def GetOriginalWidth(*args, **kwargs):
3504 """GetOriginalWidth(self) -> double"""
3505 return _ogl.PyPolygonShape_GetOriginalWidth(*args, **kwargs)
3506
3507 def GetOriginalHeight(*args, **kwargs):
3508 """GetOriginalHeight(self) -> double"""
3509 return _ogl.PyPolygonShape_GetOriginalHeight(*args, **kwargs)
3510
3511 def SetOriginalWidth(*args, **kwargs):
3512 """SetOriginalWidth(self, double w)"""
3513 return _ogl.PyPolygonShape_SetOriginalWidth(*args, **kwargs)
3514
3515 def SetOriginalHeight(*args, **kwargs):
3516 """SetOriginalHeight(self, double h)"""
3517 return _ogl.PyPolygonShape_SetOriginalHeight(*args, **kwargs)
3518
3519 def UpdateOriginalPoints(*args, **kwargs):
3520 """UpdateOriginalPoints(self)"""
3521 return _ogl.PyPolygonShape_UpdateOriginalPoints(*args, **kwargs)
3522
3523 def base_OnDraw(*args, **kwargs):
3524 """base_OnDraw(self, DC dc)"""
3525 return _ogl.PyPolygonShape_base_OnDraw(*args, **kwargs)
3526
3527 def base_OnDrawContents(*args, **kwargs):
3528 """base_OnDrawContents(self, DC dc)"""
3529 return _ogl.PyPolygonShape_base_OnDrawContents(*args, **kwargs)
3530
3531 def base_OnDrawBranches(*args, **kwargs):
3532 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
3533 return _ogl.PyPolygonShape_base_OnDrawBranches(*args, **kwargs)
3534
3535 def base_OnMoveLinks(*args, **kwargs):
3536 """base_OnMoveLinks(self, DC dc)"""
3537 return _ogl.PyPolygonShape_base_OnMoveLinks(*args, **kwargs)
3538
3539 def base_OnErase(*args, **kwargs):
3540 """base_OnErase(self, DC dc)"""
3541 return _ogl.PyPolygonShape_base_OnErase(*args, **kwargs)
3542
3543 def base_OnEraseContents(*args, **kwargs):
3544 """base_OnEraseContents(self, DC dc)"""
3545 return _ogl.PyPolygonShape_base_OnEraseContents(*args, **kwargs)
3546
3547 def base_OnHighlight(*args, **kwargs):
3548 """base_OnHighlight(self, DC dc)"""
3549 return _ogl.PyPolygonShape_base_OnHighlight(*args, **kwargs)
3550
3551 def base_OnLeftClick(*args, **kwargs):
3552 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
3553 return _ogl.PyPolygonShape_base_OnLeftClick(*args, **kwargs)
3554
3555 def base_OnLeftDoubleClick(*args, **kwargs):
3556 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
3557 return _ogl.PyPolygonShape_base_OnLeftDoubleClick(*args, **kwargs)
3558
3559 def base_OnRightClick(*args, **kwargs):
3560 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
3561 return _ogl.PyPolygonShape_base_OnRightClick(*args, **kwargs)
3562
3563 def base_OnSize(*args, **kwargs):
3564 """base_OnSize(self, double x, double y)"""
3565 return _ogl.PyPolygonShape_base_OnSize(*args, **kwargs)
3566
3567 def base_OnMovePre(*args, **kwargs):
3568 """
3569 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
3570 bool display=True) -> bool
3571 """
3572 return _ogl.PyPolygonShape_base_OnMovePre(*args, **kwargs)
3573
3574 def base_OnMovePost(*args, **kwargs):
3575 """
3576 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
3577 bool display=True)
3578 """
3579 return _ogl.PyPolygonShape_base_OnMovePost(*args, **kwargs)
3580
3581 def base_OnDragLeft(*args, **kwargs):
3582 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
3583 return _ogl.PyPolygonShape_base_OnDragLeft(*args, **kwargs)
3584
3585 def base_OnBeginDragLeft(*args, **kwargs):
3586 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
3587 return _ogl.PyPolygonShape_base_OnBeginDragLeft(*args, **kwargs)
3588
3589 def base_OnEndDragLeft(*args, **kwargs):
3590 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
3591 return _ogl.PyPolygonShape_base_OnEndDragLeft(*args, **kwargs)
3592
3593 def base_OnDragRight(*args, **kwargs):
3594 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
3595 return _ogl.PyPolygonShape_base_OnDragRight(*args, **kwargs)
3596
3597 def base_OnBeginDragRight(*args, **kwargs):
3598 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
3599 return _ogl.PyPolygonShape_base_OnBeginDragRight(*args, **kwargs)
3600
3601 def base_OnEndDragRight(*args, **kwargs):
3602 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
3603 return _ogl.PyPolygonShape_base_OnEndDragRight(*args, **kwargs)
3604
3605 def base_OnDrawOutline(*args, **kwargs):
3606 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
3607 return _ogl.PyPolygonShape_base_OnDrawOutline(*args, **kwargs)
3608
3609 def base_OnDrawControlPoints(*args, **kwargs):
3610 """base_OnDrawControlPoints(self, DC dc)"""
3611 return _ogl.PyPolygonShape_base_OnDrawControlPoints(*args, **kwargs)
3612
3613 def base_OnEraseControlPoints(*args, **kwargs):
3614 """base_OnEraseControlPoints(self, DC dc)"""
3615 return _ogl.PyPolygonShape_base_OnEraseControlPoints(*args, **kwargs)
3616
3617 def base_OnMoveLink(*args, **kwargs):
3618 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
3619 return _ogl.PyPolygonShape_base_OnMoveLink(*args, **kwargs)
3620
3621 def base_OnSizingDragLeft(*args, **kwargs):
3622 """
3623 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
3624 int attachment=0)
3625 """
3626 return _ogl.PyPolygonShape_base_OnSizingDragLeft(*args, **kwargs)
3627
3628 def base_OnSizingBeginDragLeft(*args, **kwargs):
3629 """
3630 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
3631 int attachment=0)
3632 """
3633 return _ogl.PyPolygonShape_base_OnSizingBeginDragLeft(*args, **kwargs)
3634
3635 def base_OnSizingEndDragLeft(*args, **kwargs):
3636 """
3637 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
3638 int attachment=0)
3639 """
3640 return _ogl.PyPolygonShape_base_OnSizingEndDragLeft(*args, **kwargs)
3641
3642 def base_OnBeginSize(*args, **kwargs):
3643 """base_OnBeginSize(self, double w, double h)"""
3644 return _ogl.PyPolygonShape_base_OnBeginSize(*args, **kwargs)
3645
3646 def base_OnEndSize(*args, **kwargs):
3647 """base_OnEndSize(self, double w, double h)"""
3648 return _ogl.PyPolygonShape_base_OnEndSize(*args, **kwargs)
3649
3650
3651 class PyPolygonShapePtr(PyPolygonShape):
3652 def __init__(self, this):
3653 self.this = this
3654 if not hasattr(self,"thisown"): self.thisown = 0
3655 self.__class__ = PyPolygonShape
3656 _ogl.PyPolygonShape_swigregister(PyPolygonShapePtr)
3657
3658 class PyTextShape(PyRectangleShape):
3659 """Proxy of C++ PyTextShape class"""
3660 def __repr__(self):
3661 return "<%s.%s; proxy of C++ wxPyTextShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3662 def __init__(self, *args, **kwargs):
3663 """__init__(self, double width=0.0, double height=0.0) -> PyTextShape"""
3664 newobj = _ogl.new_PyTextShape(*args, **kwargs)
3665 self.this = newobj.this
3666 self.thisown = 1
3667 del newobj.thisown
3668 self._setOORandCallbackInfo(PyTextShape)
3669
3670 def _setCallbackInfo(*args, **kwargs):
3671 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3672 return _ogl.PyTextShape__setCallbackInfo(*args, **kwargs)
3673
3674 def base_OnDelete(*args, **kwargs):
3675 """base_OnDelete(self)"""
3676 return _ogl.PyTextShape_base_OnDelete(*args, **kwargs)
3677
3678 def base_OnDraw(*args, **kwargs):
3679 """base_OnDraw(self, DC dc)"""
3680 return _ogl.PyTextShape_base_OnDraw(*args, **kwargs)
3681
3682 def base_OnDrawContents(*args, **kwargs):
3683 """base_OnDrawContents(self, DC dc)"""
3684 return _ogl.PyTextShape_base_OnDrawContents(*args, **kwargs)
3685
3686 def base_OnDrawBranches(*args, **kwargs):
3687 """base_OnDrawBranches(self, DC dc, bool erase=False)"""
3688 return _ogl.PyTextShape_base_OnDrawBranches(*args, **kwargs)
3689
3690 def base_OnMoveLinks(*args, **kwargs):
3691 """base_OnMoveLinks(self, DC dc)"""
3692 return _ogl.PyTextShape_base_OnMoveLinks(*args, **kwargs)
3693
3694 def base_OnErase(*args, **kwargs):
3695 """base_OnErase(self, DC dc)"""
3696 return _ogl.PyTextShape_base_OnErase(*args, **kwargs)
3697
3698 def base_OnEraseContents(*args, **kwargs):
3699 """base_OnEraseContents(self, DC dc)"""
3700 return _ogl.PyTextShape_base_OnEraseContents(*args, **kwargs)
3701
3702 def base_OnHighlight(*args, **kwargs):
3703 """base_OnHighlight(self, DC dc)"""
3704 return _ogl.PyTextShape_base_OnHighlight(*args, **kwargs)
3705
3706 def base_OnLeftClick(*args, **kwargs):
3707 """base_OnLeftClick(self, double x, double y, int keys=0, int attachment=0)"""
3708 return _ogl.PyTextShape_base_OnLeftClick(*args, **kwargs)
3709
3710 def base_OnLeftDoubleClick(*args, **kwargs):
3711 """base_OnLeftDoubleClick(self, double x, double y, int keys=0, int attachment=0)"""
3712 return _ogl.PyTextShape_base_OnLeftDoubleClick(*args, **kwargs)
3713
3714 def base_OnRightClick(*args, **kwargs):
3715 """base_OnRightClick(self, double x, double y, int keys=0, int attachment=0)"""
3716 return _ogl.PyTextShape_base_OnRightClick(*args, **kwargs)
3717
3718 def base_OnSize(*args, **kwargs):
3719 """base_OnSize(self, double x, double y)"""
3720 return _ogl.PyTextShape_base_OnSize(*args, **kwargs)
3721
3722 def base_OnMovePre(*args, **kwargs):
3723 """
3724 base_OnMovePre(self, DC dc, double x, double y, double old_x, double old_y,
3725 bool display=True) -> bool
3726 """
3727 return _ogl.PyTextShape_base_OnMovePre(*args, **kwargs)
3728
3729 def base_OnMovePost(*args, **kwargs):
3730 """
3731 base_OnMovePost(self, DC dc, double x, double y, double old_x, double old_y,
3732 bool display=True)
3733 """
3734 return _ogl.PyTextShape_base_OnMovePost(*args, **kwargs)
3735
3736 def base_OnDragLeft(*args, **kwargs):
3737 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
3738 return _ogl.PyTextShape_base_OnDragLeft(*args, **kwargs)
3739
3740 def base_OnBeginDragLeft(*args, **kwargs):
3741 """base_OnBeginDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
3742 return _ogl.PyTextShape_base_OnBeginDragLeft(*args, **kwargs)
3743
3744 def base_OnEndDragLeft(*args, **kwargs):
3745 """base_OnEndDragLeft(self, double x, double y, int keys=0, int attachment=0)"""
3746 return _ogl.PyTextShape_base_OnEndDragLeft(*args, **kwargs)
3747
3748 def base_OnDragRight(*args, **kwargs):
3749 """base_OnDragRight(self, bool draw, double x, double y, int keys=0, int attachment=0)"""
3750 return _ogl.PyTextShape_base_OnDragRight(*args, **kwargs)
3751
3752 def base_OnBeginDragRight(*args, **kwargs):
3753 """base_OnBeginDragRight(self, double x, double y, int keys=0, int attachment=0)"""
3754 return _ogl.PyTextShape_base_OnBeginDragRight(*args, **kwargs)
3755
3756 def base_OnEndDragRight(*args, **kwargs):
3757 """base_OnEndDragRight(self, double x, double y, int keys=0, int attachment=0)"""
3758 return _ogl.PyTextShape_base_OnEndDragRight(*args, **kwargs)
3759
3760 def base_OnDrawOutline(*args, **kwargs):
3761 """base_OnDrawOutline(self, DC dc, double x, double y, double w, double h)"""
3762 return _ogl.PyTextShape_base_OnDrawOutline(*args, **kwargs)
3763
3764 def base_OnDrawControlPoints(*args, **kwargs):
3765 """base_OnDrawControlPoints(self, DC dc)"""
3766 return _ogl.PyTextShape_base_OnDrawControlPoints(*args, **kwargs)
3767
3768 def base_OnEraseControlPoints(*args, **kwargs):
3769 """base_OnEraseControlPoints(self, DC dc)"""
3770 return _ogl.PyTextShape_base_OnEraseControlPoints(*args, **kwargs)
3771
3772 def base_OnMoveLink(*args, **kwargs):
3773 """base_OnMoveLink(self, DC dc, bool moveControlPoints=True)"""
3774 return _ogl.PyTextShape_base_OnMoveLink(*args, **kwargs)
3775
3776 def base_OnSizingDragLeft(*args, **kwargs):
3777 """
3778 base_OnSizingDragLeft(self, PyControlPoint pt, bool draw, double x, double y, int keys=0,
3779 int attachment=0)
3780 """
3781 return _ogl.PyTextShape_base_OnSizingDragLeft(*args, **kwargs)
3782
3783 def base_OnSizingBeginDragLeft(*args, **kwargs):
3784 """
3785 base_OnSizingBeginDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
3786 int attachment=0)
3787 """
3788 return _ogl.PyTextShape_base_OnSizingBeginDragLeft(*args, **kwargs)
3789
3790 def base_OnSizingEndDragLeft(*args, **kwargs):
3791 """
3792 base_OnSizingEndDragLeft(self, PyControlPoint pt, double x, double y, int keys=0,
3793 int attachment=0)
3794 """
3795 return _ogl.PyTextShape_base_OnSizingEndDragLeft(*args, **kwargs)
3796
3797 def base_OnBeginSize(*args, **kwargs):
3798 """base_OnBeginSize(self, double w, double h)"""
3799 return _ogl.PyTextShape_base_OnBeginSize(*args, **kwargs)
3800
3801 def base_OnEndSize(*args, **kwargs):
3802 """base_OnEndSize(self, double w, double h)"""
3803 return _ogl.PyTextShape_base_OnEndSize(*args, **kwargs)
3804
3805
3806 class PyTextShapePtr(PyTextShape):
3807 def __init__(self, this):
3808 self.this = this
3809 if not hasattr(self,"thisown"): self.thisown = 0
3810 self.__class__ = PyTextShape
3811 _ogl.PyTextShape_swigregister(PyTextShapePtr)
3812
3813 class Diagram(_core.Object):
3814 """Proxy of C++ Diagram class"""
3815 def __repr__(self):
3816 return "<%s.%s; proxy of C++ wxDiagram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3817 def __init__(self, *args, **kwargs):
3818 """__init__(self) -> Diagram"""
3819 newobj = _ogl.new_Diagram(*args, **kwargs)
3820 self.this = newobj.this
3821 self.thisown = 1
3822 del newobj.thisown
3823 def AddShape(*args, **kwargs):
3824 """AddShape(self, PyShape shape, PyShape addAfter=None)"""
3825 return _ogl.Diagram_AddShape(*args, **kwargs)
3826
3827 def Clear(*args, **kwargs):
3828 """Clear(self, DC dc)"""
3829 return _ogl.Diagram_Clear(*args, **kwargs)
3830
3831 def DeleteAllShapes(*args, **kwargs):
3832 """DeleteAllShapes(self)"""
3833 return _ogl.Diagram_DeleteAllShapes(*args, **kwargs)
3834
3835 def DrawOutline(*args, **kwargs):
3836 """DrawOutline(self, DC dc, double x1, double y1, double x2, double y2)"""
3837 return _ogl.Diagram_DrawOutline(*args, **kwargs)
3838
3839 def FindShape(*args, **kwargs):
3840 """FindShape(self, long id) -> PyShape"""
3841 return _ogl.Diagram_FindShape(*args, **kwargs)
3842
3843 def GetCanvas(*args, **kwargs):
3844 """GetCanvas(self) -> PyShapeCanvas"""
3845 return _ogl.Diagram_GetCanvas(*args, **kwargs)
3846
3847 def GetCount(*args, **kwargs):
3848 """GetCount(self) -> int"""
3849 return _ogl.Diagram_GetCount(*args, **kwargs)
3850
3851 def GetGridSpacing(*args, **kwargs):
3852 """GetGridSpacing(self) -> double"""
3853 return _ogl.Diagram_GetGridSpacing(*args, **kwargs)
3854
3855 def GetMouseTolerance(*args, **kwargs):
3856 """GetMouseTolerance(self) -> int"""
3857 return _ogl.Diagram_GetMouseTolerance(*args, **kwargs)
3858
3859 def GetShapeList(*args, **kwargs):
3860 """GetShapeList(self) -> PyObject"""
3861 return _ogl.Diagram_GetShapeList(*args, **kwargs)
3862
3863 def GetQuickEditMode(*args, **kwargs):
3864 """GetQuickEditMode(self) -> bool"""
3865 return _ogl.Diagram_GetQuickEditMode(*args, **kwargs)
3866
3867 def GetSnapToGrid(*args, **kwargs):
3868 """GetSnapToGrid(self) -> bool"""
3869 return _ogl.Diagram_GetSnapToGrid(*args, **kwargs)
3870
3871 def InsertShape(*args, **kwargs):
3872 """InsertShape(self, PyShape shape)"""
3873 return _ogl.Diagram_InsertShape(*args, **kwargs)
3874
3875 def RecentreAll(*args, **kwargs):
3876 """RecentreAll(self, DC dc)"""
3877 return _ogl.Diagram_RecentreAll(*args, **kwargs)
3878
3879 def Redraw(*args, **kwargs):
3880 """Redraw(self, DC dc)"""
3881 return _ogl.Diagram_Redraw(*args, **kwargs)
3882
3883 def RemoveAllShapes(*args, **kwargs):
3884 """RemoveAllShapes(self)"""
3885 return _ogl.Diagram_RemoveAllShapes(*args, **kwargs)
3886
3887 def RemoveShape(*args, **kwargs):
3888 """RemoveShape(self, PyShape shape)"""
3889 return _ogl.Diagram_RemoveShape(*args, **kwargs)
3890
3891 def SetCanvas(*args, **kwargs):
3892 """SetCanvas(self, PyShapeCanvas canvas)"""
3893 return _ogl.Diagram_SetCanvas(*args, **kwargs)
3894
3895 def SetGridSpacing(*args, **kwargs):
3896 """SetGridSpacing(self, double spacing)"""
3897 return _ogl.Diagram_SetGridSpacing(*args, **kwargs)
3898
3899 def SetMouseTolerance(*args, **kwargs):
3900 """SetMouseTolerance(self, int tolerance)"""
3901 return _ogl.Diagram_SetMouseTolerance(*args, **kwargs)
3902
3903 def SetQuickEditMode(*args, **kwargs):
3904 """SetQuickEditMode(self, bool mode)"""
3905 return _ogl.Diagram_SetQuickEditMode(*args, **kwargs)
3906
3907 def SetSnapToGrid(*args, **kwargs):
3908 """SetSnapToGrid(self, bool snap)"""
3909 return _ogl.Diagram_SetSnapToGrid(*args, **kwargs)
3910
3911 def ShowAll(*args, **kwargs):
3912 """ShowAll(self, bool show)"""
3913 return _ogl.Diagram_ShowAll(*args, **kwargs)
3914
3915 def Snap(*args, **kwargs):
3916 """Snap(self, double INOUT, double INOUT)"""
3917 return _ogl.Diagram_Snap(*args, **kwargs)
3918
3919
3920 class DiagramPtr(Diagram):
3921 def __init__(self, this):
3922 self.this = this
3923 if not hasattr(self,"thisown"): self.thisown = 0
3924 self.__class__ = Diagram
3925 _ogl.Diagram_swigregister(DiagramPtr)
3926
3927 class PyShapeCanvas(_windows.ScrolledWindow):
3928 """Proxy of C++ PyShapeCanvas class"""
3929 def __repr__(self):
3930 return "<%s.%s; proxy of C++ wxPyShapeCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3931 def __init__(self, *args, **kwargs):
3932 """
3933 __init__(self, Window parent=None, int id=-1, Point pos=DefaultPosition,
3934 Size size=DefaultSize, long style=BORDER,
3935 String name=wxPyShapeCanvasNameStr) -> PyShapeCanvas
3936 """
3937 newobj = _ogl.new_PyShapeCanvas(*args, **kwargs)
3938 self.this = newobj.this
3939 self.thisown = 1
3940 del newobj.thisown
3941 self._setOORandCallbackInfo(PyShapeCanvas)
3942
3943 def _setCallbackInfo(*args, **kwargs):
3944 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3945 return _ogl.PyShapeCanvas__setCallbackInfo(*args, **kwargs)
3946
3947 def _setOORandCallbackInfo(self, _class):
3948 self._setOORInfo(self)
3949 self._setCallbackInfo(self, _class)
3950
3951 def AddShape(*args, **kwargs):
3952 """AddShape(self, PyShape shape, PyShape addAfter=None)"""
3953 return _ogl.PyShapeCanvas_AddShape(*args, **kwargs)
3954
3955 def FindShape(*args, **kwargs):
3956 """
3957 FindShape(self, double x1, double y, int OUTPUT, wxClassInfo info=None,
3958 PyShape notImage=None) -> PyShape
3959 """
3960 return _ogl.PyShapeCanvas_FindShape(*args, **kwargs)
3961
3962 def FindFirstSensitiveShape(*args, **kwargs):
3963 """FindFirstSensitiveShape(self, double x1, double y, int OUTPUT, int op) -> PyShape"""
3964 return _ogl.PyShapeCanvas_FindFirstSensitiveShape(*args, **kwargs)
3965
3966 def GetDiagram(*args, **kwargs):
3967 """GetDiagram(self) -> Diagram"""
3968 return _ogl.PyShapeCanvas_GetDiagram(*args, **kwargs)
3969
3970 def GetQuickEditMode(*args, **kwargs):
3971 """GetQuickEditMode(self) -> bool"""
3972 return _ogl.PyShapeCanvas_GetQuickEditMode(*args, **kwargs)
3973
3974 def InsertShape(*args, **kwargs):
3975 """InsertShape(self, PyShape shape)"""
3976 return _ogl.PyShapeCanvas_InsertShape(*args, **kwargs)
3977
3978 def base_OnBeginDragLeft(*args, **kwargs):
3979 """base_OnBeginDragLeft(self, double x, double y, int keys=0)"""
3980 return _ogl.PyShapeCanvas_base_OnBeginDragLeft(*args, **kwargs)
3981
3982 def base_OnBeginDragRight(*args, **kwargs):
3983 """base_OnBeginDragRight(self, double x, double y, int keys=0)"""
3984 return _ogl.PyShapeCanvas_base_OnBeginDragRight(*args, **kwargs)
3985
3986 def base_OnEndDragLeft(*args, **kwargs):
3987 """base_OnEndDragLeft(self, double x, double y, int keys=0)"""
3988 return _ogl.PyShapeCanvas_base_OnEndDragLeft(*args, **kwargs)
3989
3990 def base_OnEndDragRight(*args, **kwargs):
3991 """base_OnEndDragRight(self, double x, double y, int keys=0)"""
3992 return _ogl.PyShapeCanvas_base_OnEndDragRight(*args, **kwargs)
3993
3994 def base_OnDragLeft(*args, **kwargs):
3995 """base_OnDragLeft(self, bool draw, double x, double y, int keys=0)"""
3996 return _ogl.PyShapeCanvas_base_OnDragLeft(*args, **kwargs)
3997
3998 def base_OnDragRight(*args, **kwargs):
3999 """base_OnDragRight(self, bool draw, double x, double y, int keys=0)"""
4000 return _ogl.PyShapeCanvas_base_OnDragRight(*args, **kwargs)
4001
4002 def base_OnLeftClick(*args, **kwargs):
4003 """base_OnLeftClick(self, double x, double y, int keys=0)"""
4004 return _ogl.PyShapeCanvas_base_OnLeftClick(*args, **kwargs)
4005
4006 def base_OnRightClick(*args, **kwargs):
4007 """base_OnRightClick(self, double x, double y, int keys=0)"""
4008 return _ogl.PyShapeCanvas_base_OnRightClick(*args, **kwargs)
4009
4010 def Redraw(*args, **kwargs):
4011 """Redraw(self, DC dc)"""
4012 return _ogl.PyShapeCanvas_Redraw(*args, **kwargs)
4013
4014 def RemoveShape(*args, **kwargs):
4015 """RemoveShape(self, PyShape shape)"""
4016 return _ogl.PyShapeCanvas_RemoveShape(*args, **kwargs)
4017
4018 def SetDiagram(*args, **kwargs):
4019 """SetDiagram(self, Diagram diagram)"""
4020 return _ogl.PyShapeCanvas_SetDiagram(*args, **kwargs)
4021
4022 def Snap(*args, **kwargs):
4023 """Snap(self, double INOUT, double INOUT)"""
4024 return _ogl.PyShapeCanvas_Snap(*args, **kwargs)
4025
4026 def GetShapeList(self):
4027 return self.GetDiagram().GetShapeList()
4028
4029
4030 class PyShapeCanvasPtr(PyShapeCanvas):
4031 def __init__(self, this):
4032 self.this = this
4033 if not hasattr(self,"thisown"): self.thisown = 0
4034 self.__class__ = PyShapeCanvas
4035 _ogl.PyShapeCanvas_swigregister(PyShapeCanvasPtr)
4036
4037 # Aliases
4038 ShapeCanvas = PyShapeCanvas
4039 ShapeEvtHandler = PyShapeEvtHandler
4040 Shape = PyShape
4041 RectangleShape = PyRectangleShape
4042 BitmapShape = PyBitmapShape
4043 DrawnShape = PyDrawnShape
4044 CompositeShape = PyCompositeShape
4045 DividedShape = PyDividedShape
4046 DivisionShape = PyDivisionShape
4047 EllipseShape = PyEllipseShape
4048 CircleShape = PyCircleShape
4049 LineShape = PyLineShape
4050 PolygonShape = PyPolygonShape
4051 TextShape = PyTextShape
4052 ControlPoint = PyControlPoint
4053
4054 KEY_SHIFT = _ogl.KEY_SHIFT
4055 KEY_CTRL = _ogl.KEY_CTRL
4056 ARROW_NONE = _ogl.ARROW_NONE
4057 ARROW_END = _ogl.ARROW_END
4058 ARROW_BOTH = _ogl.ARROW_BOTH
4059 ARROW_MIDDLE = _ogl.ARROW_MIDDLE
4060 ARROW_START = _ogl.ARROW_START
4061 ARROW_HOLLOW_CIRCLE = _ogl.ARROW_HOLLOW_CIRCLE
4062 ARROW_FILLED_CIRCLE = _ogl.ARROW_FILLED_CIRCLE
4063 ARROW_ARROW = _ogl.ARROW_ARROW
4064 ARROW_SINGLE_OBLIQUE = _ogl.ARROW_SINGLE_OBLIQUE
4065 ARROW_DOUBLE_OBLIQUE = _ogl.ARROW_DOUBLE_OBLIQUE
4066 ARROW_METAFILE = _ogl.ARROW_METAFILE
4067 ARROW_POSITION_END = _ogl.ARROW_POSITION_END
4068 ARROW_POSITION_START = _ogl.ARROW_POSITION_START
4069 CONTROL_POINT_VERTICAL = _ogl.CONTROL_POINT_VERTICAL
4070 CONTROL_POINT_HORIZONTAL = _ogl.CONTROL_POINT_HORIZONTAL
4071 CONTROL_POINT_DIAGONAL = _ogl.CONTROL_POINT_DIAGONAL
4072 CONTROL_POINT_ENDPOINT_TO = _ogl.CONTROL_POINT_ENDPOINT_TO
4073 CONTROL_POINT_ENDPOINT_FROM = _ogl.CONTROL_POINT_ENDPOINT_FROM
4074 CONTROL_POINT_LINE = _ogl.CONTROL_POINT_LINE
4075 FORMAT_NONE = _ogl.FORMAT_NONE
4076 FORMAT_CENTRE_HORIZ = _ogl.FORMAT_CENTRE_HORIZ
4077 FORMAT_CENTRE_VERT = _ogl.FORMAT_CENTRE_VERT
4078 FORMAT_SIZE_TO_CONTENTS = _ogl.FORMAT_SIZE_TO_CONTENTS
4079 LINE_ALIGNMENT_HORIZ = _ogl.LINE_ALIGNMENT_HORIZ
4080 LINE_ALIGNMENT_VERT = _ogl.LINE_ALIGNMENT_VERT
4081 LINE_ALIGNMENT_TO_NEXT_HANDLE = _ogl.LINE_ALIGNMENT_TO_NEXT_HANDLE
4082 LINE_ALIGNMENT_NONE = _ogl.LINE_ALIGNMENT_NONE
4083 SHADOW_NONE = _ogl.SHADOW_NONE
4084 SHADOW_LEFT = _ogl.SHADOW_LEFT
4085 SHADOW_RIGHT = _ogl.SHADOW_RIGHT
4086 OP_CLICK_LEFT = _ogl.OP_CLICK_LEFT
4087 OP_CLICK_RIGHT = _ogl.OP_CLICK_RIGHT
4088 OP_DRAG_LEFT = _ogl.OP_DRAG_LEFT
4089 OP_DRAG_RIGHT = _ogl.OP_DRAG_RIGHT
4090 OP_ALL = _ogl.OP_ALL
4091 ATTACHMENT_MODE_NONE = _ogl.ATTACHMENT_MODE_NONE
4092 ATTACHMENT_MODE_EDGE = _ogl.ATTACHMENT_MODE_EDGE
4093 ATTACHMENT_MODE_BRANCHING = _ogl.ATTACHMENT_MODE_BRANCHING
4094 BRANCHING_ATTACHMENT_NORMAL = _ogl.BRANCHING_ATTACHMENT_NORMAL
4095 BRANCHING_ATTACHMENT_BLOB = _ogl.BRANCHING_ATTACHMENT_BLOB
4096 gyCONSTRAINT_CENTRED_VERTICALLY = _ogl.gyCONSTRAINT_CENTRED_VERTICALLY
4097 gyCONSTRAINT_CENTRED_HORIZONTALLY = _ogl.gyCONSTRAINT_CENTRED_HORIZONTALLY
4098 gyCONSTRAINT_CENTRED_BOTH = _ogl.gyCONSTRAINT_CENTRED_BOTH
4099 gyCONSTRAINT_LEFT_OF = _ogl.gyCONSTRAINT_LEFT_OF
4100 gyCONSTRAINT_RIGHT_OF = _ogl.gyCONSTRAINT_RIGHT_OF
4101 gyCONSTRAINT_ABOVE = _ogl.gyCONSTRAINT_ABOVE
4102 gyCONSTRAINT_BELOW = _ogl.gyCONSTRAINT_BELOW
4103 gyCONSTRAINT_ALIGNED_TOP = _ogl.gyCONSTRAINT_ALIGNED_TOP
4104 gyCONSTRAINT_ALIGNED_BOTTOM = _ogl.gyCONSTRAINT_ALIGNED_BOTTOM
4105 gyCONSTRAINT_ALIGNED_LEFT = _ogl.gyCONSTRAINT_ALIGNED_LEFT
4106 gyCONSTRAINT_ALIGNED_RIGHT = _ogl.gyCONSTRAINT_ALIGNED_RIGHT
4107 gyCONSTRAINT_MIDALIGNED_TOP = _ogl.gyCONSTRAINT_MIDALIGNED_TOP
4108 gyCONSTRAINT_MIDALIGNED_BOTTOM = _ogl.gyCONSTRAINT_MIDALIGNED_BOTTOM
4109 gyCONSTRAINT_MIDALIGNED_LEFT = _ogl.gyCONSTRAINT_MIDALIGNED_LEFT
4110 gyCONSTRAINT_MIDALIGNED_RIGHT = _ogl.gyCONSTRAINT_MIDALIGNED_RIGHT
4111 DIVISION_SIDE_NONE = _ogl.DIVISION_SIDE_NONE
4112 DIVISION_SIDE_LEFT = _ogl.DIVISION_SIDE_LEFT
4113 DIVISION_SIDE_TOP = _ogl.DIVISION_SIDE_TOP
4114 DIVISION_SIDE_RIGHT = _ogl.DIVISION_SIDE_RIGHT
4115 DIVISION_SIDE_BOTTOM = _ogl.DIVISION_SIDE_BOTTOM
4116
4117 def OGLInitialize(*args, **kwargs):
4118 """OGLInitialize()"""
4119 return _ogl.OGLInitialize(*args, **kwargs)
4120
4121 def OGLCleanUp(*args, **kwargs):
4122 """OGLCleanUp()"""
4123 return _ogl.OGLCleanUp(*args, **kwargs)
4124