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(*, height : Int32 = 0, allow_grow : Bool = false)
Create a new row
Instance Method Summary
-
#add_cell(cell : BaseCell)
add the passed cell to the row (at the end)
- #allow_grow=(allow_grow : Bool)
- #allow_grow? : Bool
-
#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))
- #grow_height : Float64
- #height : Int32
- #height=(height : Int32)
- #rect : Rectangle | Nil
- #rect=(rect : Rectangle | Nil)
-
#text_cell(text : String, *, 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, *, 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