class Hpdf::Row
- Hpdf::Row
- Reference
- Object
Overview
The row is part of a Table
and hold multiple
Cell
in the same vertical position.
Defined in:
hpdf/table.crConstructors
-
.new
Create a new row
Instance Method Summary
-
#add_cell(cell : BaseCell)
add the passed cell to the row (at the end)
-
#cell(*, span : Number = 1, &block : Page, Rectangle -> )
creates a cell by capturing the block for the cell and adding the cell to the end of the row
- #cells : Array(Hpdf::BaseCell)
- #cells=(cells : Array(Hpdf::BaseCell))
- #rect : Rectangle | Nil
- #rect=(rect : Rectangle | Nil)
-
#text_cell(text : String | Bytes, *, span : Number = 1, font : String = Hpdf::Base14::Helvetica, font_size : Number = 11, align : Hpdf::TextAlignment = Hpdf::TextAlignment::Left, bg_gray : Float32 = 0)
creates a new text cell using the passed parameters
Constructor Detail
Instance Method Detail
creates a cell by capturing the block for the cell and adding the cell to the end of the row
def text_cell(text : String | Bytes, *, span : Number = 1, font : String = Hpdf::Base14::Helvetica, font_size : Number = 11, align : Hpdf::TextAlignment = Hpdf::TextAlignment::Left, bg_gray : Float32 = 0)
#
creates a new text cell using the passed parameters