class Hpdf::TextCell
 
  - Hpdf::TextCell
 - Hpdf::BaseCell
 - Reference
 - Object
 
Overview
The text cell renders the given text
Defined in:
hpdf/table.crConstructors
Instance Method Summary
- 
        #grow_height : Float64
        
          
returns the factor by which the cell wants to grow in height
 - #rect : Rectangle | Nil
 - #rect=(rect : Rectangle | Nil)
 - 
        #render(page : Page)
        
          
renders the captured block
 
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)
        #
      
      
      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