pub struct RowBuilder { /* private fields */ }
Expand description
Builder for the Row
type.
Implementations§
Source§impl RowBuilder
impl RowBuilder
Sourcepub fn build(self) -> Row
pub fn build(self) -> Row
Builds a Row
from a RowBuilder
.
Sourcepub fn default_colspan(self, default_col_span: usize) -> Self
pub fn default_colspan(self, default_col_span: 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
Sets the width of each column in the Row
.
Sourcepub fn padding_size(self, padding_size: usize) -> Self
pub fn padding_size(self, padding_size: usize) -> Self
Sets the padding size between each column in the Row
.