pub struct PanAction(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Ord for PanAction
impl Ord for PanAction
Source§impl<T: ObjectType> PartialEq<T> for PanAction
impl<T: ObjectType> PartialEq<T> for PanAction
Source§impl<T: ObjectType> PartialOrd<T> for PanAction
impl<T: ObjectType> PartialOrd<T> for PanAction
Source§impl StaticType for PanAction
impl StaticType for PanAction
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for PanAction
impl IsA<Action> for PanAction
impl IsA<ActorMeta> for PanAction
impl IsA<GestureAction> for PanAction
impl IsA<InitiallyUnowned> for PanAction
Auto Trait Implementations§
impl Freeze for PanAction
impl RefUnwindSafe for PanAction
impl !Send for PanAction
impl !Sync for PanAction
impl Unpin for PanAction
impl UnwindSafe for PanAction
Blanket Implementations§
Source§impl<O> ActorMetaExt for O
impl<O> ActorMetaExt for O
Source§fn get_enabled(&self) -> bool
fn get_enabled(&self) -> bool
Retrieves whether
self
is enabled Read moreSource§fn get_name(&self) -> Option<GString>
fn get_name(&self) -> Option<GString>
Retrieves the name set using
ActorMetaExt::set_name
Read moreSource§fn set_enabled(&self, is_enabled: bool)
fn set_enabled(&self, is_enabled: bool)
Sets whether
self
should be enabled or not Read morefn connect_property_actor_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_enabled_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_name_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<O> GestureActionExt for Owhere
O: IsA<GestureAction>,
impl<O> GestureActionExt for Owhere
O: IsA<GestureAction>,
Source§fn get_device(&self, point: u32) -> Option<InputDevice>
fn get_device(&self, point: u32) -> Option<InputDevice>
Retrieves the
InputDevice
of a touch point. Read moreSource§fn get_last_event(&self, point: u32) -> Option<Event>
fn get_last_event(&self, point: u32) -> Option<Event>
Retrieves a reference to the last
ClutterEvent
for a touch point. Call
clutter_event_copy
if you need to store the reference somewhere. Read moreSource§fn get_motion_coords(&self, point: u32) -> (f32, f32)
fn get_motion_coords(&self, point: u32) -> (f32, f32)
Retrieves the coordinates, in stage space, of the latest motion
event during the dragging. Read more
Source§fn get_motion_delta(&self, point: u32) -> (f32, f32, f32)
fn get_motion_delta(&self, point: u32) -> (f32, f32, f32)
Retrieves the incremental delta since the last motion event
during the dragging. Read more
Source§fn get_n_current_points(&self) -> u32
fn get_n_current_points(&self) -> u32
Retrieves the number of points currently active. Read more
Source§fn get_n_touch_points(&self) -> i32
fn get_n_touch_points(&self) -> i32
Retrieves the number of requested points to trigger the gesture. Read more
Source§fn get_press_coords(&self, point: u32) -> (f32, f32)
fn get_press_coords(&self, point: u32) -> (f32, f32)
Retrieves the coordinates, in stage space, of the press event
that started the dragging for a specific touch point. Read more
Source§fn get_release_coords(&self, point: u32) -> (f32, f32)
fn get_release_coords(&self, point: u32) -> (f32, f32)
Retrieves the coordinates, in stage space, where the touch point was
last released. Read more
Source§fn get_sequence(&self, point: u32) -> Option<EventSequence>
fn get_sequence(&self, point: u32) -> Option<EventSequence>
Retrieves the
EventSequence
of a touch point. Read moreSource§fn get_threshold_trigger_distance(&self) -> (f32, f32)
fn get_threshold_trigger_distance(&self) -> (f32, f32)
Retrieves the threshold trigger distance of the gesture
self
,
as set using GestureActionExt::set_threshold_trigger_distance
. Read moreSource§fn get_threshold_trigger_edge(&self) -> GestureTriggerEdge
fn get_threshold_trigger_edge(&self) -> GestureTriggerEdge
Retrieves the edge trigger of the gesture
self
, as set using
GestureActionExt::set_threshold_trigger_edge
. Read moreSource§fn get_velocity(&self, point: u32) -> (f32, f32, f32)
fn get_velocity(&self, point: u32) -> (f32, f32, f32)
Retrieves the velocity, in stage pixels per millisecond, of the
latest motion event during the dragging. Read more
Source§fn set_n_touch_points(&self, nb_points: i32)
fn set_n_touch_points(&self, nb_points: i32)
Sets the number of points needed to trigger the gesture. Read more
Source§fn set_threshold_trigger_distance(&self, x: f32, y: f32)
fn set_threshold_trigger_distance(&self, x: f32, y: f32)
Sets the threshold trigger distance for the gesture drag threshold, if any. Read more
Source§fn set_threshold_trigger_edge(&self, edge: GestureTriggerEdge)
fn set_threshold_trigger_edge(&self, edge: GestureTriggerEdge)
Sets the edge trigger for the gesture drag threshold, if any. Read more
Source§fn get_property_threshold_trigger_distance_x(&self) -> f32
fn get_property_threshold_trigger_distance_x(&self) -> f32
The horizontal trigger distance to be used by the action to either
emit the
GestureAction::gesture-begin
signal or to emit
the GestureAction::gesture-cancel
signal. Read moreSource§fn get_property_threshold_trigger_distance_y(&self) -> f32
fn get_property_threshold_trigger_distance_y(&self) -> f32
The vertical trigger distance to be used by the action to either
emit the
GestureAction::gesture-begin
signal or to emit
the GestureAction::gesture-cancel
signal. Read moreSource§fn connect_gesture_begin<F>(&self, f: F) -> SignalHandlerId
fn connect_gesture_begin<F>(&self, f: F) -> SignalHandlerId
The ::gesture_begin signal is emitted when the
Actor
to which
a GestureAction
has been applied starts receiving a gesture. Read moreSource§fn connect_gesture_cancel<F>(&self, f: F) -> SignalHandlerId
fn connect_gesture_cancel<F>(&self, f: F) -> SignalHandlerId
The ::gesture-cancel signal is emitted when the ongoing gesture gets
cancelled from the
GestureAction::gesture-progress
signal handler. Read moreSource§fn connect_gesture_end<F>(&self, f: F) -> SignalHandlerId
fn connect_gesture_end<F>(&self, f: F) -> SignalHandlerId
The ::gesture-end signal is emitted at the end of the gesture gesture,
when the pointer’s button is released Read more
Source§fn connect_gesture_progress<F>(&self, f: F) -> SignalHandlerId
fn connect_gesture_progress<F>(&self, f: F) -> SignalHandlerId
The ::gesture-progress signal is emitted for each motion event after
the
GestureAction::gesture-begin
signal has been emitted. Read morefn connect_property_n_touch_points_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.fn get_type(&self) -> Type
fn get_object_class(&self) -> &ObjectClass
fn set_properties( &self, property_values: &[(&str, &dyn ToValue)], ) -> Result<(), BoolError>
fn set_property<'a, N>( &self, property_name: N, value: &dyn ToValue, ) -> Result<(), BoolError>
fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError>
fn block_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn stop_signal_emission(&self, signal_name: &str)
fn disconnect(&self, handler_id: SignalHandlerId)
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
fn notify<'a, N>(&self, property_name: N)
fn notify_by_pspec(&self, pspec: &ParamSpec)
fn has_property<'a, N>(&self, property_name: N, type_: Option<Type>) -> bool
fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type>
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec>
fn list_properties(&self) -> Vec<ParamSpec>
fn connect<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
fn connect_local<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
unsafe fn connect_unsafe<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
fn emit<'a, N>( &self, signal_name: N, args: &[&dyn ToValue], ) -> Result<Option<Value>, BoolError>
fn downgrade(&self) -> WeakRef<T>
fn bind_property<'a, O, N, M>( &'a self, source_property: N, target: &'a O, target_property: M, ) -> BindingBuilder<'a>
fn ref_count(&self) -> u32
Source§impl<O> PanActionExt for O
impl<O> PanActionExt for O
Source§fn get_acceleration_factor(&self) -> f64
fn get_acceleration_factor(&self) -> f64
Retrieves the initial acceleration factor for interpolated ::pan events. Read more
Source§fn get_constrained_motion_delta(&self, point: u32) -> (f32, f32, f32)
fn get_constrained_motion_delta(&self, point: u32) -> (f32, f32, f32)
Retrieves the delta, in stage space, dependent on the current state
of the
PanAction
, and respecting the constraint specified by the
PanAction:pan-axis
property. Read moreSource§fn get_deceleration(&self) -> f64
fn get_deceleration(&self) -> f64
Retrieves the deceleration rate of interpolated ::pan events. Read more
Source§fn get_interpolate(&self) -> bool
fn get_interpolate(&self) -> bool
Checks if the action should emit ::pan events even after releasing
the pointer during a panning gesture, to emulate some kind of
kinetic inertia. Read more
Source§fn get_interpolated_coords(&self) -> (f32, f32)
fn get_interpolated_coords(&self) -> (f32, f32)
Retrieves the coordinates, in stage space, of the latest interpolated
event, analogous to
GestureActionExt::get_motion_coords
. Read moreSource§fn get_interpolated_delta(&self) -> (f32, f32, f32)
fn get_interpolated_delta(&self) -> (f32, f32, f32)
Retrieves the delta, in stage space, since the latest interpolated
event, analogous to
GestureActionExt::get_motion_delta
. Read moreSource§fn get_pan_axis(&self) -> PanAxis
fn get_pan_axis(&self) -> PanAxis
Retrieves the axis constraint set by
PanActionExt::set_pan_axis
Read moreSource§fn set_acceleration_factor(&self, factor: f64)
fn set_acceleration_factor(&self, factor: f64)
Factor applied to the momentum velocity at the time of releasing the
pointer when generating interpolated ::pan events. Read more
Source§fn set_deceleration(&self, rate: f64)
fn set_deceleration(&self, rate: f64)
Sets the deceleration rate of the interpolated ::pan events generated
after a pan gesture. This is approximately the value that the momentum
at the time of releasing the pointer is divided by every 60th of a second. Read more
Source§fn set_interpolate(&self, should_interpolate: bool)
fn set_interpolate(&self, should_interpolate: bool)
Sets whether the action should emit interpolated ::pan events
after the drag has ended, to emulate the gesture kinetic inertia. Read more
Source§fn set_pan_axis(&self, axis: PanAxis)
fn set_pan_axis(&self, axis: PanAxis)
Restricts the panning action to a specific axis Read more
Source§fn connect_pan<F>(&self, f: F) -> SignalHandlerId
fn connect_pan<F>(&self, f: F) -> SignalHandlerId
The ::pan signal is emitted to keep track of the motion during
a pan gesture.
is_interpolated
is set to true
during the
interpolation phase of the pan, after the drag has ended and
the :interpolate property was set to true
. Read moreSource§fn connect_pan_stopped<F>(&self, f: F) -> SignalHandlerId
fn connect_pan_stopped<F>(&self, f: F) -> SignalHandlerId
The ::pan-stopped signal is emitted at the end of the interpolation
phase of the pan action, only when :interpolate is set to
true
. Read more