Struct qt_core::TouchPointState
source · pub struct TouchPointState(/* private fields */);
Expand description
This enum represents the state of a touch point at the time a QTouchEvent occurred.
C++ enum: Qt::TouchPointState
.
This enum represents the state of a touch point at the time a QTouchEvent occurred.
This enum was introduced or modified in Qt 4.6.
The TouchPointStates type is a typedef for QFlags<TouchPointState>. It stores an OR combination of TouchPointState values.
Implementations§
source§impl TouchPointState
impl TouchPointState
sourcepub const TouchPointPressed: TouchPointState = _
pub const TouchPointPressed: TouchPointState = _
The touch point is now pressed. (C++ enum variant: TouchPointPressed = 1
)
sourcepub const TouchPointMoved: TouchPointState = _
pub const TouchPointMoved: TouchPointState = _
The touch point moved. (C++ enum variant: TouchPointMoved = 2
)
sourcepub const TouchPointStationary: TouchPointState = _
pub const TouchPointStationary: TouchPointState = _
The touch point did not move. (C++ enum variant: TouchPointStationary = 4
)
sourcepub const TouchPointReleased: TouchPointState = _
pub const TouchPointReleased: TouchPointState = _
The touch point was released. (C++ enum variant: TouchPointReleased = 8
)
Trait Implementations§
source§impl<T: Into<QFlags<TouchPointState>>> BitOr<T> for TouchPointState
impl<T: Into<QFlags<TouchPointState>>> BitOr<T> for TouchPointState
§type Output = QFlags<TouchPointState>
type Output = QFlags<TouchPointState>
The resulting type after applying the
|
operator.source§impl Clone for TouchPointState
impl Clone for TouchPointState
source§fn clone(&self) -> TouchPointState
fn clone(&self) -> TouchPointState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TouchPointState
impl Debug for TouchPointState
source§impl From<TouchPointState> for QFlags<TouchPointState>
impl From<TouchPointState> for QFlags<TouchPointState>
source§fn from(value: TouchPointState) -> Self
fn from(value: TouchPointState) -> Self
Converts to this type from the input type.
source§impl From<TouchPointState> for c_int
impl From<TouchPointState> for c_int
source§fn from(value: TouchPointState) -> Self
fn from(value: TouchPointState) -> Self
Converts to this type from the input type.
source§impl From<i32> for TouchPointState
impl From<i32> for TouchPointState
source§impl PartialEq for TouchPointState
impl PartialEq for TouchPointState
source§fn eq(&self, other: &TouchPointState) -> bool
fn eq(&self, other: &TouchPointState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TouchPointState
impl Eq for TouchPointState
impl StructuralEq for TouchPointState
impl StructuralPartialEq for TouchPointState
Auto Trait Implementations§
impl RefUnwindSafe for TouchPointState
impl Send for TouchPointState
impl Sync for TouchPointState
impl Unpin for TouchPointState
impl UnwindSafe for TouchPointState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more