pub struct InlineLayoutOptions<'a> {
pub font_size: f32,
pub line_height: Option<f32>,
pub max_width: Option<f32>,
pub white_space: WhiteSpaceMode,
pub vertical_align: VerticalAlignment,
pub is_monospace: bool,
pub exclusion_space: Option<&'a ExclusionSpace>,
pub bfc_offset_y: f32,
}Expand description
Options configuring inline text layout.
Fields§
§font_size: f32Font size in CSS pixels.
line_height: Option<f32>Explicit CSS line-height in pixels, or None for ‘normal’ (~1.2x).
max_width: Option<f32>Container max-width constraint for wrapping.
white_space: WhiteSpaceModeWhitespace handling mode.
vertical_align: VerticalAlignmentVertical alignment mode.
is_monospace: boolWhether font is monospace (disables ligatures and kerning).
exclusion_space: Option<&'a ExclusionSpace>Active exclusion space for float obstructions.
bfc_offset_y: f32Container vertical origin offset within the BFC for float alignment.
Trait Implementations§
Source§impl<'a> Clone for InlineLayoutOptions<'a>
impl<'a> Clone for InlineLayoutOptions<'a>
impl<'a> Copy for InlineLayoutOptions<'a>
Source§impl<'a> Debug for InlineLayoutOptions<'a>
impl<'a> Debug for InlineLayoutOptions<'a>
Auto Trait Implementations§
impl<'a> Forget for InlineLayoutOptions<'a>
impl<'a> Freeze for InlineLayoutOptions<'a>
impl<'a> Move for InlineLayoutOptions<'a>
impl<'a> RefUnwindSafe for InlineLayoutOptions<'a>
impl<'a> Send for InlineLayoutOptions<'a>
impl<'a> Sync for InlineLayoutOptions<'a>
impl<'a> Unpin for InlineLayoutOptions<'a>
impl<'a> UnsafeUnpin for InlineLayoutOptions<'a>
impl<'a> UnwindSafe for InlineLayoutOptions<'a>
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