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