OpenGLContext.dragwatcher
index
p:\openglcontext\dragwatcher.py

Semantics for fractional and absolute dragging

 
Classes
            
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 and non-method functions defined here:
__dict__ = <dict-proxy object at 0x071FEAC0>
__doc__ = 'Class providing semantics for fractional and abs...ion of the distance to the edges of the window.\n\t'
__module__ = 'OpenGLContext.dragwatcher'
__weakref__ = <member '__weakref__' of 'DragWatcher' objects>

Methods inherited from object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object at 0x1E0BD978>
T.__new__(S, ...) -> a new object with type S, a subtype of T