[][src]Struct qt_core::GestureFlag

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

This enum type describes additional flags that can be used when subscribing to a gesture.

C++ enum: Qt::GestureFlag.

C++ documentation:

This enum type describes additional flags that can be used when subscribing to a gesture.

This enum was introduced or modified in Qt 4.6.

The GestureFlags type is a typedef for QFlags<GestureFlag>. It stores an OR combination of GestureFlag values.

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

Methods

impl GestureFlag[src]

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

impl GestureFlag[src]

pub const DontStartGestureOnChildren: GestureFlag[src]

By default gestures can start on the widget or over any of its children. Use this flag to disable this and allow a gesture to start on the widget only. (C++ enum variant: DontStartGestureOnChildren = 1)

pub const ReceivePartialGestures: GestureFlag[src]

Allows any ignored gesture events to be propagated to parent widgets which have specified this hint. By default only gestures that are in the Qt::GestureStarted state are propagated and the widget always gets the full gesture sequence starting with a gesture in the Qt::GestureStarted state and ending with a gesture in the Qt::GestureFinished or Qt::GestureCanceled states. (C++ enum variant: ReceivePartialGestures = 2)

pub const IgnoredGesturesPropagateToParent: GestureFlag[src]

Since Qt 4.7, this flag allows you to fine-tune gesture event propagation. By setting the flag when grabbing a gesture all ignored partial gestures will propagate to their parent items. (C++ enum variant: IgnoredGesturesPropagateToParent = 4)

Trait Implementations

impl Eq for GestureFlag[src]

impl Clone for GestureFlag[src]

impl PartialEq<GestureFlag> for GestureFlag[src]

impl From<i32> for GestureFlag[src]

impl From<GestureFlag> for c_int[src]

impl From<GestureFlag> for QFlags<GestureFlag>[src]

impl Copy for GestureFlag[src]

impl<T: Into<QFlags<GestureFlag>>> BitOr<T> for GestureFlag[src]

type Output = QFlags<GestureFlag>

The resulting type after applying the | operator.

impl Debug for GestureFlag[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]