pub struct GesturePan(/* private fields */);
Implementations§
Source§impl GesturePan
impl GesturePan
pub fn new<P: IsA<Widget>>(widget: &P, orientation: Orientation) -> GesturePan
pub fn get_orientation(&self) -> Orientation
pub fn set_orientation(&self, orientation: Orientation)
pub fn connect_pan<F: Fn(&GesturePan, PanDirection, f64) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_property_orientation_notify<F: Fn(&GesturePan) + 'static>( &self, f: F, ) -> SignalHandlerId
Trait Implementations§
Source§impl Clone for GesturePan
impl Clone for GesturePan
Source§fn clone(&self) -> GesturePan
fn clone(&self) -> GesturePan
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 GesturePan
impl Debug for GesturePan
Source§impl Display for GesturePan
impl Display for GesturePan
Source§impl Hash for GesturePan
impl Hash for GesturePan
Source§impl Ord for GesturePan
impl Ord for GesturePan
Source§fn cmp(&self, other: &GesturePan) -> Ordering
fn cmp(&self, other: &GesturePan) -> 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 GesturePan
impl<T: ObjectType> PartialEq<T> for GesturePan
Source§impl<T: ObjectType> PartialOrd<T> for GesturePan
impl<T: ObjectType> PartialOrd<T> for GesturePan
Source§impl StaticType for GesturePan
impl StaticType for GesturePan
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for GesturePan
impl IsA<EventController> for GesturePan
impl IsA<Gesture> for GesturePan
impl IsA<GestureDrag> for GesturePan
impl IsA<GestureSingle> for GesturePan
Auto Trait Implementations§
impl Freeze for GesturePan
impl RefUnwindSafe for GesturePan
impl !Send for GesturePan
impl !Sync for GesturePan
impl Unpin for GesturePan
impl UnwindSafe for GesturePan
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
.