Struct cursive::align::Align
[−]
[src]
pub struct Align { pub h: HAlign, pub v: VAlign, }
Specifies the alignment along both horizontal and vertical directions.
Fields
h: HAlign
Horizontal alignment policy
v: VAlign
Vertical alignment policy
Methods
impl Align
[src]
pub fn new(h: HAlign, v: VAlign) -> Self
[src]
Creates a new Align object from the given alignments.
pub fn top_left() -> Self
[src]
Creates a top-left alignment.
pub fn top_right() -> Self
[src]
Creates a top-right alignment.
pub fn bot_left() -> Self
[src]
Creates a bottom-left alignment.
pub fn bot_right() -> Self
[src]
Creates a bottom-right alignment.
pub fn center() -> Self
[src]
Creates an alignment centered both horizontally and vertically.