cli_grid/
options.rs

1use crate::{HAlign, VAlign};
2
3/// Options for the grid system.
4pub struct Options {
5    /// Default column span for all the cells of the grid. If a cell specifies
6    /// a column span it will be used instead of the grids default value.
7    pub col_span: Option<usize>,
8
9    /// Default horizontal alignment for all the cells of the grid. If a cell specifies
10    /// a horizontal alignment it will be used instead of the grids default value.
11    pub h_align: Option<HAlign>,
12
13    /// Default vertical alignment for all the cells of the grid. If a cell specifies
14    /// a vertical alignment it will be used instead of the grids default value.
15    pub v_align: Option<VAlign>,
16
17    /// Default blank char for all the cells of the grid. If a cell specifies
18    /// a blank char it will be used instead of the grids default value.
19    pub blank_char: Option<char>,
20}