ListBullet
extends AbstractRenderer
in package
Renders list bullets
Tags
Table of Contents
- $_canvas : Canvas
- Rendering backend
- $_dompdf : Dompdf
- Current dompdf instance
- __construct() : mixed
- Class constructor
- get_counter_chars() : mixed|string
- render() : mixed
- Render a frame.
- _apply_ratio() : mixed
- _background_image() : mixed
- Render a background image over a rectangular area
- _border_dashed() : mixed
- _border_dotted() : mixed
- _border_double() : mixed
- _border_groove() : mixed
- _border_hidden() : mixed
- _border_inset() : mixed
- _border_line() : mixed
- Draws a solid, dotted, or dashed line, observing the border radius
- _border_none() : mixed
- _border_outset() : mixed
- _border_ridge() : mixed
- _border_solid() : mixed
- _debug_layout() : mixed
- _get_dash_pattern() : array<string|int, mixed>
- _resize_background_image() : array<string|int, mixed>
- _set_opacity() : mixed
- _shade() : mixed
- _tint() : mixed
- make_counter() : string
Properties
$_canvas
Rendering backend
protected
Canvas
$_canvas
$_dompdf
Current dompdf instance
protected
Dompdf
$_dompdf
Methods
__construct()
Class constructor
public
__construct(Dompdf $dompdf) : mixed
Parameters
- $dompdf : Dompdf
-
The current dompdf instance
Return values
mixed —get_counter_chars()
public
static get_counter_chars( $type) : mixed|string
Parameters
Return values
mixed|string —render()
Render a frame.
public
render(Frame $frame) : mixed
Parameters
- $frame : Frame
Return values
mixed —_apply_ratio()
protected
_apply_ratio( $side, $ratio, $top, $right, $bottom, $left, &$x, &$y, &$length, &$r1, &$r2) : mixed
Parameters
Return values
mixed —_background_image()
Render a background image over a rectangular area
protected
_background_image(string $url, float $x, float $y, float $width, float $height, Style $style) : mixed
Parameters
- $url : string
-
The background image to load
- $x : float
-
The left edge of the rectangular area
- $y : float
-
The top edge of the rectangular area
- $width : float
-
The width of the rectangular area
- $height : float
-
The height of the rectangular area
- $style : Style
-
The associated Style object
Tags
Return values
mixed —_border_dashed()
protected
_border_dashed( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_border_dotted()
protected
_border_dotted( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_border_double()
protected
_border_double( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_border_groove()
protected
_border_groove( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_border_hidden()
protected
_border_hidden( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_border_inset()
protected
_border_inset( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_border_line()
Draws a solid, dotted, or dashed line, observing the border radius
protected
_border_line( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], $pattern_name, int $r1, int $r2) : mixed
Parameters
- $x :
- $y :
- $length :
- $color :
- $widths :
- $side :
- $corner_style : string = "bevel"
- $pattern_name :
- $r1 : int
- $r2 : int
Return values
mixed —_border_none()
protected
_border_none( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_border_outset()
protected
_border_outset( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_border_ridge()
protected
_border_ridge( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_border_solid()
protected
_border_solid( $x, $y, $length, $color, $widths, $side[, string $corner_style = "bevel" ], int $r1, int $r2) : mixed
Parameters
Return values
mixed —_debug_layout()
protected
_debug_layout( $box[, string $color = "red" ][, array<string|int, mixed> $style = [] ]) : mixed
Parameters
Return values
mixed —_get_dash_pattern()
protected
_get_dash_pattern( $style, $width) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —_resize_background_image()
protected
_resize_background_image(float $img_width, float $img_height, float $container_width, float $container_height, array<string|int, mixed>|string $bg_resize, int $dpi) : array<string|int, mixed>
Parameters
- $img_width : float
- $img_height : float
- $container_width : float
- $container_height : float
- $bg_resize : array<string|int, mixed>|string
- $dpi : int
Return values
array<string|int, mixed> —_set_opacity()
protected
_set_opacity( $opacity) : mixed
Parameters
Return values
mixed —_shade()
protected
_shade( $c) : mixed
Parameters
Return values
mixed —_tint()
protected
_tint( $c) : mixed
Parameters
Return values
mixed —make_counter()
private
make_counter(int $n, string $type[, int $pad = null ]) : string
Parameters
- $n : int
- $type : string
- $pad : int = null