[−][src]Struct qt_widgets::q_gesture_recognizer::ResultFlag
This enum describes the result of the current event filtering step in a gesture recognizer state machine.
C++ enum: QGestureRecognizer::ResultFlag
.
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]
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.
fn bitor(self, rhs: T) -> QFlags<ResultFlag>
[src]
impl Clone for ResultFlag
[src]
fn clone(&self) -> ResultFlag
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ResultFlag
[src]
impl Debug for ResultFlag
[src]
impl Eq for ResultFlag
[src]
impl From<ResultFlag> for c_int
[src]
fn from(value: ResultFlag) -> Self
[src]
impl From<ResultFlag> for QFlags<ResultFlag>
[src]
fn from(value: ResultFlag) -> Self
[src]
impl From<i32> for ResultFlag
[src]
impl PartialEq<ResultFlag> for ResultFlag
[src]
fn eq(&self, other: &ResultFlag) -> bool
[src]
fn ne(&self, other: &ResultFlag) -> bool
[src]
impl StructuralEq for ResultFlag
[src]
impl StructuralPartialEq for ResultFlag
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResultFlag
impl Send for ResultFlag
impl Sync for ResultFlag
impl Unpin for ResultFlag
impl UnwindSafe for ResultFlag
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,