TableBuilderExt

Trait TableBuilderExt 

Source
pub trait TableBuilderExt {
Show 22 methods // Required methods fn with_table_frame(self, frame: FrameType) -> Self; fn with_rows(self, val: i32) -> Self; fn with_cols(self, val: i32) -> Self; fn with_row_resize(self, flag: bool) -> Self; fn with_col_resize(self, flag: bool) -> Self; fn with_col_resize_min(self, val: i32) -> Self; fn with_row_resize_min(self, val: i32) -> Self; fn with_row_header(self, flag: bool) -> Self; fn with_col_header(self, flag: bool) -> Self; fn with_col_header_height(self, height: i32) -> Self; fn with_row_header_width(self, width: i32) -> Self; fn with_row_header_color(self, val: Color) -> Self; fn with_col_header_color(self, val: Color) -> Self; fn with_row_height(self, row: i32, height: i32) -> Self; fn with_col_width(self, col: i32, width: i32) -> Self; fn with_row_height_all(self, height: i32) -> Self; fn with_col_width_all(self, width: i32) -> Self; fn with_row_position(self, row: i32) -> Self; fn with_col_position(self, col: i32) -> Self; fn with_top_row(self, row: i32) -> Self; fn with_scrollbar_size(self, new_size: i32) -> Self; fn with_tab_cell_nav(self, val: bool) -> Self;
}
Expand description

Adds builder pattern friendly versions of several setter functions

Required Methods§

Source

fn with_table_frame(self, frame: FrameType) -> Self

Sets the table frame

Source

fn with_rows(self, val: i32) -> Self

Sets the number of rows

Source

fn with_cols(self, val: i32) -> Self

Sets the number of columns

Source

fn with_row_resize(self, flag: bool) -> Self

Sets a row to be resizable

Source

fn with_col_resize(self, flag: bool) -> Self

Sets a column to be resizable

Source

fn with_col_resize_min(self, val: i32) -> Self

Sets the current column minimum resize value.

Source

fn with_row_resize_min(self, val: i32) -> Self

Sets the current row minimum resize value.

Source

fn with_row_header(self, flag: bool) -> Self

Sets whether a row headers are enabled or not

Source

fn with_col_header(self, flag: bool) -> Self

Sets whether a column headers are enabled or not

Source

fn with_col_header_height(self, height: i32) -> Self

Sets the column header height

Source

fn with_row_header_width(self, width: i32) -> Self

Sets the row header width

Source

fn with_row_header_color(self, val: Color) -> Self

Sets the row header color

Source

fn with_col_header_color(self, val: Color) -> Self

Sets the column header color

Source

fn with_row_height(self, row: i32, height: i32) -> Self

Sets the row’s height

Source

fn with_col_width(self, col: i32, width: i32) -> Self

Sets the column’s width

Source

fn with_row_height_all(self, height: i32) -> Self

Sets all rows height

Source

fn with_col_width_all(self, width: i32) -> Self

Sets all column’s width

Source

fn with_row_position(self, row: i32) -> Self

Sets the row’s position

Source

fn with_col_position(self, col: i32) -> Self

Sets the column’s position

Source

fn with_top_row(self, row: i32) -> Self

Sets the top row

Source

fn with_scrollbar_size(self, new_size: i32) -> Self

Sets the scrollbar size

Source

fn with_tab_cell_nav(self, val: bool) -> Self

Sets whether tab key cell navigation is enabled

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> TableBuilderExt for T
where T: TableExt,