pub struct ToolbarTheme {
pub height: Option<f32>,
pub item_spacing: Option<f32>,
pub padding: Option<f32>,
pub font: Option<FontSpec>,
}Expand description
Toolbar sizing, spacing, and font.
Fields§
§height: Option<f32>Toolbar height in logical pixels.
item_spacing: Option<f32>Horizontal space between toolbar items.
padding: Option<f32>Padding around toolbar content.
font: Option<FontSpec>Toolbar label font specification.
Implementations§
Source§impl ToolbarTheme
impl ToolbarTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.
Source§impl ToolbarTheme
impl ToolbarTheme
Trait Implementations§
Source§impl Clone for ToolbarTheme
impl Clone for ToolbarTheme
Source§fn clone(&self) -> ToolbarTheme
fn clone(&self) -> ToolbarTheme
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 ToolbarTheme
impl Debug for ToolbarTheme
Source§impl Default for ToolbarTheme
impl Default for ToolbarTheme
Source§fn default() -> ToolbarTheme
fn default() -> ToolbarTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolbarThemewhere
ToolbarTheme: Default,
impl<'de> Deserialize<'de> for ToolbarThemewhere
ToolbarTheme: Default,
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 ToolbarTheme
impl PartialEq for ToolbarTheme
Source§impl Serialize for ToolbarTheme
impl Serialize for ToolbarTheme
impl StructuralPartialEq for ToolbarTheme
Auto Trait Implementations§
impl Freeze for ToolbarTheme
impl RefUnwindSafe for ToolbarTheme
impl Send for ToolbarTheme
impl Sync for ToolbarTheme
impl Unpin for ToolbarTheme
impl UnsafeUnpin for ToolbarTheme
impl UnwindSafe for ToolbarTheme
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