Struct qt_core::GestureType
source · pub struct GestureType(/* private fields */);
Expand description
This enum type describes the standard gestures.
C++ enum: Qt::GestureType
.
This enum type describes the standard gestures.
User-defined gestures are registered with the QGestureRecognizer::registerRecognizer() function which generates a custom gesture ID with the Qt::CustomGesture flag set.
This enum was introduced or modified in Qt 4.6.
See also QGesture, QWidget::grabGesture(), and QGraphicsObject::grabGesture().
Implementations§
source§impl GestureType
impl GestureType
sourcepub const TapGesture: GestureType = _
pub const TapGesture: GestureType = _
A Tap gesture. (C++ enum variant: TapGesture = 1
)
sourcepub const TapAndHoldGesture: GestureType = _
pub const TapAndHoldGesture: GestureType = _
A Tap-And-Hold (Long-Tap) gesture. (C++ enum variant: TapAndHoldGesture = 2
)
sourcepub const PanGesture: GestureType = _
pub const PanGesture: GestureType = _
A Pan gesture. (C++ enum variant: PanGesture = 3
)
sourcepub const PinchGesture: GestureType = _
pub const PinchGesture: GestureType = _
A Pinch gesture. (C++ enum variant: PinchGesture = 4
)
sourcepub const SwipeGesture: GestureType = _
pub const SwipeGesture: GestureType = _
A Swipe gesture. (C++ enum variant: SwipeGesture = 5
)
sourcepub const CustomGesture: GestureType = _
pub const CustomGesture: GestureType = _
A flag that can be used to test if the gesture is a user-defined gesture ID. (C++ enum variant: CustomGesture = 256
)
sourcepub const LastGestureType: GestureType = _
pub const LastGestureType: GestureType = _
C++ enum variant: LastGestureType = -1
Trait Implementations§
source§impl Clone for GestureType
impl Clone for GestureType
source§fn clone(&self) -> GestureType
fn clone(&self) -> GestureType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GestureType
impl Debug for GestureType
source§impl From<GestureType> for c_int
impl From<GestureType> for c_int
source§fn from(value: GestureType) -> Self
fn from(value: GestureType) -> Self
source§impl From<i32> for GestureType
impl From<i32> for GestureType
source§impl PartialEq for GestureType
impl PartialEq for GestureType
source§fn eq(&self, other: &GestureType) -> bool
fn eq(&self, other: &GestureType) -> bool
self
and other
values to be equal, and is used
by ==
.