class Hpdf::TextCell

Overview

The text cell renders the given text

Defined in:

hpdf/table.cr

Constructors

Instance Method Summary

Instance methods inherited from class Hpdf::BaseCell

allow_grow=(allow_grow : Bool) allow_grow=, allow_grow? : Bool allow_grow?, grow_height : Float64 grow_height, 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, allow_grow : Bool = false) new

Constructor Detail

def self.new(text : String, *, span : Number = 1, allow_grow = false, font : String = Hpdf::Base14::Helvetica, font_size : Number = 11, align : Hpdf::TextAlignment = Hpdf::TextAlignment::Center, bg_gray : Float32 = 0) #

[View source]

Instance Method Detail

def grow_height : Float64 #
Description copied from class Hpdf::BaseCell

returns the factor by which the cell wants to grow in height


[View source]
def rect : Rectangle | Nil #

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

[View source]
def render(page : Page) #

renders the captured block


[View source]