class Hpdf::Row

Overview

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

Defined in:

hpdf/table.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, height : Int32 = 0, allow_grow : Bool = false) #

Create a new row


[View source]

Instance Method Detail

def add_cell(cell : BaseCell) #

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


[View source]
def allow_grow=(allow_grow : Bool) #

[View source]
def allow_grow? : Bool #

[View source]
def 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


[View source]
def cells : Array(Hpdf::BaseCell) #

[View source]
def cells=(cells : Array(Hpdf::BaseCell)) #

[View source]
def grow_height : Float64 #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def rect : Rectangle | Nil #

[View source]
def rect=(rect : Rectangle | Nil) #

[View source]
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


[View source]