pub struct SpacingScale {
pub xxs: f32,
pub xs: f32,
pub s: f32,
pub m: f32,
pub l: f32,
pub xl: f32,
pub control_padding: f32,
pub container_padding: f32,
pub container_gap: f32,
}Expand description
4pt 间距刻度 + 组件默认间距(由 --spacing-* 生成)。
Fields§
§xxs: f322 — 徽标/gap 微调
xs: f324 — 图标与文字
s: f328 — 控件内边距 / 紧凑 gap
m: f3216 — 容器内边距 / 常规 gap
l: f3224 — 区块间距
xl: f3232 — 页面级间距
control_padding: f32叶子控件默认内边距
container_padding: f32容器默认内边距
container_gap: f32容器未显式指定 gap 时的默认子项间距
Trait Implementations§
Source§impl Clone for SpacingScale
impl Clone for SpacingScale
Source§impl Debug for SpacingScale
impl Debug for SpacingScale
Source§impl Default for SpacingScale
impl Default for SpacingScale
Source§impl PartialEq for SpacingScale
impl PartialEq for SpacingScale
impl StructuralPartialEq for SpacingScale
Auto Trait Implementations§
impl Freeze for SpacingScale
impl RefUnwindSafe for SpacingScale
impl Send for SpacingScale
impl Sync for SpacingScale
impl Unpin for SpacingScale
impl UnsafeUnpin for SpacingScale
impl UnwindSafe for SpacingScale
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