Trait fltk::prelude::TableExt[][src]

pub unsafe trait TableExt: GroupExt {
Show 58 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 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;
fn scrollbar(&self) -> Scrollbar;
fn hscrollbar(&self) -> Scrollbar;
}
Expand description

Defines the methods implemented by table types

Required methods

Clears the table

Sets the table frame

Gets the table frame

Sets the number of rows

Gets the number of rows

Sets the number of columns

Gets the number of columns

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)

Returns whether the resize is interactive

Returns whether a row is resizable

Sets a row to be resizable

Returns whether a column is resizable

Sets a column to be resizable

Returns the current column minimum resize value.

Sets the current column minimum resize value.

Returns the current row minimum resize value.

Sets the current row minimum resize value.

Returns if row headers are enabled or not

Sets whether a row headers are enabled or not

Returns if column headers are enabled or not

Sets whether a column headers are enabled or not

Sets the column header height

Gets the column header height

Sets the row header width

Gets the row header width

Sets the row header color

Gets the row header color

Sets the column header color

Gets the row header color

Sets the row’s height

Gets the row’s height

Sets the columns’s width

Gets the columns’s width

Sets all rows height

Sets all columns’s width

Sets the row’s position

Sets the columns’s position

Gets the row’s position

Gets the columns’s position

Sets the top row

Gets the top row

Returns whether a cell is selected

Gets the selection. Returns (row_top, col_left, row_bot, col_right)

Sets the selection

Unset selection

Moves the cursor with shift select

Errors

Errors on failure to move the cursor

Moves the cursor

Errors

Errors on failure to move the cursor

Returns the scrollbar size

Sets the scrollbar size

Sets whether tab key cell navigation is enabled

Returns whether tab key cell navigation is enabled

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

INTERNAL: Retrieve the draw cell data

Safety

Can return multiple mutable references to the draw_cell_data

Get the callback column, should be called from within a callback

Get the callback row, should be called from within a callback

Get the callback context, should be called from within a callback

Returns the table’s vertical scrollbar

Returns the table’s horizontal scrollbar

Implementors