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

pub unsafe trait TableExt: GroupExt {
    pub fn clear(&mut self);
pub fn set_table_frame(&mut self, frame: FrameType);
pub fn table_frame(&self) -> FrameType;
pub fn set_rows(&mut self, val: u32);
pub fn rows(&self) -> u32;
pub fn set_cols(&mut self, val: u32);
pub fn cols(&self) -> u32;
pub fn visible_cells(
        &mut self,
        r1: &mut i32,
        r2: &mut i32,
        c1: &mut i32,
        c2: &mut i32
    );
pub fn is_interactive_resize(&self) -> bool;
pub fn row_resize(&self) -> bool;
pub fn set_row_resize(&mut self, flag: bool);
pub fn col_resize(&self) -> bool;
pub fn set_col_resize(&mut self, flag: bool);
pub fn col_resize_min(&self) -> u32;
pub fn set_col_resize_min(&mut self, val: u32);
pub fn row_resize_min(&self) -> u32;
pub fn set_row_resize_min(&mut self, val: u32);
pub fn row_header(&self) -> bool;
pub fn set_row_header(&mut self, flag: bool);
pub fn col_header(&self) -> bool;
pub fn set_col_header(&mut self, flag: bool);
pub fn set_col_header_height(&mut self, height: i32);
pub fn col_header_height(&self) -> i32;
pub fn set_row_header_width(&mut self, width: i32);
pub fn row_header_width(&self) -> i32;
pub fn set_row_header_color(&mut self, val: Color);
pub fn row_header_color(&self) -> Color;
pub fn set_col_header_color(&mut self, val: Color);
pub fn col_header_color(&self) -> Color;
pub fn set_row_height(&mut self, row: i32, height: i32);
pub fn row_height(&self, row: i32) -> i32;
pub fn set_col_width(&mut self, col: i32, width: i32);
pub fn col_width(&self, col: i32) -> i32;
pub fn set_row_height_all(&mut self, height: i32);
pub fn set_col_width_all(&mut self, width: i32);
pub fn set_row_position(&mut self, row: i32);
pub fn set_col_position(&mut self, col: i32);
pub fn row_position(&self) -> i32;
pub fn col_position(&self) -> i32;
pub fn set_top_row(&mut self, row: i32);
pub fn top_row(&self) -> i32;
pub fn is_selected(&self, r: i32, c: i32) -> bool;
pub fn get_selection(
        &self,
        row_top: &mut i32,
        col_left: &mut i32,
        row_bot: &mut i32,
        col_right: &mut i32
    );
pub fn set_selection(
        &mut self,
        row_top: i32,
        col_left: i32,
        row_bot: i32,
        col_right: i32
    );
pub fn move_cursor_with_shift_select(
        &mut self,
        r: i32,
        c: i32,
        shiftselect: bool
    ) -> Result<(), FltkError>;
pub fn move_cursor(&mut self, r: i32, c: i32) -> Result<(), FltkError>;
pub fn init_sizes(&mut self);
pub fn scrollbar_size(&self) -> u32;
pub fn set_scrollbar_size(&mut self, new_size: u32);
pub fn set_tab_cell_nav(&mut self, val: u32);
pub fn tab_cell_nav(&self) -> u32;
pub fn draw_cell<F: FnMut(TableContext, i32, i32, i32, i32, i32, i32) + 'static>(
        &mut self,
        cb: F
    );
pub fn draw_cell2<F: FnMut(&mut Self, TableContext, i32, i32, i32, i32, i32, i32) + 'static>(
        &mut self,
        cb: F
    );
pub unsafe fn draw_cell_data(&self) -> Option<Box<dyn FnMut()>>; }

Defines the methods implemented by table types

Required methods

pub fn clear(&mut self)[src]

Clears the table

pub fn set_table_frame(&mut self, frame: FrameType)[src]

Sets the table frame, table_box

pub fn table_frame(&self) -> FrameType[src]

Gets the table frame, table box

pub fn set_rows(&mut self, val: u32)[src]

Sets the number of rows

pub fn rows(&self) -> u32[src]

Gets the number of rows

pub fn set_cols(&mut self, val: u32)[src]

Sets the number of columns

pub fn cols(&self) -> u32[src]

Gets the number of columns

pub fn visible_cells(
    &mut self,
    r1: &mut i32,
    r2: &mut i32,
    c1: &mut i32,
    c2: &mut i32
)
[src]

Returns the range of row and column numbers for all visible and partially visible cells in the table.

