#[non_exhaustive]pub struct ResolvedLayoutTheme {
pub widget_gap: f32,
pub container_margin: f32,
pub window_margin: f32,
pub section_gap: f32,
}Expand description
Layout spacing constants shared between light and dark variants.
Unlike other widget themes, LayoutTheme lives on crate::ThemeSpec (top-level)
rather than crate::ThemeVariant because spacing is variant-independent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.widget_gap: f32Space between adjacent widgets in logical pixels.
container_margin: f32Padding inside containers in logical pixels.
window_margin: f32Padding inside the main window in logical pixels.
section_gap: f32Space between major content sections in logical pixels.
Trait Implementations§
Source§impl Clone for ResolvedLayoutTheme
impl Clone for ResolvedLayoutTheme
Source§fn clone(&self) -> ResolvedLayoutTheme
fn clone(&self) -> ResolvedLayoutTheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedLayoutTheme
impl Debug for ResolvedLayoutTheme
Source§impl<'de> Deserialize<'de> for ResolvedLayoutTheme
impl<'de> Deserialize<'de> for ResolvedLayoutTheme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResolvedLayoutTheme
impl PartialEq for ResolvedLayoutTheme
Source§impl Serialize for ResolvedLayoutTheme
impl Serialize for ResolvedLayoutTheme
impl StructuralPartialEq for ResolvedLayoutTheme
Auto Trait Implementations§
impl Freeze for ResolvedLayoutTheme
impl RefUnwindSafe for ResolvedLayoutTheme
impl Send for ResolvedLayoutTheme
impl Sync for ResolvedLayoutTheme
impl Unpin for ResolvedLayoutTheme
impl UnsafeUnpin for ResolvedLayoutTheme
impl UnwindSafe for ResolvedLayoutTheme
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