[−][src]Struct azul_text_layout::text_layout::ResolvedTextLayoutOptions
Same as TextLayoutOptions
, but with the widths / heights of the PixelValue
s
resolved to regular f32s (because letter_spacing
, word_spacing
, etc. may be %-based value)
Fields
font_size_px: f32
Font size (in pixels) that this text has been laid out with
line_height: Option<f32>
Multiplier for the line height, default to 1.0
letter_spacing: Option<f32>
Additional spacing between glyphs (in pixels)
word_spacing: Option<f32>
Additional spacing between words (in pixels)
tab_width: Option<f32>
How many spaces should a tab character emulate
(multiplying value, i.e. 4.0
= one tab = 4 spaces)?
max_horizontal_width: Option<f32>
Maximum width of the text (in pixels) - if the text is set to overflow:visible
, set this to None.
leading: Option<f32>
How many pixels of leading does the first line have? Note that this added onto to the holes,
so for effects like :first-letter
, use a hole instead of a leading.
holes: Vec<LayoutRect>
This is more important for inline text layout where items can punch "holes" into the text flow, for example an image that floats to the right.
TODO: Currently unused!
Trait Implementations
impl Clone for ResolvedTextLayoutOptions
[src]
fn clone(&self) -> ResolvedTextLayoutOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ResolvedTextLayoutOptions
[src]
impl Default for ResolvedTextLayoutOptions
[src]
impl PartialEq<ResolvedTextLayoutOptions> for ResolvedTextLayoutOptions
[src]
fn eq(&self, other: &ResolvedTextLayoutOptions) -> bool
[src]
fn ne(&self, other: &ResolvedTextLayoutOptions) -> bool
[src]
impl PartialOrd<ResolvedTextLayoutOptions> for ResolvedTextLayoutOptions
[src]
fn partial_cmp(&self, other: &ResolvedTextLayoutOptions) -> Option<Ordering>
[src]
fn lt(&self, other: &ResolvedTextLayoutOptions) -> bool
[src]
fn le(&self, other: &ResolvedTextLayoutOptions) -> bool
[src]
fn gt(&self, other: &ResolvedTextLayoutOptions) -> bool
[src]
fn ge(&self, other: &ResolvedTextLayoutOptions) -> bool
[src]
impl StructuralPartialEq for ResolvedTextLayoutOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResolvedTextLayoutOptions
impl Send for ResolvedTextLayoutOptions
impl Sync for ResolvedTextLayoutOptions
impl Unpin for ResolvedTextLayoutOptions
impl UnwindSafe for ResolvedTextLayoutOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,