OpenGLContext.move.dragwatcher
Semantics for fractional and absolute dragging
Classes
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.
__init__(
self
,
startX
,
startY
,
totalX
,
totalY
)
Initialise the DragWatcher
startX, startY -- initial coordinates for the drag
totalX, totalY -- overall dimensions of the context