[][src]Struct fontdue::layout::LayoutSettings

pub struct LayoutSettings {
    pub x: f32,
    pub y: f32,
    pub max_width: Option<f32>,
    pub max_height: Option<f32>,
    pub horizontal_align: Option<HorizontalAlign>,
    pub vertical_align: Option<VerticalAlign>,
}

Fields

x: f32

The right boundary of the text region.

y: f32

The topmost boundary of the text region.

max_width: Option<f32>

An optional rightmost boundary on the text region. A line of text that exceeds the max_width is wrapped to the line below.

max_height: Option<f32>horizontal_align: Option<HorizontalAlign>

If no horizontal alignment is provided, the default is Left. This option does nothing if the max_width isn't set.

vertical_align: Option<VerticalAlign>

If no vertical alignment is provided, the default is Top. This option does nothing if the max_height field isn't set.

Trait Implementations

impl Clone for LayoutSettings[src]

impl Copy for LayoutSettings[src]

impl Default for LayoutSettings[src]

impl PartialEq<LayoutSettings> for LayoutSettings[src]

impl StructuralPartialEq for LayoutSettings[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.