Struct qt_gui::q_scroll_event::ScrollState
source · pub struct ScrollState(/* private fields */);
Expand description
This enum describes the states a scroll event can have.
C++ enum: QScrollEvent::ScrollState
.
This enum describes the states a scroll event can have.
See also QScrollEvent::scrollState().
Implementations§
source§impl ScrollState
impl ScrollState
sourcepub const ScrollStarted: ScrollState = _
pub const ScrollStarted: ScrollState = _
Set for the first scroll event of a scroll activity. (C++ enum variant: ScrollStarted = 0
)
sourcepub const ScrollUpdated: ScrollState = _
pub const ScrollUpdated: ScrollState = _
Set for all but the first and the last scroll event of a scroll activity. (C++ enum variant: ScrollUpdated = 1
)
sourcepub const ScrollFinished: ScrollState = _
pub const ScrollFinished: ScrollState = _
Set for the last scroll event of a scroll activity. (C++ enum variant: ScrollFinished = 2
)
Trait Implementations§
source§impl Clone for ScrollState
impl Clone for ScrollState
source§fn clone(&self) -> ScrollState
fn clone(&self) -> ScrollState
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 ScrollState
impl Debug for ScrollState
source§impl From<ScrollState> for c_int
impl From<ScrollState> for c_int
source§fn from(value: ScrollState) -> Self
fn from(value: ScrollState) -> Self
Converts to this type from the input type.
source§impl From<i32> for ScrollState
impl From<i32> for ScrollState
source§impl PartialEq for ScrollState
impl PartialEq for ScrollState
source§fn eq(&self, other: &ScrollState) -> bool
fn eq(&self, other: &ScrollState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScrollState
impl Eq for ScrollState
impl StructuralEq for ScrollState
impl StructuralPartialEq for ScrollState
Auto Trait Implementations§
impl RefUnwindSafe for ScrollState
impl Send for ScrollState
impl Sync for ScrollState
impl Unpin for ScrollState
impl UnwindSafe for ScrollState
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