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