Package libavg :: Module grabbable :: Class Grabbable

Class Grabbable

source code

Helper for multitouch object movement. Grabbable will add the well-known multitouch gestures to a node, i.e. moving with one finger, rotating, resizing and moving with 2 fingers. It also works with many more cursors/fingers, clustering them.

Instance Methods
 
__init__(self, node, source=3, maxSize=None, minSize=None, onResize=<function <lambda> at 0x950e9cc>, onDrop=<function <lambda> at 0x950ea04>, onStop=<function <lambda> at 0x950ea3c>, onAction=<function <lambda> at 0x950ea74>, onMotion=<function <lambda> at 0x950eaac>, onResetMotion=<function <lambda> at 0x950eae4>, onDragStart=<function <lambda> at 0x950eb1c>, initialDown=None, inertia=0.95, torque=0.95, moveNode=True) source code
 
delete(self) source code
 
getAngle(self) source code
 
getSpeed(self) source code
 
isDragging(self) source code