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