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§
fn make_header_cell( &self, cfg: &TableHeaderCellConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId
fn make_sort_indicator( &self, direction: SortDirection, ctx: &mut BuildContext<'_>, ) -> WidgetId
Sourcefn make_row_background(
&self,
cfg: &TableRowConfig,
ctx: &mut BuildContext<'_>,
) -> WidgetId
fn make_row_background( &self, cfg: &TableRowConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId
Row-band chrome (selection / hover / alt) — composed behind the cells.
Sourcefn grid(&self) -> TableGridRecipe
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".