class HexaPDF:: Layout:: TextLayouter:: Result
| Parent | Object |
|---|
Encapsulates the result of layouting items using a TextLayouter and provides a method for drawing the result (i.e. the layed out lines) on a canvas.
Attributes
The actual height of all layed out lines (this includes a possible offset for the first line).
Array of layed out lines.
The remaining items that couldn’t be layed out.
The status after layouting the items:
:success-
There are no remaining items.
:box_too_wide-
A single text or inline box was too wide to fit alone on a line.
:height-
There was not enough height for all items to layout.
Even if the result is not :success, the layouting may still be successful depending on the usage. For example, if we expect that there may be too many items to fit, :height is still a success.
Public Class Methods
Public Instance Methods
Draws the layed out lines onto the canvas with the top-left corner being at [x, y].