[−][src]Trait gtk::GestureDragExt
Required methods
fn get_offset(&self) -> Option<(f64, f64)>
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.
x
X offset for the current point
y
Y offset for the current point
Returns
true
if the gesture is active
fn get_start_point(&self) -> Option<(f64, f64)>
If the self
is active, this function returns true
and fills in x
and y
with the drag start coordinates,
in window-relative coordinates.
x
X coordinate for the drag start point
y
Y coordinate for the drag start point
Returns
true
if the gesture is active
fn connect_drag_begin<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
This signal is emitted whenever dragging starts.
start_x
X coordinate, relative to the widget allocation
start_y
Y coordinate, relative to the widget allocation
fn connect_drag_end<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
This signal is emitted whenever the dragging is finished.
offset_x
X offset, relative to the start point
offset_y
Y offset, relative to the start point
fn connect_drag_update<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<GestureDrag>> GestureDragExt for O
[src]
fn get_offset(&self) -> Option<(f64, f64)>
[src]
fn get_start_point(&self) -> Option<(f64, f64)>
[src]
fn connect_drag_begin<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_drag_end<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_drag_update<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId