[][src]Struct qt_core::GestureType

#[repr(transparent)]
pub struct GestureType(_);

This enum type describes the standard gestures.

C++ enum: Qt::GestureType.

C++ documentation:

This enum type describes the standard gestures.

User-defined gestures are registered with the QGestureRecognizer::registerRecognizer() function which generates a custom gesture ID with the Qt::CustomGesture flag set.

This enum was introduced or modified in Qt 4.6.

See also QGesture, QWidget::grabGesture(), and QGraphicsObject::grabGesture().

Methods

impl GestureType[src]

pub fn to_int(&self) -> c_int[src]

impl GestureType[src]

pub const TapGesture: GestureType[src]

A Tap gesture. (C++ enum variant: TapGesture = 1)

pub const TapAndHoldGesture: GestureType[src]

A Tap-And-Hold (Long-Tap) gesture. (C++ enum variant: TapAndHoldGesture = 2)

pub const PanGesture: GestureType[src]

A Pan gesture. (C++ enum variant: PanGesture = 3)

pub const PinchGesture: GestureType[src]

A Pinch gesture. (C++ enum variant: PinchGesture = 4)

pub const SwipeGesture: GestureType[src]

A Swipe gesture. (C++ enum variant: SwipeGesture = 5)

pub const CustomGesture: GestureType[src]

A flag that can be used to test if the gesture is a user-defined gesture ID. (C++ enum variant: CustomGesture = 256)

pub const LastGestureType: GestureType[src]

C++ enum variant: LastGestureType = -1

Trait Implementations

impl Clone for GestureType[src]

impl Copy for GestureType[src]

impl Debug for GestureType[src]

impl Eq for GestureType[src]

impl From<GestureType> for c_int[src]

impl From<i32> for GestureType[src]

impl PartialEq<GestureType> for GestureType[src]

impl StructuralEq for GestureType[src]

impl StructuralPartialEq for GestureType[src]

Auto Trait Implementations

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<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.