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]

[src]

Creates a new Align object from the given alignments.

[src]

Creates a top-left alignment.

[src]

Creates a top-right alignment.

[src]

Creates a bottom-left alignment.

[src]

Creates a bottom-right alignment.

[src]

Creates an alignment centered both horizontally and vertically.

Trait Implementations

impl Debug for Align
[src]

[src]

Formats the value using the given formatter.