Trait gtk4::prelude::GestureDragExt
source · pub trait GestureDragExt: IsA<GestureDrag> + Sealed + 'static {
// Provided methods
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
Provided Methods§
sourcefn offset(&self) -> Option<(f64, f64)>
fn offset(&self) -> Option<(f64, f64)>
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.
§Returns
true
if the gesture is active
§x
X offset for the current point
§y
Y offset for the current point
sourcefn start_point(&self) -> Option<(f64, f64)>
fn start_point(&self) -> Option<(f64, f64)>
sourcefn connect_drag_begin<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_drag_begin<F: Fn(&Self, f64, f64) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_drag_end<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_drag_end<F: Fn(&Self, f64, f64) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_drag_update<F: Fn(&Self, f64, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_drag_update<F: Fn(&Self, f64, f64) + 'static>( &self, f: F ) -> SignalHandlerId
Object Safety§
This trait is not object safe.