Enum cursive::align::HAlign [] [src]

pub enum HAlign {
    Left,
    Center,
    Right,
}

Horizontal alignment

Variants

Place the element to the left of available space

Place the element horizontally in the center of available space

Place the element to the right of available space

Methods

impl HAlign
[src]

Returns the offset required to position a view.

When drawing a view with size content when the available size is container, printing at the resulting offset will align the view as desired.