[][src]Trait genpdf::elements::CellDecorator

pub trait CellDecorator {
    fn decorate_cell(
        &mut self,
        column: usize,
        row: usize,
        has_more: bool,
        area: Area<'_>,
        style: Style
    ); fn set_table_size(&mut self, num_columns: usize, num_rows: usize) { ... } }

A decorator for table cells.

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

Required methods

fn decorate_cell(
    &mut self,
    column: usize,
    row: usize,
    has_more: bool,
    area: Area<'_>,
    style: Style
)

Styles the cell with the given indizes thas has been rendered within the given area.

Loading content...

Provided methods

fn set_table_size(&mut self, num_columns: usize, num_rows: usize)

Sets the size of the table.

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

Loading content...

Implementors

impl CellDecorator for FrameCellDecorator[src]

Loading content...