pub struct SliderScope { /* private fields */ }Expand description
A Slider and its builder.
Implementations§
Source§impl SliderScope
impl SliderScope
Sourcepub fn accessible_name(self, name: impl Into<String>) -> Self
pub fn accessible_name(self, name: impl Into<String>) -> Self
The name assistive technology reads. With no visible label it is the control’s name; with one it replaces the label, and on an icon-only button it is read instead of the icon’s meaning.
Source§impl SliderScope
impl SliderScope
Sourcepub fn track_color(self, paint: Paint) -> Self
pub fn track_color(self, paint: Paint) -> Self
The part of the track that is not filled.
Source§impl SliderScope
impl SliderScope
Sourcepub fn thumb_color(self, paint: Paint) -> Self
pub fn thumb_color(self, paint: Paint) -> Self
The thumb.
Source§impl SliderScope
impl SliderScope
Sourcepub fn active_track_color(self, paint: Paint) -> Self
pub fn active_track_color(self, paint: Paint) -> Self
The part of the track up to the thumb.
Source§impl SliderScope
impl SliderScope
pub fn enabled(self, enabled: bool) -> Self
Sourcepub fn thumb_size(self, dp: f32) -> Self
pub fn thumb_size(self, dp: f32) -> Self
The thumb’s diameter in dp. Without it the design system picks the size. The track and the area that takes a press do not change with it, so a small thumb is still easy to grab.
pub fn on_change(self, handler: impl FnMut(f32) + 'static) -> Self
Trait Implementations§
Source§impl Drop for SliderScope
impl Drop for SliderScope
Auto Trait Implementations§
impl !RefUnwindSafe for SliderScope
impl !Send for SliderScope
impl !Sync for SliderScope
impl !UnwindSafe for SliderScope
impl Forget for SliderScope
impl Freeze for SliderScope
impl Move for SliderScope
impl Unpin for SliderScope
impl UnsafeUnpin for SliderScope
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