Trait rckive_genpdf::elements::CellDecorator
source · 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§
Provided Methods§
sourcefn set_table_size(&mut self, num_columns: usize, num_rows: usize)
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 prepare_cell
or
decorate_cell
.