pub struct PlatformMetrics {
pub scale_factor: f32,
pub spacing: SpacingScale,
pub font_sizes: FontSizes,
pub dark_mode: bool,
pub high_contrast: bool,
pub reduced_motion: bool,
pub tab_insets: Insets,
pub group_insets: Insets,
pub titled_group_insets: Insets,
pub split_divider: f32,
pub text_area_insets: Insets,
}Expand description
Platform facts the core needs for unit resolution and defaults.
Fields§
§scale_factor: f32§spacing: SpacingScale§font_sizes: FontSizes§dark_mode: bool§high_contrast: bool§reduced_motion: bool§tab_insets: InsetsWhere a Tabs shows its pages: this far in from its edges, past
its tab strip and border.
group_insets: InsetsWhere a Group shows its content: this far in from its edges,
past its border and the platform’s margins; titled_group_insets
with a heading, which is inside the box on some platforms and above
it on others.
titled_group_insets: Insets§split_divider: f32How thick a Split’s divider is, between its panes.
text_area_insets: InsetsWhere a TextArea’s first line starts: this far in from its edges,
past its border and the text’s own margins. What a hint laid over
it lines up with.
Trait Implementations§
Source§impl Clone for PlatformMetrics
impl Clone for PlatformMetrics
Source§impl Debug for PlatformMetrics
impl Debug for PlatformMetrics
Source§impl PartialEq for PlatformMetrics
impl PartialEq for PlatformMetrics
impl StructuralPartialEq for PlatformMetrics
Auto Trait Implementations§
impl Forget for PlatformMetrics
impl Freeze for PlatformMetrics
impl Move for PlatformMetrics
impl RefUnwindSafe for PlatformMetrics
impl Send for PlatformMetrics
impl Sync for PlatformMetrics
impl Unpin for PlatformMetrics
impl UnsafeUnpin for PlatformMetrics
impl UnwindSafe for PlatformMetrics
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