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