Class Prawn::Document::Box
In: lib/prawn/layout/grid.rb
Parent: Object

A Box is a class that represents a bounded area of a page. A Grid object has methods that allow easy access to the coordinates of its corners, which can be plugged into most existing prawnmethods.

Methods

bottom   bottom_left   bottom_right   bounding_box   gutter   height   left   name   new   right   show   top   top_left   top_right   total_height   width  

Attributes

pdf  [R] 

Public Class methods

Public Instance methods

y-coordinate of the bottom

x,y coordinates of bottom left corner

x,y coordinates of bottom right corner

Creates a standard bounding box based on the grid box.

Width of the gutter

Height of a box

x-coordinate of left side

Mostly diagnostic method that outputs the name of a box as col_num, row_num

x-coordinate of right side

y-coordinate of the top

x,y coordinates of top left corner

x,y coordinates of top right corner

Width of a box

[Validate]