pub struct TapAction(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Ord for TapAction
impl Ord for TapAction
Source§impl<T: ObjectType> PartialEq<T> for TapAction
impl<T: ObjectType> PartialEq<T> for TapAction
Source§impl<T: ObjectType> PartialOrd<T> for TapAction
impl<T: ObjectType> PartialOrd<T> for TapAction
Source§impl StaticType for TapAction
impl StaticType for TapAction
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for TapAction
impl IsA<Action> for TapAction
impl IsA<ActorMeta> for TapAction
impl IsA<GestureAction> for TapAction
impl IsA<InitiallyUnowned> for TapAction
Auto Trait Implementations§
impl Freeze for TapAction
impl RefUnwindSafe for TapAction
impl !Send for TapAction
impl !Sync for TapAction
impl Unpin for TapAction
impl UnwindSafe for TapAction
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> TapActionExt for O
impl<O> TapActionExt for O
Source§fn connect_tap<F>(&self, f: F) -> SignalHandlerId
fn connect_tap<F>(&self, f: F) -> SignalHandlerId
The ::tap signal is emitted when the tap gesture is complete. Read more