pub struct GestureDrag(/* private fields */);
Implementations§
Source§impl GestureDrag
impl GestureDrag
Trait Implementations§
Source§impl Clone for GestureDrag
impl Clone for GestureDrag
Source§fn clone(&self) -> GestureDrag
fn clone(&self) -> GestureDrag
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 GestureDrag
impl Debug for GestureDrag
Source§impl Display for GestureDrag
impl Display for GestureDrag
Source§impl Hash for GestureDrag
impl Hash for GestureDrag
Source§impl Ord for GestureDrag
impl Ord for GestureDrag
Source§fn cmp(&self, other: &GestureDrag) -> Ordering
fn cmp(&self, other: &GestureDrag) -> 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 GestureDrag
impl<T: ObjectType> PartialEq<T> for GestureDrag
Source§impl<T: ObjectType> PartialOrd<T> for GestureDrag
impl<T: ObjectType> PartialOrd<T> for GestureDrag
Source§impl StaticType for GestureDrag
impl StaticType for GestureDrag
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for GestureDrag
impl IsA<EventController> for GestureDrag
impl IsA<Gesture> for GestureDrag
impl IsA<GestureDrag> for GesturePan
impl IsA<GestureSingle> for GestureDrag
Auto Trait Implementations§
impl Freeze for GestureDrag
impl RefUnwindSafe for GestureDrag
impl !Send for GestureDrag
impl !Sync for GestureDrag
impl Unpin for GestureDrag
impl UnwindSafe for GestureDrag
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> GestureDragExt for Owhere
O: IsA<GestureDrag>,
impl<O> GestureDragExt for Owhere
O: IsA<GestureDrag>,
fn get_offset(&self) -> Option<(f64, f64)>
fn get_start_point(&self) -> Option<(f64, f64)>
fn connect_drag_begin<F>(&self, f: F) -> SignalHandlerId
fn connect_drag_end<F>(&self, f: F) -> SignalHandlerId
fn connect_drag_update<F>(&self, f: F) -> SignalHandlerId
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
.