wx.lib.ogl.basic.ShapeEvtHandler¶
The ShapeEvtHandler
class.
Class Hierarchy¶
Known Subclasses¶
Methods Summary¶
Default class constructor. |
|
Get previous event handler. |
|
Get associated shape. |
|
The begin drag left handler. |
|
The begin drag right handler. |
|
not implemented??? |
|
The change attachment handler. |
|
The delete handler. |
|
The drag left handler. |
|
The drag right handler. |
|
The draw handler. |
|
The draw branches handler. |
|
The draw contents handler. |
|
The draw control points handler. |
|
The drag outline handler. |
|
The end drag left handler. |
|
The end drag right handler. |
|
not implemented??? |
|
The erase handler. |
|
The erase contents handler. |
|
The erase control points handler. |
|
The highlight handler. |
|
The left click handler. |
|
The left double click handler. |
|
The move link handler. |
|
The move links handler. |
|
The post move handler. |
|
The pre move handler. |
|
The right click handler. |
|
The size handler. |
|
The sizing begin drag left handler. |
|
The sizing drag left handler. |
|
The sizing end drag left handler. |
|
Set previous event handler. |
|
Set associated shape |
Class API¶
- class ShapeEvtHandler(object)¶
The
ShapeEvtHandler
class.
Methods¶
- __init__(self, prev=None, shape=None)¶
Default class constructor.
- Parameters:
pref – the previous event handler, an instance of
ShapeEvtHandler
???shape – the shape, an instance of
Shape
- GetPreviousHandler(self)¶
Get previous event handler.
- GetShape(self)¶
Get associated shape.
- OnBeginDragLeft(self, x, y, keys=0, attachment=0)¶
The begin drag left handler.
- OnBeginDragRight(self, x, y, keys=0, attachment=0)¶
The begin drag right handler.
- OnBeginSize(self, w, h)¶
not implemented???
- OnChangeAttachment(self, attachment, line, ordering)¶
The change attachment handler.
- OnDelete(self)¶
The delete handler.
- OnDragLeft(self, draw, x, y, keys=0, attachment=0)¶
The drag left handler.
- OnDragRight(self, draw, x, y, keys=0, attachment=0)¶
The drag right handler.
- OnDraw(self, dc)¶
The draw handler.
- OnDrawBranches(self, dc, erase=False)¶
The draw branches handler.
- OnDrawContents(self, dc)¶
The draw contents handler.
- OnDrawControlPoints(self, dc)¶
The draw control points handler.
- OnDrawOutline(self, dc, x, y, w, h)¶
The drag outline handler.
- OnEndDragLeft(self, x, y, keys=0, attachment=0)¶
The end drag left handler.
- OnEndDragRight(self, x, y, keys=0, attachment=0)¶
The end drag right handler.
- OnEndSize(self, w, h)¶
not implemented???
- OnErase(self, dc)¶
The erase handler.
- OnEraseContents(self, dc)¶
The erase contents handler.
- OnEraseControlPoints(self, dc)¶
The erase control points handler.
- OnHighlight(self, dc)¶
The highlight handler.
- OnLeftClick(self, x, y, keys, attachment)¶
The left click handler.
- OnLeftDoubleClick(self, x, y, keys=0, attachment=0)¶
The left double click handler.
- OnMoveLink(self, dc, moveControlPoints=True)¶
The move link handler.
- OnMoveLinks(self, dc)¶
The move links handler.
- OnMovePost(self, dc, x, y, old_x, old_y, display=True)¶
The post move handler.
- OnMovePre(self, dc, x, y, old_x, old_y, display=True)¶
The pre move handler.
- OnRightClick(self, x, y, keys=0, attachment=0)¶
The right click handler.
- OnSize(self, x, y)¶
The size handler.
- OnSizingBeginDragLeft(self, pt, x, y, keys=0, attachment=0)¶
The sizing begin drag left handler.
- OnSizingDragLeft(self, pt, draw, x, y, keys=0, attachment=0)¶
The sizing drag left handler.
- OnSizingEndDragLeft(self, pt, x, y, keys=0, attachment=0)¶
The sizing end drag left handler.
- SetPreviousHandler(self, handler)¶
Set previous event handler.
- Parameters:
handler – the previous handler, an instance of
ShapeEvtHandler
???