pub struct ResolvedTextStyle {
pub font_id: Option<u32>,
pub family: String,
pub weight: u16,
pub italic: bool,
pub size_px: f32,
pub line_height: f32,
pub letter_spacing: f32,
pub role: BlockRole,
pub justify_mode: JustifyMode,
}Expand description
Resolved style passed to renderer.
Fields§
§font_id: Option<u32>Stable font identifier for this style.
family: StringChosen family.
weight: u16Numeric weight.
italic: boolItalic flag.
size_px: f32Size in pixels.
line_height: f32Line height multiplier.
letter_spacing: f32Letter spacing in px.
role: BlockRoleSemantic role.
justify_mode: JustifyModeJustification mode from layout.
Trait Implementations§
Source§impl Clone for ResolvedTextStyle
impl Clone for ResolvedTextStyle
Source§fn clone(&self) -> ResolvedTextStyle
fn clone(&self) -> ResolvedTextStyle
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 ResolvedTextStyle
impl Debug for ResolvedTextStyle
Source§impl PartialEq for ResolvedTextStyle
impl PartialEq for ResolvedTextStyle
impl StructuralPartialEq for ResolvedTextStyle
Auto Trait Implementations§
impl Freeze for ResolvedTextStyle
impl RefUnwindSafe for ResolvedTextStyle
impl Send for ResolvedTextStyle
impl Sync for ResolvedTextStyle
impl Unpin for ResolvedTextStyle
impl UnsafeUnpin for ResolvedTextStyle
impl UnwindSafe for ResolvedTextStyle
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