pub struct GestureLongPress(/* private fields */);
Implementations§
Source§impl GestureLongPress
impl GestureLongPress
pub fn new<P: IsA<Widget>>(widget: &P) -> GestureLongPress
pub fn get_property_delay_factor(&self) -> f64
pub fn set_property_delay_factor(&self, delay_factor: f64)
pub fn connect_cancelled<F: Fn(&GestureLongPress) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_pressed<F: Fn(&GestureLongPress, f64, f64) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_delay_factor_notify<F: Fn(&GestureLongPress) + 'static>( &self, f: F, ) -> SignalHandlerId
Trait Implementations§
Source§impl Clone for GestureLongPress
impl Clone for GestureLongPress
Source§fn clone(&self) -> GestureLongPress
fn clone(&self) -> GestureLongPress
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GestureLongPress
impl Debug for GestureLongPress
Source§impl Display for GestureLongPress
impl Display for GestureLongPress
Source§impl Hash for GestureLongPress
impl Hash for GestureLongPress
Source§impl Ord for GestureLongPress
impl Ord for GestureLongPress
Source§fn cmp(&self, other: &GestureLongPress) -> Ordering
fn cmp(&self, other: &GestureLongPress) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: ObjectType> PartialEq<T> for GestureLongPress
impl<T: ObjectType> PartialEq<T> for GestureLongPress
Source§impl<T: ObjectType> PartialOrd<T> for GestureLongPress
impl<T: ObjectType> PartialOrd<T> for GestureLongPress
Source§impl StaticType for GestureLongPress
impl StaticType for GestureLongPress
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for GestureLongPress
impl IsA<EventController> for GestureLongPress
impl IsA<Gesture> for GestureLongPress
impl IsA<GestureSingle> for GestureLongPress
Auto Trait Implementations§
impl Freeze for GestureLongPress
impl RefUnwindSafe for GestureLongPress
impl !Send for GestureLongPress
impl !Sync for GestureLongPress
impl Unpin for GestureLongPress
impl UnwindSafe for GestureLongPress
Blanket Implementations§
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<O> EventControllerExt for Owhere
O: IsA<EventController>,
impl<O> EventControllerExt for Owhere
O: IsA<EventController>,
fn get_propagation_phase(&self) -> PropagationPhase
fn get_widget(&self) -> Option<Widget>
fn handle_event(&self, event: &Event) -> bool
fn reset(&self)
fn set_propagation_phase(&self, phase: PropagationPhase)
fn connect_property_propagation_phase_notify<F>(&self, f: F) -> SignalHandlerId
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 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 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 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 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> GestureExt for O
impl<O> GestureExt for O
fn get_bounding_box(&self) -> Option<Rectangle>
fn get_bounding_box_center(&self) -> Option<(f64, f64)>
fn get_device(&self) -> Option<Device>
fn get_group(&self) -> Vec<Gesture>
fn get_last_event(&self, sequence: Option<&EventSequence>) -> Option<Event>
fn get_last_updated_sequence(&self) -> Option<EventSequence>
fn get_point(&self, sequence: Option<&EventSequence>) -> Option<(f64, f64)>
fn get_sequence_state(&self, sequence: &EventSequence) -> EventSequenceState
fn get_sequences(&self) -> Vec<EventSequence>
fn get_window(&self) -> Option<Window>
fn group<P>(&self, gesture: &P)
fn handles_sequence(&self, sequence: Option<&EventSequence>) -> bool
fn is_active(&self) -> bool
fn is_grouped_with<P>(&self, other: &P) -> bool
fn is_recognized(&self) -> bool
fn set_sequence_state( &self, sequence: &EventSequence, state: EventSequenceState, ) -> bool
fn set_state(&self, state: EventSequenceState) -> bool
fn set_window<P>(&self, window: Option<&P>)
fn ungroup(&self)
fn get_property_n_points(&self) -> u32
fn connect_begin<F>(&self, f: F) -> SignalHandlerId
fn connect_cancel<F>(&self, f: F) -> SignalHandlerId
fn connect_end<F>(&self, f: F) -> SignalHandlerId
fn connect_sequence_state_changed<F>(&self, f: F) -> SignalHandlerId
fn connect_update<F>(&self, f: F) -> SignalHandlerId
fn connect_property_window_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<O> GestureSingleExt for Owhere
O: IsA<GestureSingle>,
impl<O> GestureSingleExt for Owhere
O: IsA<GestureSingle>,
fn get_current_sequence(&self) -> Option<EventSequence>
fn get_exclusive(&self) -> bool
fn get_touch_only(&self) -> bool
fn set_exclusive(&self, exclusive: bool)
fn set_touch_only(&self, touch_only: bool)
fn connect_property_exclusive_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_touch_only_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
.