pub trait GestureDragExt: 'static {
fn offset(&self) -> Option<(f64, f64)>;
fn start_point(&self) -> Option<(f64, f64)>;
fn connect_drag_begin<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_drag_end<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_drag_update<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Gets the offset from the start point.
If the @self is active, this function returns true
and
fills in @x and @y with the coordinates of the current point,
as an offset to the starting drag point.
true
if the gesture is active
X offset for the current point
Y offset for the current point
Gets the point where the drag started.
If the @self is active, this function returns true
and fills in @x and @y with the drag start coordinates,
in widget-relative coordinates.
true
if the gesture is active
X coordinate for the drag start point
Y coordinate for the drag start point
Emitted whenever dragging starts.
X coordinate, relative to the widget allocation
Y coordinate, relative to the widget allocation
Emitted whenever the dragging is finished.
X offset, relative to the start point
Y offset, relative to the start point
Emitted whenever the dragging point moves.
X offset, relative to the start point
Y offset, relative to the start point