class HexaPDF::Layout::TextLayouter::Glue

Parent

Used for layouting. Describes a glue item, i.e. an item describing white space that could potentially be shrunk or stretched.

Attributes

item[R]

The wrapped item.

shrinkability[R]

The amount by which the glue could be shrunk.

stretchability[R]

The amount by which the glue could be stretched.

Public Class Methods

new(item, stretchability = item.width / 2, shrinkability = item.width / 3)

Creates a new Glue for the item.

Public Instance Methods

type()

Returns :glue.

width()

The width of the item.