pub trait CellDecorator {
    fn decorate_cell(
        &mut self,
        column: usize,
        row: usize,
        has_more: bool,
        area: Area<'_>,
        row_height: Mm
    ) -> Mm; fn set_table_size(&mut self, num_columns: usize, num_rows: usize) { ... } fn prepare_cell<'p>(
        &self,
        column: usize,
        row: usize,
        area: Area<'p>
    ) -> Area<'p> { ... } }
Expand description

A decorator for table cells.

Implementations of this trait can be used to style cells of a TableLayout.

Required Methods§

Styles the cell with the given indizes thas has been rendered within the given area and the given row height and return the total row height.

Provided Methods§

Sets the size of the table.

This function is called once before the first call to prepare_cell or decorate_cell.

Prepares the cell with the given indizes and returns the area for rendering the cell.

Implementors§