pub struct GridBuilder { /* private fields */ }
Expand description
Builder for the Grid
type.
Implementations§
Source§impl GridBuilder
impl GridBuilder
Sourcepub fn build(self) -> Grid
pub fn build(self) -> Grid
Builds a Grid
from a GridBuilder
.
Sourcepub fn default_colspan(self, default_colspan: usize) -> Self
pub fn default_colspan(self, default_colspan: usize) -> Self
Sets the default column span for all the cells of the grid. If a cell specifies a column span it will be used instead of the grids default value.
Sourcepub fn default_h_align(self, default_h_align: HAlign) -> Self
pub fn default_h_align(self, default_h_align: HAlign) -> Self
Sets the default horizontal alignment for all the cells of the grid. If a cell specifies a horizontal alignment it will be used instead of the grids default value.
Sourcepub fn default_v_align(self, default_v_align: VAlign) -> Self
pub fn default_v_align(self, default_v_align: VAlign) -> Self
Sets the default vertical alignment for all the cells of the grid. If a cell specifies a vertical alignment it will be used instead of the grids default value.
Sourcepub fn default_blank_char(self, default_blank_char: char) -> Self
pub fn default_blank_char(self, default_blank_char: char) -> Self
Sets the default blank char for all the cells of the grid. If a cell specifies a blank char it will be used instead of the grids default value.
Sourcepub fn column_width(self, column_width: usize) -> Self
pub fn column_width(self, column_width: usize) -> Self
Width of each column in the grid in number of chars.
Sourcepub fn padding_size(self, padding_size: usize) -> Self
pub fn padding_size(self, padding_size: usize) -> Self
Width of each padding space in the grid in number of chars.