class

Hpdf::Row

Inherits Reference / Object

The row is part of a Table and hold multiple Cell in the same vertical position.

Constructors

new(*, height : Int32 = 0, allow_grow : Bool = false)

Create a new row

Source

Instance methods

add_cell(cell : BaseCell)

add the passed cell to the row (at the end)

Source
allow_grow=(allow_grow : Bool)
Source
allow_grow?
Source
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

Source
cells
Source
cells=(cells : Array(Hpdf::BaseCell))
Source
grow_height
Source
height
Source
height=(height : Int32)
Source
rect
Source
rect=(rect : Rectangle | Nil)
Source
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

Source