Trait fltk::prelude::TableExt [−][src]
pub unsafe trait TableExt: GroupExt {}Show methods
fn clear(&mut self); fn set_table_frame(&mut self, frame: FrameType); fn table_frame(&self) -> FrameType; fn set_rows(&mut self, val: i32); fn rows(&self) -> i32; fn set_cols(&mut self, val: i32); fn cols(&self) -> i32; fn visible_cells(&self) -> (i32, i32, i32, i32); fn is_interactive_resize(&self) -> bool; fn row_resize(&self) -> bool; fn set_row_resize(&mut self, flag: bool); fn col_resize(&self) -> bool; fn set_col_resize(&mut self, flag: bool); fn col_resize_min(&self) -> i32; fn set_col_resize_min(&mut self, val: i32); fn row_resize_min(&self) -> i32; fn set_row_resize_min(&mut self, val: i32); fn row_header(&self) -> bool; fn set_row_header(&mut self, flag: bool); fn col_header(&self) -> bool; fn set_col_header(&mut self, flag: bool); fn set_col_header_height(&mut self, height: i32); fn col_header_height(&self) -> i32; fn set_row_header_width(&mut self, width: i32); fn row_header_width(&self) -> i32; fn set_row_header_color(&mut self, val: Color); fn row_header_color(&self) -> Color; fn set_col_header_color(&mut self, val: Color); fn col_header_color(&self) -> Color; fn set_row_height(&mut self, row: i32, height: i32); fn row_height(&self, row: i32) -> i32; fn set_col_width(&mut self, col: i32, width: i32); fn col_width(&self, col: i32) -> i32; fn set_row_height_all(&mut self, height: i32); fn set_col_width_all(&mut self, width: i32); fn set_row_position(&mut self, row: i32); fn set_col_position(&mut self, col: i32); fn row_position(&self) -> i32; fn col_position(&self) -> i32; fn set_top_row(&mut self, row: i32); fn top_row(&self) -> i32; fn is_selected(&self, r: i32, c: i32) -> bool; fn get_selection(&self) -> (i32, i32, i32, i32); fn set_selection(
&mut self,
row_top: i32,
col_left: i32,
row_bot: i32,
col_right: i32
); fn unset_selection(&mut self); fn move_cursor_with_shift_select(
&mut self,
r: i32,
c: i32,
shiftselect: bool
) -> Result<(), FltkError>; fn move_cursor(&mut self, r: i32, c: i32) -> Result<(), FltkError>; fn init_sizes(&mut self); fn scrollbar_size(&self) -> i32; fn set_scrollbar_size(&mut self, new_size: i32); fn set_tab_cell_nav(&mut self, val: bool); fn tab_cell_nav(&self) -> bool; fn draw_cell<F: FnMut(&mut Self, TableContext, i32, i32, i32, i32, i32, i32) + 'static>(
&mut self,
cb: F
); unsafe fn draw_cell_data(&self) -> Option<Box<dyn FnMut()>>; fn callback_col(&self) -> i32; fn callback_row(&self) -> i32; fn callback_context(&self) -> TableContext;
Expand description
Defines the methods implemented by table types
Required methods
fn clear(&mut self)
[src]
fn clear(&mut self)
[src]Clears the table
fn set_table_frame(&mut self, frame: FrameType)
[src]
fn set_table_frame(&mut self, frame: FrameType)
[src]Sets the table frame
fn table_frame(&self) -> FrameType
[src]
fn table_frame(&self) -> FrameType
[src]Gets the table frame
fn set_rows(&mut self, val: i32)
[src]
fn set_rows(&mut self, val: i32)
[src]Sets the number of rows
fn rows(&self) -> i32
[src]
fn rows(&self) -> i32
[src]Gets the number of rows
fn set_cols(&mut self, val: i32)
[src]
fn set_cols(&mut self, val: i32)
[src]Sets the number of columns
fn cols(&self) -> i32
[src]
fn cols(&self) -> i32
[src]Gets the number of columns
fn visible_cells(&self) -> (i32, i32, i32, i32)
[src]
fn visible_cells(&self) -> (i32, i32, i32, i32)
[src]The range of row and column numbers for all visible and partially visible cells in the table.
Returns (row_top
, col_left
, row_bot
, col_right
)
fn is_interactive_resize(&self) -> bool
[src]
fn is_interactive_resize(&self) -> bool
[src]Returns whether the resize is interactive
fn row_resize(&self) -> bool
[src]
fn row_resize(&self) -> bool
[src]Returns whether a row is resizable
fn set_row_resize(&mut self, flag: bool)
[src]
fn set_row_resize(&mut self, flag: bool)
[src]Sets a row to be resizable
fn col_resize(&self) -> bool
[src]
fn col_resize(&self) -> bool
[src]Returns whether a column is resizable
fn set_col_resize(&mut self, flag: bool)
[src]
fn set_col_resize(&mut self, flag: bool)
[src]Sets a column to be resizable
fn col_resize_min(&self) -> i32
[src]
fn col_resize_min(&self) -> i32
[src]Returns the current column minimum resize value.
fn set_col_resize_min(&mut self, val: i32)
[src]
fn set_col_resize_min(&mut self, val: i32)
[src]Sets the current column minimum resize value.
fn row_resize_min(&self) -> i32
[src]
fn row_resize_min(&self) -> i32
[src]Returns the current row minimum resize value.
fn set_row_resize_min(&mut self, val: i32)
[src]
fn set_row_resize_min(&mut self, val: i32)
[src]Sets the current row minimum resize value.
fn row_header(&self) -> bool
[src]
fn row_header(&self) -> bool
[src]Returns if row headers are enabled or not
fn set_row_header(&mut self, flag: bool)
[src]
fn set_row_header(&mut self, flag: bool)
[src]Sets whether a row headers are enabled or not
fn col_header(&self) -> bool
[src]
fn col_header(&self) -> bool
[src]Returns if column headers are enabled or not
fn set_col_header(&mut self, flag: bool)
[src]
fn set_col_header(&mut self, flag: bool)
[src]Sets whether a column headers are enabled or not
fn set_col_header_height(&mut self, height: i32)
[src]
fn set_col_header_height(&mut self, height: i32)
[src]Sets the column header height
fn col_header_height(&self) -> i32
[src]
fn col_header_height(&self) -> i32
[src]Gets the column header height
fn set_row_header_width(&mut self, width: i32)
[src]
fn set_row_header_width(&mut self, width: i32)
[src]Sets the row header width
fn row_header_width(&self) -> i32
[src]
fn row_header_width(&self) -> i32
[src]Gets the row header width
fn set_row_header_color(&mut self, val: Color)
[src]
fn set_row_header_color(&mut self, val: Color)
[src]Sets the row header color
fn row_header_color(&self) -> Color
[src]
fn row_header_color(&self) -> Color
[src]Gets the row header color
fn set_col_header_color(&mut self, val: Color)
[src]
fn set_col_header_color(&mut self, val: Color)
[src]Sets the column header color
fn col_header_color(&self) -> Color
[src]
fn col_header_color(&self) -> Color
[src]Gets the row header color
fn set_row_height(&mut self, row: i32, height: i32)
[src]
fn set_row_height(&mut self, row: i32, height: i32)
[src]Sets the row’s height
fn row_height(&self, row: i32) -> i32
[src]
fn row_height(&self, row: i32) -> i32
[src]Gets the row’s height
fn set_col_width(&mut self, col: i32, width: i32)
[src]
fn set_col_width(&mut self, col: i32, width: i32)
[src]Sets the columns’s width
fn col_width(&self, col: i32) -> i32
[src]
fn col_width(&self, col: i32) -> i32
[src]Gets the columns’s width
fn set_row_height_all(&mut self, height: i32)
[src]
fn set_row_height_all(&mut self, height: i32)
[src]Sets all rows height
fn set_col_width_all(&mut self, width: i32)
[src]
fn set_col_width_all(&mut self, width: i32)
[src]Sets all columns’s width
fn set_row_position(&mut self, row: i32)
[src]
fn set_row_position(&mut self, row: i32)
[src]Sets the row’s position
fn set_col_position(&mut self, col: i32)
[src]
fn set_col_position(&mut self, col: i32)
[src]Sets the columns’s position
fn row_position(&self) -> i32
[src]
fn row_position(&self) -> i32
[src]Gets the row’s position
fn col_position(&self) -> i32
[src]
fn col_position(&self) -> i32
[src]Gets the columns’s position
fn set_top_row(&mut self, row: i32)
[src]
fn set_top_row(&mut self, row: i32)
[src]Sets the top row
fn top_row(&self) -> i32
[src]
fn top_row(&self) -> i32
[src]Gets the top row
fn is_selected(&self, r: i32, c: i32) -> bool
[src]
fn is_selected(&self, r: i32, c: i32) -> bool
[src]Returns whether a cell is selected
fn get_selection(&self) -> (i32, i32, i32, i32)
[src]
fn get_selection(&self) -> (i32, i32, i32, i32)
[src]Gets the selection.
Returns (row_top
, col_left
, row_bot
, col_right
)
fn set_selection(
&mut self,
row_top: i32,
col_left: i32,
row_bot: i32,
col_right: i32
)
[src]
fn set_selection(
&mut self,
row_top: i32,
col_left: i32,
row_bot: i32,
col_right: i32
)
[src]Sets the selection
fn unset_selection(&mut self)
[src]
fn unset_selection(&mut self)
[src]Unset selection
fn move_cursor_with_shift_select(
&mut self,
r: i32,
c: i32,
shiftselect: bool
) -> Result<(), FltkError>
[src]
fn move_cursor_with_shift_select(
&mut self,
r: i32,
c: i32,
shiftselect: bool
) -> Result<(), FltkError>
[src]fn move_cursor(&mut self, r: i32, c: i32) -> Result<(), FltkError>
[src]
fn move_cursor(&mut self, r: i32, c: i32) -> Result<(), FltkError>
[src]fn init_sizes(&mut self)
[src]
fn init_sizes(&mut self)
[src]Resets the internal array of widget sizes and positions.
fn scrollbar_size(&self) -> i32
[src]
fn scrollbar_size(&self) -> i32
[src]Returns the scrollbar size
fn set_scrollbar_size(&mut self, new_size: i32)
[src]
fn set_scrollbar_size(&mut self, new_size: i32)
[src]Sets the scrollbar size
fn set_tab_cell_nav(&mut self, val: bool)
[src]
fn set_tab_cell_nav(&mut self, val: bool)
[src]Sets whether tab key cell navigation is enabled
fn tab_cell_nav(&self) -> bool
[src]
fn tab_cell_nav(&self) -> bool
[src]Returns whether tab key cell navigation is enabled
fn draw_cell<F: FnMut(&mut Self, TableContext, i32, i32, i32, i32, i32, i32) + 'static>(
&mut self,
cb: F
)
[src]
fn draw_cell<F: FnMut(&mut Self, TableContext, i32, i32, i32, i32, i32, i32) + 'static>(
&mut self,
cb: F
)
[src]Override draw_cell
.
callback args: &mut self, TableContext
, Row: i32, Column: i32, X: i32, Y: i32, Width: i32 and Height: i32.
takes the widget as a closure argument
unsafe fn draw_cell_data(&self) -> Option<Box<dyn FnMut()>>
[src]
unsafe fn draw_cell_data(&self) -> Option<Box<dyn FnMut()>>
[src]INTERNAL: Retrieve the draw cell data
Safety
Can return multiple mutable references to the draw_cell_data
fn callback_col(&self) -> i32
[src]
fn callback_col(&self) -> i32
[src]Get the callback column, should be called from within a callback
fn callback_row(&self) -> i32
[src]
fn callback_row(&self) -> i32
[src]Get the callback row, should be called from within a callback
fn callback_context(&self) -> TableContext
[src]
fn callback_context(&self) -> TableContext
[src]Get the callback context, should be called from within a callback
Implementors
impl TableExt for Table
[src]
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: i32)
[src]
fn rows(&self) -> i32
[src]
fn set_cols(&mut self, val: i32)
[src]
fn cols(&self) -> i32
[src]
fn visible_cells(&self) -> (i32, i32, i32, i32)
[src]
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) -> i32
[src]
fn set_col_resize_min(&mut self, val: i32)
[src]
fn row_resize_min(&self) -> i32
[src]
fn set_row_resize_min(&mut self, val: i32)
[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) -> (i32, i32, i32, i32)
[src]
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 unset_selection(&mut self)
[src]
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) -> i32
[src]
fn set_scrollbar_size(&mut self, new_size: i32)
[src]
fn set_tab_cell_nav(&mut self, val: bool)
[src]
fn tab_cell_nav(&self) -> bool
[src]
fn draw_cell<F: FnMut(&mut Self, TableContext, i32, i32, i32, i32, i32, i32) + 'static>(
&mut self,
cb: F
)
[src]
&mut self,
cb: F
)
unsafe fn draw_cell_data(&self) -> Option<Box<dyn FnMut()>>
[src]
fn callback_col(&self) -> i32
[src]
fn callback_row(&self) -> i32
[src]
fn callback_context(&self) -> TableContext
[src]
impl TableExt for TableRow
[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: i32)
[src]
fn rows(&self) -> i32
[src]
fn set_cols(&mut self, val: i32)
[src]
fn cols(&self) -> i32
[src]
fn visible_cells(&self) -> (i32, i32, i32, i32)
[src]
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) -> i32
[src]
fn set_col_resize_min(&mut self, val: i32)
[src]
fn row_resize_min(&self) -> i32
[src]
fn set_row_resize_min(&mut self, val: i32)
[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) -> (i32, i32, i32, i32)
[src]
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 unset_selection(&mut self)
[src]
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) -> i32
[src]
fn set_scrollbar_size(&mut self, new_size: i32)
[src]
fn set_tab_cell_nav(&mut self, val: bool)
[src]
fn tab_cell_nav(&self) -> bool
[src]
fn draw_cell<F: FnMut(&mut Self, TableContext, i32, i32, i32, i32, i32, i32) + 'static>(
&mut self,
cb: F
)
[src]
&mut self,
cb: F
)