[][src]Struct qt_widgets::q_swipe_gesture::SwipeDirection

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

This enum describes the possible directions for the gesture's motion along the horizontal and vertical axes.

C++ enum: QSwipeGesture::SwipeDirection.

C++ documentation:

This enum describes the possible directions for the gesture's motion along the horizontal and vertical axes.

Methods

impl SwipeDirection[src]

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

impl SwipeDirection[src]

pub const NoDirection: SwipeDirection[src]

The gesture had no motion associated with it on a particular axis. (C++ enum variant: NoDirection = 0)

pub const Left: SwipeDirection[src]

The gesture involved a horizontal motion to the left. (C++ enum variant: Left = 1)

pub const Right: SwipeDirection[src]

The gesture involved a horizontal motion to the right. (C++ enum variant: Right = 2)

pub const Up: SwipeDirection[src]

The gesture involved an upward vertical motion. (C++ enum variant: Up = 3)

pub const Down: SwipeDirection[src]

The gesture involved a downward vertical motion. (C++ enum variant: Down = 4)

Trait Implementations

impl Clone for SwipeDirection[src]

impl Copy for SwipeDirection[src]

impl Debug for SwipeDirection[src]

impl Eq for SwipeDirection[src]

impl From<SwipeDirection> for c_int[src]

impl From<i32> for SwipeDirection[src]

impl PartialEq<SwipeDirection> for SwipeDirection[src]

impl StructuralEq for SwipeDirection[src]

impl StructuralPartialEq for SwipeDirection[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.