pub struct ResolvedComponentStyle {Show 18 fields
pub background: Option<Fill>,
pub text_color: Option<Color>,
pub border: Option<ComponentBorder>,
pub radius: Option<f32>,
pub height: Option<f32>,
pub width: Option<f32>,
pub padding_x: Option<f32>,
pub padding_y: Option<f32>,
pub padding: Option<[f32; 4]>,
pub gap: Option<f32>,
pub font_size: Option<f32>,
pub font_weight: Option<u16>,
pub line_height: Option<f32>,
pub letter_spacing: Option<f32>,
pub icon_size: Option<f32>,
pub max_width: Option<f32>,
pub shadows: Vec<ShadowLayer>,
pub transition: Option<ComponentMotion>,
}Fields§
§background: Option<Fill>§text_color: Option<Color>§border: Option<ComponentBorder>§radius: Option<f32>§height: Option<f32>§width: Option<f32>§padding_x: Option<f32>§padding_y: Option<f32>§padding: Option<[f32; 4]>§gap: Option<f32>§font_size: Option<f32>§font_weight: Option<u16>§line_height: Option<f32>§letter_spacing: Option<f32>§icon_size: Option<f32>§max_width: Option<f32>§shadows: Vec<ShadowLayer>§transition: Option<ComponentMotion>Implementations§
Source§impl ResolvedComponentStyle
impl ResolvedComponentStyle
pub fn merge(&self, overlay: &Self) -> Self
pub fn padding_box(&self, fallback_x: f32, fallback_y: f32) -> [f32; 4]
pub fn outer_shadows(&self) -> Vec<BoxShadow>
pub fn inset_border(&self) -> Option<ComponentBorder>
Trait Implementations§
Source§impl Clone for ResolvedComponentStyle
impl Clone for ResolvedComponentStyle
Source§fn clone(&self) -> ResolvedComponentStyle
fn clone(&self) -> ResolvedComponentStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolvedComponentStyle
impl Debug for ResolvedComponentStyle
Source§impl Default for ResolvedComponentStyle
impl Default for ResolvedComponentStyle
Source§fn default() -> ResolvedComponentStyle
fn default() -> ResolvedComponentStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResolvedComponentStyle
impl<'de> Deserialize<'de> for ResolvedComponentStyle
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 ResolvedComponentStyle
impl PartialEq for ResolvedComponentStyle
Source§fn eq(&self, other: &ResolvedComponentStyle) -> bool
fn eq(&self, other: &ResolvedComponentStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResolvedComponentStyle
impl Serialize for ResolvedComponentStyle
impl StructuralPartialEq for ResolvedComponentStyle
Auto Trait Implementations§
impl Freeze for ResolvedComponentStyle
impl RefUnwindSafe for ResolvedComponentStyle
impl Send for ResolvedComponentStyle
impl Sync for ResolvedComponentStyle
impl Unpin for ResolvedComponentStyle
impl UnsafeUnpin for ResolvedComponentStyle
impl UnwindSafe for ResolvedComponentStyle
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