Enum libnotcurses_sys::NcAlign
source · #[repr(u32)]
pub enum NcAlign {
Unaligned,
Left,
Center,
Right,
}
Expand description
Alignment within a plane or terminal.
Left
|Right
justified (horizontally).Top
|Down
justified (vertically).Centered
(both horizontally & vertically).Unaligned
for an invalid state.
Default
Variants§
Unaligned
Anything unaligned wont be rendered.
Left
Left (==Top
) alignment.
Center
Center alignment.
Right
Right (==Bottom
) alignment.
Implementations§
Trait Implementations§
source§impl From<NcAlign> for NcAlign_u32
impl From<NcAlign> for NcAlign_u32
source§impl From<u32> for NcAlign
impl From<u32> for NcAlign
source§fn from(align: NcAlign_u32) -> Self
fn from(align: NcAlign_u32) -> Self
Converts to this type from the input type.