[]Struct gtk::GestureLongPress

pub struct GestureLongPress(_, _);

GestureLongPress is a Gesture implementation able to recognize long presses, triggering the GestureLongPress::pressed after the timeout is exceeded.

If the touchpoint is lifted before the timeout passes, or if it drifts too far of the initial press point, the GestureLongPress::cancelled signal will be emitted.

Implements

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

Implementations

impl GestureLongPress[src]

pub fn new<P: IsA<Widget>>(widget: &P) -> GestureLongPress[src]

Returns a newly created Gesture that recognizes long presses.

widget

a Widget

Returns

a newly created GestureLongPress

pub fn get_property_delay_factor(&self) -> f64[src]

pub fn set_property_delay_factor(&self, delay_factor: f64)[src]

pub fn connect_cancelled<F: Fn(&GestureLongPress) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

This signal is emitted whenever a press moved too far, or was released before GestureLongPress::pressed happened.

pub fn connect_pressed<F: Fn(&GestureLongPress, f64, f64) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

This signal is emitted whenever a press goes unmoved/unreleased longer than what the GTK+ defaults tell.

x

the X coordinate where the press happened, relative to the widget allocation

y

the Y coordinate where the press happened, relative to the widget allocation

pub fn connect_property_delay_factor_notify<F: Fn(&GestureLongPress) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Trait Implementations

impl Clone for GestureLongPress

impl Debug for GestureLongPress

impl Display for GestureLongPress[src]

impl Eq for GestureLongPress

impl Hash for GestureLongPress

impl IsA<EventController> for GestureLongPress

impl IsA<Gesture> for GestureLongPress

impl IsA<GestureSingle> for GestureLongPress

impl Ord for GestureLongPress

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

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

impl StaticType for GestureLongPress

Auto Trait Implementations

impl RefUnwindSafe for GestureLongPress

impl !Send for GestureLongPress

impl !Sync for GestureLongPress

impl Unpin for GestureLongPress

impl UnwindSafe for GestureLongPress

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.