[−][src]Trait genpdf::elements::CellDecorator
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
)
&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.
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
.