class Hpdf::Cell
- Hpdf::Cell
- Hpdf::BaseCell
- Reference
- Object
Overview
The cell uses a simple captured block to render the cell content.
Defined in:
hpdf/table.crConstructors
-
.new(*, span : Number = 1, &block : Page, Rectangle -> )
Creates a cell with the provided block to render.
Instance Method Summary
- #block : Hpdf::Page, Hpdf::Rectangle -> Nil
- #block=(block : Hpdf::Page, Hpdf::Rectangle -> _)
-
#render(page : Page)
renders the captured block
Instance methods inherited from class Hpdf::BaseCell
rect : Rectangle | Nil
rect,
rect=(rect : Rectangle | Nil)
rect=,
render(page : Page)
render,
span : Float32
span,
span=(span : Float32)
span=
Constructor methods inherited from class Hpdf::BaseCell
new(*, span : Number = 1)
new
Constructor Detail
Creates a cell with the provided block to render. The block provides a reference to the page and a rectange of the cell.
- span a cell can expand more then one cell (in the right direction)
the default value
1
means no extend