appcui 0.5.1

A feature-rich and cross-platform TUI/CUI framework for Rust, enabling modern terminal-based applications on Windows, Linux, and macOS. Includes built-in UI components like buttons, menus, list views, tree views, checkboxes, and more. Perfect for building fast and interactive CLI tools and text-based interfaces.
Documentation
use crate::prelude::EnumSelector;

/// Alignment of a control inside its parent when using aligned layout (corners, edges, or center).
#[repr(u8)]
#[derive(Copy, Clone, Eq, PartialEq, Debug, EnumSelector)]
pub enum Alignment {
    /// Top-left corner of the parent.
    TopLeft,
    /// Top-right corner of the parent.
    TopRight,
    /// Bottom-left corner of the parent.
    BottomLeft,
    /// Bottom-right corner of the parent.
    BottomRight,
    /// Center of the parent's bottom edge.
    BottomCenter,
    /// Center of the parent's left edge.
    CenterLeft,
    /// Center of the parent's right edge.
    CenterRight,
    /// Center of the parent's top edge.
    TopCenter,
    /// Center of the parent.
    Center,
}