| |
- object
-
- DragWatcher
class DragWatcher(object) |
|
Class providing semantics for fractional and absolute dragging
With this class you can track the start position of a drag action
and query for both absolute distance dragged, and distance as a
fraction of the distance to the edges of the window. |
|
Methods defined here:
- __init__(self, startX, startY, totalX, totalY)
- Initialise the DragWatcher
startX, startY -- initial coordinates for the drag
totalX, totalY -- overall dimensions of the context
- distances(self, newX, newY)
- Calculate absolute distances from start point
newX, newY -- new selection point from which to calculate
- fractions(self, newX, newY)
- Calculate fractional delta from the start point
newX, newY -- new selection point from which to calculate
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |