Documentation

LineBox
in package

The line box class

This class represents a line box http://www.w3.org/TR/CSS2/visuren.html#line-box

Table of Contents

$br  : bool
$floating_blocks  : array<string|int, bool>
$h  : float
$left  : float
$right  : float
$tallest_frame  : Frame
$w  : float
$wc  : int
$y  : float
$_block_frame  : Block
$_frames  : array<string|int, Frame>
__construct()  : mixed
Class constructor
__toString()  : string
add_frame()  : mixed
get_block_frame()  : Block
get_float_offsets()  : mixed
get_floats_inside()  : array<string|int, Frame>
Returns the floating elements inside the first floating parent
get_frames()  : array<string|int, Frame>
get_width()  : float
recalculate_width()  : float
Recalculate LineBox width based on the contained frames total width.

Properties

$floating_blocks

public array<string|int, bool> $floating_blocks = []

Methods

__construct()

Class constructor

public __construct(Block $frame, int $y) : mixed
Parameters
$frame : Block

the Block containing this line

$y : int
Return values
mixed

__toString()

public __toString() : string
Return values
string

add_frame()

public add_frame(Frame $frame) : mixed
Parameters
$frame : Frame
Return values
mixed

get_float_offsets()

public get_float_offsets() : mixed
Return values
mixed

get_floats_inside()

Returns the floating elements inside the first floating parent

public get_floats_inside(Page $root) : array<string|int, Frame>
Parameters
$root : Page
Return values
array<string|int, Frame>

get_frames()

public get_frames() : array<string|int, Frame>
Return values
array<string|int, Frame>

get_width()

public get_width() : float
Return values
float

recalculate_width()

Recalculate LineBox width based on the contained frames total width.

public recalculate_width() : float
Return values
float

Search results