DVUI

CellStyle

Provides cell options and widget options for grid cells. styling options can vary by row and column

CellStyle structs must provide the following functions:

  • pub fn cellOptions(self: *const T, col: usize, row: usize) CellOptions
  • pub fn options(self: *const T, col: usize, row: usize) Options

Fields

#
cell_opts:CellOptions
CellOptions
opts:Options
Options

Types

#
Banded

Banded cell styling.

HoveredRow

Applies the fill_hover colour to all cells on the hovered row.

Borders

Draw borders around cells.

Type Functions

#
Combine

Allow two CellStyles to be used together.

Functions

#
cellOptions

Returns the cellOptions for this cell. col and row are ignored.

options

Return widget options for this cell. col and row are ignored.

cellOptionsOverride

Return a new CellStyle with overridden CellOptions

optionsOverride

Return a new CellStyle with overridden Options

Constants

#