class HexaPDF:: Layout:: InlineBox
Parent | Object |
---|
An InlineBox
wraps a regular Box
so that it can be used as an item for a Line
. This enables inline graphics.
The wrapped box must have a fixed size!
Attributes
Public Class Methods
Creates an InlineBox
that wraps a basic Box
. All arguments (except valign
) and the block are passed to Box::create
.
See ::new
for the valign
argument.
Public Instance Methods
Draws the wrapped box. If the box has margins specified, the x and y offsets are correctly adjusted.
Returns true
if this inline box is just a placeholder without drawing operations.
Returns the height of the wrapped box plus its top and bottom margins.
Returns the width of the wrapped box plus its left and right margins.
The maximum x-coordinate which is equivalent to the width of the inline box.
The minimum x-coordinate which is always 0.
The maximum y-coordinate which is equivalent to the height of the inline box.
The minimum y-coordinate which is always 0.