TextShadowOffset
in package
implements
JsonSerializable
FinalYes
Offset positioning for text shadows.
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
Methods
- __construct() : mixed
- Create a new TextShadowOffset.
- create() : self
- Create a new offset.
- jsonSerialize() : array{x: float, y: float}
- {@inheritdoc}
Properties
$x read-only
private
float
$x
= 0
$y read-only
private
float
$y
= 0
Methods
__construct()
Create a new TextShadowOffset.
public
__construct([float $x = 0 ][, float $y = 0 ]) : mixed
Parameters
- $x : float = 0
-
The horizontal offset in points.
- $y : float = 0
-
The vertical offset in points.
create()
Create a new offset.
public
static create(float $x, float $y) : self
Parameters
- $x : float
-
The horizontal offset.
- $y : float
-
The vertical offset.
Return values
self —A new instance.
jsonSerialize()
{@inheritdoc}
public
jsonSerialize() : array{x: float, y: float}