pub struct ElementStyleInfo {Show 45 fields
pub margin: Edges,
pub padding: Edges,
pub border_width: Edges,
pub width: Option<String>,
pub height: Option<String>,
pub min_width: Option<f64>,
pub min_height: Option<f64>,
pub max_width: Option<f64>,
pub max_height: Option<f64>,
pub flex_direction: FlexDirection,
pub justify_content: JustifyContent,
pub align_items: AlignItems,
pub align_self: Option<AlignItems>,
pub flex_wrap: FlexWrap,
pub align_content: AlignContent,
pub flex_grow: f64,
pub flex_shrink: f64,
pub flex_basis: Option<String>,
pub gap: f64,
pub row_gap: f64,
pub column_gap: f64,
pub font_family: String,
pub font_size: f64,
pub font_weight: u32,
pub font_style: FontStyle,
pub line_height: f64,
pub text_align: TextAlign,
pub letter_spacing: f64,
pub text_decoration: TextDecoration,
pub text_transform: TextTransform,
pub color: Color,
pub background_color: Option<Color>,
pub border_color: EdgeValues<Color>,
pub border_radius: CornerValues,
pub opacity: f64,
pub position: Position,
pub top: Option<f64>,
pub right: Option<f64>,
pub bottom: Option<f64>,
pub left: Option<f64>,
pub overflow: Overflow,
pub breakable: bool,
pub break_before: bool,
pub min_widow_lines: u32,
pub min_orphan_lines: u32,
}Expand description
Serializable snapshot of ResolvedStyle for the inspector panel.
Fields§
§margin: Edges§padding: Edges§border_width: Edges§width: Option<String>§height: Option<String>§min_width: Option<f64>§min_height: Option<f64>§max_width: Option<f64>§max_height: Option<f64>§flex_direction: FlexDirection§justify_content: JustifyContent§align_items: AlignItems§align_self: Option<AlignItems>§flex_wrap: FlexWrap§align_content: AlignContent§flex_grow: f64§flex_shrink: f64§flex_basis: Option<String>§gap: f64§row_gap: f64§column_gap: f64§font_family: String§font_size: f64§font_weight: u32§font_style: FontStyle§line_height: f64§text_align: TextAlign§letter_spacing: f64§text_decoration: TextDecoration§text_transform: TextTransform§color: Color§background_color: Option<Color>§border_color: EdgeValues<Color>§border_radius: CornerValues§opacity: f64§position: Position§top: Option<f64>§right: Option<f64>§bottom: Option<f64>§left: Option<f64>§overflow: Overflow§breakable: bool§break_before: bool§min_widow_lines: u32§min_orphan_lines: u32Trait Implementations§
Source§impl Clone for ElementStyleInfo
impl Clone for ElementStyleInfo
Source§fn clone(&self) -> ElementStyleInfo
fn clone(&self) -> ElementStyleInfo
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 ElementStyleInfo
impl Debug for ElementStyleInfo
Source§impl Default for ElementStyleInfo
impl Default for ElementStyleInfo
Auto Trait Implementations§
impl Freeze for ElementStyleInfo
impl RefUnwindSafe for ElementStyleInfo
impl Send for ElementStyleInfo
impl Sync for ElementStyleInfo
impl Unpin for ElementStyleInfo
impl UnsafeUnpin for ElementStyleInfo
impl UnwindSafe for ElementStyleInfo
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