pub fn is_interactive_resize(&self) -> bool[src]

Returns whether the resize is interactive

pub fn row_resize(&self) -> bool[src]

Returns whether a row is resizable

pub fn set_row_resize(&mut self, flag: bool)[src]

Sets a row to be resizable

pub fn col_resize(&self) -> bool[src]

Returns whether a column is resizable

pub fn set_col_resize(&mut self, flag: bool)[src]

Sets a column to be resizable

pub fn col_resize_min(&self) -> u32[src]

Returns the current column minimum resize value.

pub fn set_col_resize_min(&mut self, val: u32)[src]

Sets the current column minimum resize value.

pub fn row_resize_min(&self) -> u32[src]

Returns the current row minimum resize value.

pub fn set_row_resize_min(&mut self, val: u32)[src]

Sets the current row minimum resize value.

pub fn row_header(&self) -> bool[src]

Returns if row headers are enabled or not

pub fn set_row_header(&mut self, flag: bool)[src]

Sets whether a row headers are enabled or not

pub fn col_header(&self) -> bool[src]

Returns if column headers are enabled or not

pub fn set_col_header(&mut self, flag: bool)[src]

Sets whether a column headers are enabled or not

pub fn set_col_header_height(&mut self, height: i32)[src]

Sets the column header height

pub fn col_header_height(&self) -> i32[src]

Gets the column header height

pub fn set_row_header_width(&mut self, width: i32)[src]

Sets the row header width

pub fn row_header_width(&self) -> i32[src]

Gets the row header width

pub fn set_row_header_color(&mut self, val: Color)[src]

Sets the row header color

pub fn row_header_color(&self) -> Color[src]

Gets the row header color

pub fn set_col_header_color(&mut self, val: Color)[src]

Sets the column header color

pub fn col_header_color(&self) -> Color[src]

Gets the row header color

pub fn set_row_height(&mut self, row: i32, height: i32)[src]

Sets the row's height

pub fn row_height(&self, row: i32) -> i32[src]

Gets the row's height

pub fn set_col_width(&mut self, col: i32, width: i32)[src]

Sets the columns's width

pub fn col_width(&self, col: i32) -> i32[src]

Gets the columns's width

pub fn set_row_height_all(&mut self, height: i32)[src]

Sets all rows height

pub fn set_col_width_all(&mut self, width: i32)[src]

Sets all columns's width

pub fn set_row_position(&mut self, row: i32)[src]

Sets the row's position

pub fn set_col_position(&mut self, col: i32)[src]

Sets the columns's position

pub fn row_position(&self) -> i32[src]

Gets the row's position

pub fn col_position(&self) -> i32[src]

Gets the columns's position

pub fn set_top_row(&mut self, row: i32)[src]

Sets the top row

pub fn top_row(&self) -> i32[src]

Gets the top row

pub fn is_selected(&self, r: i32, c: i32) -> bool[src]

Returns whether a cell is selected

pub fn get_selection(
    &self,
    row_top: &mut i32,
    col_left: &mut i32,
    row_bot: &mut i32,
    col_right: &mut i32
)
[src]

Gets the selection

pub fn set_selection(
    &mut self,
    row_top: i32,
    col_left: i32,
    row_bot: i32,
    col_right: i32
)
[src]

Sets the selection

pub fn move_cursor_with_shift_select(
    &mut self,
    r: i32,
    c: i32,
    shiftselect: bool
) -> Result<(), FltkError>
[src]

Moves the cursor with shift select

pub fn move_cursor(&mut self, r: i32, c: i32) -> Result<(), FltkError>[src]

Moves the cursor

pub fn init_sizes(&mut self)[src]

Resets the internal array of widget sizes and positions.

pub fn scrollbar_size(&self) -> u32[src]

Returns the scrollbar size

pub fn set_scrollbar_size(&mut self, new_size: u32)[src]

Sets the scrollbar size

pub fn set_tab_cell_nav(&mut self, val: u32)[src]

Sets the tab key cell navigation

pub fn tab_cell_nav(&self) -> u32[src]

Returns the tab key cell navigation

pub fn draw_cell<F: FnMut(TableContext, i32, i32, i32, i32, i32, i32) + 'static>(
    &mut self,
    cb: F
)
[src]

Override draw_cell callback args: TableContext, Row: i32, Column: i32, X: i32, Y: i32, Width: i32 and Height: i32

pub fn draw_cell2<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

pub 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

Loading content...

Implementors

impl TableExt for Table[src]

impl TableExt for TableRow[src]

Loading content...