[−][src]Trait fltk::prelude::TableExt
Defines the methods implemented by table types
Required methods
fn clear(&mut self)
Clears the table
fn set_table_frame(&mut self, frame: FrameType)
Sets the table frame, table_box
fn table_frame(&self) -> FrameType
Gets the table frame, table box
fn set_rows(&mut self, val: u32)
Sets the number of rows
fn rows(&self) -> u32
Gets the number of rows
fn set_cols(&mut self, val: u32)
Sets the number of columns
fn cols(&self) -> u32
Gets the number of columns
fn visible_cells(
&mut self,
r1: &mut i32,
r2: &mut i32,
c1: &mut i32,
c2: &mut i32
)
&mut self,
r1: &mut i32,
r2: &mut i32,
c1: &mut i32,
c2: &mut i32
)
Returns the range of row and column numbers for all visible and partially visible cells in the table.
fn is_interactive_resize(&self) -> bool
Returns whether the resize is interactive
fn row_resize(&self) -> bool
Returns whether a row is resizable
fn set_row_resize(&mut self, flag: bool)
Sets a row to be resizable
fn col_resize(&self) -> bool
Returns whether a column is resizable
fn set_col_resize(&mut self, flag: bool)
Sets a column to be resizable
fn col_resize_min(&self) -> u32
Returns the current column minimum resize value.
fn set_col_resize_min(&mut self, val: u32)
Sets the current column minimum resize value.
fn row_resize_min(&self) -> u32
Returns the current row minimum resize value.
fn set_row_resize_min(&mut self, val: u32)
Sets the current row minimum resize value.
fn row_header(&self) -> bool
Returns if row headers are enabled or not
fn set_row_header(&mut self, flag: bool)
Sets whether a row headers are enabled or not
fn col_header(&self) -> bool
Returns if column headers are enabled or not
fn set_col_header(&mut self, flag: bool)
Sets whether a column headers are enabled or not
fn set_col_header_height(&mut self, height: i32)
Sets the column header height
fn col_header_height(&self) -> i32
Gets the column header height
fn set_row_header_width(&mut self, width: i32)
Sets the row header width
fn row_header_width(&self) -> i32
Gets the row header width
fn set_row_header_color(&mut self, val: Color)
Sets the row header color
fn row_header_color(&self) -> Color
Gets the row header color
fn set_col_header_color(&mut self, val: Color)
Sets the column header color
fn col_header_color(&self) -> Color
Gets the row header color
fn set_row_height(&mut self, row: i32, height: i32)
Sets the row's height
fn row_height(&self, row: i32) -> i32
Gets the row's height
fn set_col_width(&mut self, col: i32, width: i32)
Sets the columns's width
fn col_width(&self, col: i32) -> i32
Gets the columns's width
fn set_row_height_all(&mut self, height: i32)
Sets all rows height
fn set_col_width_all(&mut self, width: i32)
Sets all columns's width
fn set_row_position(&mut self, row: i32)
Sets the row's position
fn set_col_position(&mut self, col: i32)
Sets the columns's position
fn row_position(&self) -> i32
Gets the row's position
fn col_position(&self) -> i32
Gets the columns's position
fn set_top_row(&mut self, row: i32)
Sets the top row
fn top_row(&self) -> i32
Gets the top row
fn is_selected(&self, r: i32, c: i32) -> bool
Returns whether a cell is selected
fn get_selection(
&self,
row_top: &mut i32,
col_left: &mut i32,
row_bot: &mut i32,
col_right: &mut i32
)
&self,
row_top: &mut i32,
col_left: &mut i32,
row_bot: &mut i32,
col_right: &mut i32
)
Gets the selection
fn set_selection(
&mut self,
row_top: i32,
col_left: i32,
row_bot: i32,
col_right: i32
)
&mut self,
row_top: i32,
col_left: i32,
row_bot: i32,
col_right: i32
)
Sets the selection
fn move_cursor_with_shift_select(
&mut self,
r: i32,
c: i32,
shiftselect: bool
) -> Result<(), FltkError>
&mut self,
r: i32,
c: i32,
shiftselect: bool
) -> Result<(), FltkError>
Moves the cursor with shift select
fn move_cursor(&mut self, r: i32, c: i32) -> Result<(), FltkError>
Moves the cursor
fn init_sizes(&mut self)
Resets the internal array of widget sizes and positions.
fn scrollbar_size(&self) -> u32
Returns the scrollbar size
fn set_scrollbar_size(&mut self, new_size: u32)
Sets the scrollbar size
fn set_tab_cell_nav(&mut self, val: u32)
Sets the tab key cell navigation
fn tab_cell_nav(&self) -> u32
Returns the tab key cell navigation
Implementors
impl TableExt for Table
[src]
fn clear(&mut self)
[src]
fn set_table_frame(&mut self, frame: FrameType)
[src]
fn table_frame(&self) -> FrameType
[src]
fn set_rows(&mut self, val: u32)
[src]
fn rows(&self) -> u32
[src]
fn set_cols(&mut self, val: u32)
[src]
fn cols(&self) -> u32
[src]
fn visible_cells(
&mut self,
r1: &mut i32,
r2: &mut i32,
c1: &mut i32,
c2: &mut i32
)
[src]
&mut self,
r1: &mut i32,
r2: &mut i32,
c1: &mut i32,
c2: &mut i32
)
fn is_interactive_resize(&self) -> bool
[src]
fn row_resize(&self) -> bool
[src]
fn set_row_resize(&mut self, flag: bool)
[src]
fn col_resize(&self) -> bool
[src]
fn set_col_resize(&mut self, flag: bool)
[src]
fn col_resize_min(&self) -> u32
[src]
fn set_col_resize_min(&mut self, val: u32)
[src]
fn row_resize_min(&self) -> u32
[src]
fn set_row_resize_min(&mut self, val: u32)
[src]
fn row_header(&self) -> bool
[src]
fn set_row_header(&mut self, flag: bool)
[src]
fn col_header(&self) -> bool
[src]
fn set_col_header(&mut self, flag: bool)
[src]
fn set_col_header_height(&mut self, height: i32)
[src]
fn col_header_height(&self) -> i32
[src]
fn set_row_header_width(&mut self, width: i32)
[src]
fn row_header_width(&self) -> i32
[src]
fn set_row_header_color(&mut self, val: Color)
[src]
fn row_header_color(&self) -> Color
[src]
fn set_col_header_color(&mut self, val: Color)
[src]
fn col_header_color(&self) -> Color
[src]
fn set_row_height(&mut self, row: i32, height: i32)
[src]
fn row_height(&self, row: i32) -> i32
[src]
fn set_col_width(&mut self, col: i32, width: i32)
[src]
fn col_width(&self, col: i32) -> i32
[src]
fn set_row_height_all(&mut self, height: i32)
[src]
fn set_col_width_all(&mut self, width: i32)
[src]
fn set_row_position(&mut self, row: i32)
[src]
fn set_col_position(&mut self, col: i32)
[src]
fn row_position(&self) -> i32
[src]
fn col_position(&self) -> i32
[src]
fn set_top_row(&mut self, row: i32)
[src]
fn top_row(&self) -> i32
[src]
fn is_selected(&self, r: i32, c: i32) -> bool
[src]
fn get_selection(
&self,
row_top: &mut i32,
col_left: &mut i32,
row_bot: &mut i32,
col_right: &mut i32
)
[src]
&self,
row_top: &mut i32,
col_left: &mut i32,
row_bot: &mut i32,
col_right: &mut i32
)
fn set_selection(
&mut self,
row_top: i32,
col_left: i32,
row_bot: i32,
col_right: i32
)
[src]
&mut self,
row_top: i32,
col_left: i32,
row_bot: i32,
col_right: i32
)
fn move_cursor_with_shift_select(
&mut self,
r: i32,
c: i32,
shiftselect: bool
) -> Result<(), FltkError>
[src]
&mut self,
r: i32,
c: i32,
shiftselect: bool
) -> Result<(), FltkError>
fn move_cursor(&mut self, r: i32, c: i32) -> Result<(), FltkError>
[src]
fn init_sizes(&mut self)
[src]
fn scrollbar_size(&self) -> u32
[src]
fn set_scrollbar_size(&mut self, new_size: u32)
[src]
fn set_tab_cell_nav(&mut self, val: u32)
[src]
fn tab_cell_nav(&self) -> u32
[src]
impl TableExt for TableRow
[src]
fn clear(&mut self)
[src]
fn set_table_frame(&mut self, frame: FrameType)
[src]
fn table_frame(&self) -> FrameType
[src]
fn set_rows(&mut self, val: u32)
[src]
fn rows(&self) -> u32
[src]
fn set_cols(&mut self, val: u32)
[src]
fn cols(&self) -> u32
[src]
fn visible_cells(
&mut self,
r1: &mut i32,
r2: &mut i32,
c1: &mut i32,
c2: &mut i32
)
[src]
&mut self,
r1: &mut i32,
r2: &mut i32,
c1: &mut i32,
c2: &mut i32
)
fn is_interactive_resize(&self) -> bool
[src]
fn row_resize(&self) -> bool
[src]
fn set_row_resize(&mut self, flag: bool)
[src]
fn col_resize(&self) -> bool
[src]
fn set_col_resize(&mut self, flag: bool)
[src]
fn col_resize_min(&self) -> u32
[src]
fn set_col_resize_min(&mut self, val: u32)
[src]
fn row_resize_min(&self) -> u32
[src]
fn set_row_resize_min(&mut self, val: u32)
[src]
fn row_header(&self) -> bool
[src]
fn set_row_header(&mut self, flag: bool)
[src]
fn col_header(&self) -> bool
[src]
fn set_col_header(&mut self, flag: bool)
[src]
fn set_col_header_height(&mut self, height: i32)
[src]
fn col_header_height(&self) -> i32
[src]
fn set_row_header_width(&mut self, width: i32)
[src]
fn row_header_width(&self) -> i32
[src]
fn set_row_header_color(&mut self, val: Color)
[src]
fn row_header_color(&self) -> Color
[src]
fn set_col_header_color(&mut self, val: Color)
[src]
fn col_header_color(&self) -> Color
[src]
fn set_row_height(&mut self, row: i32, height: i32)
[src]
fn row_height(&self, row: i32) -> i32
[src]
fn set_col_width(&mut self, col: i32, width: i32)
[src]
fn col_width(&self, col: i32) -> i32
[src]
fn set_row_height_all(&mut self, height: i32)
[src]
fn set_col_width_all(&mut self, width: i32)
[src]
fn set_row_position(&mut self, row: i32)
[src]
fn set_col_position(&mut self, col: i32)
[src]
fn row_position(&self) -> i32
[src]
fn col_position(&self) -> i32
[src]
fn set_top_row(&mut self, row: i32)
[src]
fn top_row(&self) -> i32
[src]
fn is_selected(&self, r: i32, c: i32) -> bool
[src]
fn get_selection(
&self,
row_top: &mut i32,
col_left: &mut i32,
row_bot: &mut i32,
col_right: &mut i32
)
[src]
&self,
row_top: &mut i32,
col_left: &mut i32,
row_bot: &mut i32,
col_right: &mut i32
)
fn set_selection(
&mut self,
row_top: i32,
col_left: i32,
row_bot: i32,
col_right: i32
)
[src]
&mut self,
row_top: i32,
col_left: i32,
row_bot: i32,
col_right: i32
)
fn move_cursor_with_shift_select(
&mut self,
r: i32,
c: i32,
shiftselect: bool
) -> Result<(), FltkError>
[src]
&mut self,
r: i32,
c: i32,
shiftselect: bool
) -> Result<(), FltkError>