Struct cursive::align::Align [] [src]

pub struct Align {
    pub h: HAlign,
    pub v: VAlign,
}

Specifies the alignment along both horizontal and vertical directions.

Fields

Horizontal alignment policy

Vertical alignment policy

Methods

impl Align
[src]

Creates a new Align object from the given alignments.

Creates a top-left alignment.

Creates a top-right alignment.

Creates a bottom-left alignment.

Creates a bottom-right alignment.

Creates an alignment centered both horizontally and vertically.