Objects that represents a (potential) drag.
Determines if the drag operations should be started or not.
Determines if the drag operations should be started or not. The default behavior is to wait until the mouse is dragged by around four pixels. Sub-classes may override this, for example to have the drag start immediately without threshold.
true
if the parameter data signalize that a drag has started,
false
if it is not (yet) sufficient.
A mixin trait for region-like track tools that enables updates during mouse dragging. It adds an internal class
Drag
that embodies that dragging state (initial and current positions). Dragging is useful for all parameters that can be continuously changed such as region position but also region gain. It does not necessarily mean that regions are moved. In other words, whenever themouseDragged
event causes a meaningful change in the editing state.Custom data can be added by the sub-class by specifying the type member
Initial
.All the sub-class must do is call
new Drag
and provide the body of methoddragToParam
.