[][src]Struct qt_widgets::q_gesture_recognizer::ResultFlag

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

This enum describes the result of the current event filtering step in a gesture recognizer state machine.

C++ enum: QGestureRecognizer::ResultFlag.

C++ documentation:

This enum describes the result of the current event filtering step in a gesture recognizer state machine.

The result consists of a state value (one of Ignore, MayBeGesture, TriggerGesture, FinishGesture, CancelGesture) and an optional hint (ConsumeEventHint).

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

See also QGestureRecognizer::recognize().

Methods

impl ResultFlag[src]

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

impl ResultFlag[src]

pub const Ignore: ResultFlag[src]

The event does not change the state of the recognizer. (C++ enum variant: Ignore = 1)

pub const MayBeGesture: ResultFlag[src]

The event changed the internal state of the recognizer, but it isn't clear yet if it is a gesture or not. The recognizer needs to filter more events to decide. Gesture recognizers in the MayBeGesture state may be reset automatically if they take too long to recognize gestures. (C++ enum variant: MayBeGesture = 2)

pub const TriggerGesture: ResultFlag[src]

The gesture has been triggered and the appropriate QGesture object will be delivered to the target as a part of a QGestureEvent. (C++ enum variant: TriggerGesture = 4)

pub const FinishGesture: ResultFlag[src]

The gesture has been finished successfully and the appropriate QGesture object will be delivered to the target as a part of a QGestureEvent. (C++ enum variant: FinishGesture = 8)

pub const CancelGesture: ResultFlag[src]

The event made it clear that it is not a gesture. If the gesture recognizer was in GestureTriggered state before, then the gesture is canceled and the appropriate QGesture object will be delivered to the target as a part of a QGestureEvent. (C++ enum variant: CancelGesture = 16)

pub const ResultStateMask: ResultFlag[src]

C++ enum variant: ResultState_Mask = 255

pub const ConsumeEventHint: ResultFlag[src]

This hint specifies that the gesture framework should consume the filtered event and not deliver it to the receiver. (C++ enum variant: ConsumeEventHint = 256)

pub const ResultHintMask: ResultFlag[src]

C++ enum variant: ResultHint_Mask = 65280

Trait Implementations

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

type Output = QFlags<ResultFlag>

The resulting type after applying the | operator.

impl Clone for ResultFlag[src]

impl Copy for ResultFlag[src]

impl Debug for ResultFlag[src]

impl Eq for ResultFlag[src]

impl From<ResultFlag> for c_int[src]

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

impl From<i32> for ResultFlag[src]

impl PartialEq<ResultFlag> for ResultFlag[src]

impl StructuralEq for ResultFlag[src]

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