[]Struct gtk::GestureSingle

pub struct GestureSingle(_, _);

GestureSingle is a subclass of Gesture, optimized (although not restricted) for dealing with mouse and single-touch gestures. Under interaction, these gestures stick to the first interacting sequence, which is accessible through GestureSingleExt::get_current_sequence while the gesture is being interacted with.

By default gestures react to both GDK_BUTTON_PRIMARY and touch events, GestureSingleExt::set_touch_only can be used to change the touch behavior. Callers may also specify a different mouse button number to interact with through GestureSingleExt::set_button, or react to any mouse button by setting 0. While the gesture is active, the button being currently pressed can be known through GestureSingleExt::get_current_button.

Implements

GestureSingleExt, GestureExt, EventControllerExt, glib::object::ObjectExt

Trait Implementations

impl Clone for GestureSingle

impl Debug for GestureSingle

impl Display for GestureSingle[src]

impl Eq for GestureSingle

impl Hash for GestureSingle

impl IsA<EventController> for GestureSingle

impl IsA<Gesture> for GestureSingle

impl IsA<GestureSingle> for GestureDrag

impl IsA<GestureSingle> for GestureLongPress

impl IsA<GestureSingle> for GestureMultiPress

impl IsA<GestureSingle> for GesturePan

impl IsA<GestureSingle> for GestureStylus

impl IsA<GestureSingle> for GestureSwipe

impl Ord for GestureSingle

impl<T: ObjectType> PartialEq<T> for GestureSingle

impl<T: ObjectType> PartialOrd<T> for GestureSingle

impl StaticType for GestureSingle

Auto Trait Implementations

impl RefUnwindSafe for GestureSingle

impl !Send for GestureSingle

impl !Sync for GestureSingle

impl Unpin for GestureSingle

impl UnwindSafe for GestureSingle

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.