[][src]Struct azul_text_layout::text_layout::InlineTextLayout

pub struct InlineTextLayout {
    pub lines: Vec<InlineTextLine>,
}

Fields

lines: Vec<InlineTextLine>

Implementations

impl InlineTextLayout[src]

pub fn get_leading(&self) -> f32[src]

pub fn get_trailing(&self) -> f32[src]

pub const fn new(lines: Vec<InlineTextLine>) -> InlineTextLayout[src]

#[must_use]pub fn get_bounds(&self) -> LayoutRect[src]

#[must_use]pub fn get_children_horizontal_diff_to_right_edge(
    &self,
    parent: &LayoutRect
) -> Vec<f32>
[src]

pub fn align_children_horizontal(
    &mut self,
    horizontal_alignment: StyleTextAlignmentHorz
)
[src]

Align the lines horizontal to their bounding box

pub fn align_children_vertical_in_parent_bounds(
    &mut self,
    parent_size: &LayoutSize,
    vertical_alignment: StyleTextAlignmentVert
)
[src]

Align the lines vertical to their parents container

Trait Implementations

impl Clone for InlineTextLayout[src]

impl Debug for InlineTextLayout[src]

impl PartialEq<InlineTextLayout> for InlineTextLayout[src]

impl PartialOrd<InlineTextLayout> for InlineTextLayout[src]

impl StructuralPartialEq for InlineTextLayout[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.