abstract class Hpdf::BaseCell

Overview

The cell is the smallest part of the Table. It is rendered before all grids in the order it was inserted into the Row and Table.

Direct Known Subclasses

Defined in:

hpdf/table.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, span : Number = 1) #

Creates a cell with the provided block and stores the cell span.

  • span a cell can expand more then one cell (in the right direction) the default value 1 means no extend

[View source]

Instance Method Detail

def rect : Rectangle | Nil #

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

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

[View source]
def span : Float32 #

[View source]
def span=(span : Float32) #

[View source]