Struct cursive_core::align::Align
source · Expand description
Specifies the alignment along both horizontal and vertical directions.
Fields§
§h: HAlign
Horizontal alignment policy
v: VAlign
Vertical alignment policy
Implementations§
source§impl Align
impl Align
sourcepub fn top_center() -> Self
pub fn top_center() -> Self
Creates a top-center alignment.
sourcepub fn bot_center() -> Self
pub fn bot_center() -> Self
Creates a bottom-center alignment.
sourcepub fn center_left() -> Self
pub fn center_left() -> Self
Creates a center-right alignment.
sourcepub fn center_right() -> Self
pub fn center_right() -> Self
Creates a center-right alignment.