pub struct Stepper { /* private fields */ }Expand description
A numeric stepper: decrement button, current value, increment button.
Implementations§
Source§impl Stepper
impl Stepper
Sourcepub fn min(self, v: i64) -> Self
pub fn min(self, v: i64) -> Self
Lower bound (inclusive). The − button dims and stops firing there.
Sourcepub fn max(self, v: i64) -> Self
pub fn max(self, v: i64) -> Self
Upper bound (inclusive). The + button dims and stops firing there.
Sourcepub fn font_size(self, s: f32) -> Self
pub fn font_size(self, s: f32) -> Self
Value/glyph text size (default: theme typography.body_medium).
Sourcepub fn background(self, c: Color) -> Self
pub fn background(self, c: Color) -> Self
Track fill — defaults to the theme’s surface_variant.
Trait Implementations§
Source§impl Widget for Stepper
impl Widget for Stepper
Source§fn layout(&self, ctx: &LayoutCtx<'_>) -> Size
fn layout(&self, ctx: &LayoutCtx<'_>) -> Size
Measure under
ctx.constraints and return a size within them. Read moreSource§fn children(&self) -> Children<'_>
fn children(&self) -> Children<'_>
Declare this widget’s children. Drives every default below.
Source§fn flex_factor(&self) -> f32
fn flex_factor(&self) -> f32
Flex weight inside Row/Column. Wrappers are transparent by default.
Auto Trait Implementations§
impl !RefUnwindSafe for Stepper
impl !UnwindSafe for Stepper
impl Freeze for Stepper
impl Send for Stepper
impl Sync for Stepper
impl Unpin for Stepper
impl UnsafeUnpin for Stepper
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<W> FocusApi for W
impl<W> FocusApi for W
Source§fn focus_node(self, node: FocusNode) -> WithFocus<Self>
fn focus_node(self, node: FocusNode) -> WithFocus<Self>
Attach a focus node. This enables focus-ring rendering and explicit
neighbor wiring.