phoenix_title wx.lib.ogl.basic.ShapeEvtHandler

The ShapeEvtHandler class.


class_hierarchy Class Hierarchy

Inheritance diagram for class ShapeEvtHandler:

sub_classes Known Subclasses

wx.lib.ogl.basic.Shape


method_summary Methods Summary

__init__

Default class constructor.

GetPreviousHandler

Get previous event handler.

GetShape

Get associated shape.

OnBeginDragLeft

The begin drag left handler.

OnBeginDragRight

The begin drag right handler.

OnBeginSize

not implemented???

OnChangeAttachment

The change attachment handler.

OnDelete

The delete handler.

OnDragLeft

The drag left handler.

OnDragRight

The drag right handler.

OnDraw

The draw handler.

OnDrawBranches

The draw branches handler.

OnDrawContents

The draw contents handler.

OnDrawControlPoints

The draw control points handler.

OnDrawOutline

The drag outline handler.

OnEndDragLeft

The end drag left handler.

OnEndDragRight

The end drag right handler.

OnEndSize

not implemented???

OnErase

The erase handler.

OnEraseContents

The erase contents handler.

OnEraseControlPoints

The erase control points handler.

OnHighlight

The highlight handler.

OnLeftClick

The left click handler.

OnLeftDoubleClick

The left double click handler.

OnMoveLink

The move link handler.

OnMoveLinks

The move links handler.

OnMovePost

The post move handler.

OnMovePre

The pre move handler.

OnRightClick

The right click handler.

OnSize

The size handler.

OnSizingBeginDragLeft

The sizing begin drag left handler.

OnSizingDragLeft

The sizing drag left handler.

OnSizingEndDragLeft

The sizing end drag left handler.

SetPreviousHandler

Set previous event handler.

SetShape

Set associated shape


api 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.



The move link handler.



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 ???



SetShape(self, sh)

Set associated shape

Parameters:

sh – the shape, an instance of Shape