pub struct Progress {
pub value: f32,
pub height: f32,
pub fill: Option<Color>,
pub track: Option<Color>,
pub radius: Option<f32>,
pub width: Option<Length>,
pub align: Align,
}Expand description
进度条:value 按比例填充,余下露出底槽。
Fields§
§value: f32进度值(0–1;越界与非有限值渲染时夹取)。
height: f32条高(逻辑像素)。
fill: Option<Color>填充色;None = 主题强调色。
track: Option<Color>底槽色;None = 主题边框色。
radius: Option<f32>圆角半径(逻辑像素);None = 半高(胶囊形)。渲染时夹到半高以内。
width: Option<Length>条宽;None = 铺满内容宽。
align: Align水平对齐(窄于内容宽时生效)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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