Skip to main content

TableStyle

Trait TableStyle 

Source
pub trait TableStyle: 'static {
    // Required methods
    fn make_header_cell(
        &self,
        cfg: &TableHeaderCellConfig,
        ctx: &mut BuildContext<'_>,
    ) -> WidgetId;
    fn make_sort_indicator(
        &self,
        direction: SortDirection,
        ctx: &mut BuildContext<'_>,
    ) -> WidgetId;
    fn make_row_background(
        &self,
        cfg: &TableRowConfig,
        ctx: &mut BuildContext<'_>,
    ) -> WidgetId;
    fn grid(&self) -> TableGridRecipe;
}

Required Methods§

Source

fn make_header_cell( &self, cfg: &TableHeaderCellConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId

Source

fn make_sort_indicator( &self, direction: SortDirection, ctx: &mut BuildContext<'_>, ) -> WidgetId

Source

fn make_row_background( &self, cfg: &TableRowConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId

Row-band chrome (selection / hover / alt) — composed behind the cells.

Source

fn grid(&self) -> TableGridRecipe

Grid-line + frozen-column-shadow recipe — the table’s own paint pass batches over the virtualized viewport using this data.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§