Struct qt_core::ScrollPhase
source · pub struct ScrollPhase(/* private fields */);
Expand description
This enum describes the phase of scrolling.
C++ enum: Qt::ScrollPhase
.
This enum describes the phase of scrolling.
This enum was introduced or modified in Qt 5.2.
Implementations§
source§impl ScrollPhase
impl ScrollPhase
sourcepub const NoScrollPhase: ScrollPhase = _
pub const NoScrollPhase: ScrollPhase = _
The input device doesn’t support scroll phase. This value was introduced in Qt 5.7. (C++ enum variant: NoScrollPhase = 0
)
sourcepub const ScrollBegin: ScrollPhase = _
pub const ScrollBegin: ScrollPhase = _
Scrolling is about to begin, but the scrolling distance did not yet change. (C++ enum variant: ScrollBegin = 1
)
sourcepub const ScrollUpdate: ScrollPhase = _
pub const ScrollUpdate: ScrollPhase = _
The scrolling distance has changed (default). (C++ enum variant: ScrollUpdate = 2
)
sourcepub const ScrollEnd: ScrollPhase = _
pub const ScrollEnd: ScrollPhase = _
Scrolling has ended, but the scrolling distance did not change anymore. (C++ enum variant: ScrollEnd = 3
)
sourcepub const ScrollMomentum: ScrollPhase = _
pub const ScrollMomentum: ScrollPhase = _
The user no longer touches the input device, but scrolling continues due to scroll momentum. This value was introduced in Qt 5.12. (C++ enum variant: ScrollMomentum = 4
)
Trait Implementations§
source§impl Clone for ScrollPhase
impl Clone for ScrollPhase
source§fn clone(&self) -> ScrollPhase
fn clone(&self) -> ScrollPhase
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 ScrollPhase
impl Debug for ScrollPhase
source§impl From<ScrollPhase> for c_int
impl From<ScrollPhase> for c_int
source§fn from(value: ScrollPhase) -> Self
fn from(value: ScrollPhase) -> Self
Converts to this type from the input type.
source§impl From<i32> for ScrollPhase
impl From<i32> for ScrollPhase
source§impl PartialEq for ScrollPhase
impl PartialEq for ScrollPhase
source§fn eq(&self, other: &ScrollPhase) -> bool
fn eq(&self, other: &ScrollPhase) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScrollPhase
impl Eq for ScrollPhase
impl StructuralEq for ScrollPhase
impl StructuralPartialEq for ScrollPhase
Auto Trait Implementations§
impl RefUnwindSafe for ScrollPhase
impl Send for ScrollPhase
impl Sync for ScrollPhase
impl Unpin for ScrollPhase
impl UnwindSafe for ScrollPhase
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