Enum cursive::align::VAlign
[−]
[src]
pub enum VAlign {
Top,
Center,
Bottom,
}Vertical alignment
Variants
TopPlace the element at the top of available space
CenterPlace the element vertically in the center of available space
BottomPlace the element at the bottom of available space
Methods
impl VAlign[src]
fn get_offset(&self, content: usize, container: usize) -> usize
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.