Struct qt_core::GestureFlag
source · pub struct GestureFlag(/* private fields */);
Expand description
This enum type describes additional flags that can be used when subscribing to a gesture.
C++ enum: Qt::GestureFlag
.
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().
Implementations§
source§impl GestureFlag
impl GestureFlag
sourcepub const DontStartGestureOnChildren: GestureFlag = _
pub const DontStartGestureOnChildren: GestureFlag = _
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
)
sourcepub const ReceivePartialGestures: GestureFlag = _
pub const ReceivePartialGestures: GestureFlag = _
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
)
sourcepub const IgnoredGesturesPropagateToParent: GestureFlag = _
pub const IgnoredGesturesPropagateToParent: GestureFlag = _
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§
source§impl<T: Into<QFlags<GestureFlag>>> BitOr<T> for GestureFlag
impl<T: Into<QFlags<GestureFlag>>> BitOr<T> for GestureFlag
§type Output = QFlags<GestureFlag>
type Output = QFlags<GestureFlag>
|
operator.source§impl Clone for GestureFlag
impl Clone for GestureFlag
source§fn clone(&self) -> GestureFlag
fn clone(&self) -> GestureFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GestureFlag
impl Debug for GestureFlag
source§impl From<GestureFlag> for QFlags<GestureFlag>
impl From<GestureFlag> for QFlags<GestureFlag>
source§fn from(value: GestureFlag) -> Self
fn from(value: GestureFlag) -> Self
source§impl From<GestureFlag> for c_int
impl From<GestureFlag> for c_int
source§fn from(value: GestureFlag) -> Self
fn from(value: GestureFlag) -> Self
source§impl From<i32> for GestureFlag
impl From<i32> for GestureFlag
source§impl PartialEq for GestureFlag
impl PartialEq for GestureFlag
source§fn eq(&self, other: &GestureFlag) -> bool
fn eq(&self, other: &GestureFlag) -> bool
self
and other
values to be equal, and is used
by ==
.