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
$br
public
bool
$br
= false
$floating_blocks
public
array<string|int, bool>
$floating_blocks
= []
$h
public
float
$h
= 0.0
$left
public
float
$left
= 0.0
$right
public
float
$right
= 0.0
$tallest_frame
public
Frame
$tallest_frame
= null
$w
public
float
$w
= 0.0
$wc
public
int
$wc
= 0
$y
public
float
$y
= null
$_block_frame
protected
Block
$_block_frame
$_frames
protected
array<string|int, Frame>
$_frames
= []
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_block_frame()
public
get_block_frame() : Block
Return values
Block —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