pub struct SliderOutput {
pub response: Response,
pub changes: Vec<Change>,
pub quad: Option<Response>,
}Expand description
What a slider did in a frame.
Fields§
§response: ResponseThe bar (for a range slider, both thumbs’ responses merged);
changed() when a value changed.
changes: Vec<Change>The changes written this frame, after the hook.
quad: Option<Response>The quad button, when there is one.
Implementations§
Source§impl SliderOutput
impl SliderOutput
Sourcepub fn quad_clicked(&self) -> bool
pub fn quad_clicked(&self) -> bool
Whether the quad button was clicked.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SliderOutput
impl !RefUnwindSafe for SliderOutput
impl Send for SliderOutput
impl Sync for SliderOutput
impl Unpin for SliderOutput
impl UnsafeUnpin for SliderOutput
impl !UnwindSafe for SliderOutput
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more