Enum cursive::align::HAlign
[−]
[src]
pub enum HAlign { Left, Center, Right, }
Horizontal alignment
Variants
Left
Place the element to the left of available space
Center
Place the element horizontally in the center of available space
Right
Place the element to the right of available space
Methods
impl HAlign
[src]
pub fn get_offset(&self, content: usize, container: usize) -> usize
[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.