pub struct ProgressBarRangeInfo {
pub current: f32,
pub start: f32,
pub end: f32,
pub steps: u32,
}Expand description
The value a control holds inside a range, for a slider, a dial or a progress bar.
This is Compose’s ProgressBarRangeInfo (Modifier.progressSemantics(value, range, steps)). A control without it reads as plain text: a screen reader
user hears “47 percent” and has no way to change it, because nothing tells
the platform the control is adjustable.
Fields§
§current: f32§start: f32§end: f32§steps: u32How many stops sit between start and end, as Compose counts them.
Zero means the value moves without stops.
Implementations§
Source§impl ProgressBarRangeInfo
impl ProgressBarRangeInfo
Trait Implementations§
Source§impl Clone for ProgressBarRangeInfo
impl Clone for ProgressBarRangeInfo
Source§fn clone(&self) -> ProgressBarRangeInfo
fn clone(&self) -> ProgressBarRangeInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgressBarRangeInfo
Source§impl Debug for ProgressBarRangeInfo
impl Debug for ProgressBarRangeInfo
Source§impl PartialEq for ProgressBarRangeInfo
impl PartialEq for ProgressBarRangeInfo
impl StructuralPartialEq for ProgressBarRangeInfo
Auto Trait Implementations§
impl Freeze for ProgressBarRangeInfo
impl RefUnwindSafe for ProgressBarRangeInfo
impl Send for ProgressBarRangeInfo
impl Sync for ProgressBarRangeInfo
impl Unpin for ProgressBarRangeInfo
impl UnsafeUnpin for ProgressBarRangeInfo
impl UnwindSafe for ProgressBarRangeInfo
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