Shadow
in package
implements
IComparable
Table of Contents
Interfaces
Constants
- SHADOW_BOTTOM = 'b'
- SHADOW_BOTTOM_LEFT = 'bl'
- SHADOW_BOTTOM_RIGHT = 'br'
- SHADOW_CENTER = 'ctr'
- SHADOW_LEFT = 'l'
- SHADOW_TOP = 't'
- SHADOW_TOP_LEFT = 'tl'
- SHADOW_TOP_RIGHT = 'tr'
Properties
- $alignment : string
- Shadow alignment.
- $alpha : int
- Alpha.
- $blurRadius : int
- Blur radius.
- $color : Color
- Color.
- $direction : int
- Shadow direction (in degrees).
- $distance : int
- Shadow distance.
- $visible : bool
- Visible.
Methods
- __clone() : mixed
- Implement PHP __clone to create a deep clone, not just a shallow copy.
- __construct() : mixed
- Create a new Shadow.
- getAlignment() : string
- Get Shadow alignment.
- getAlpha() : int
- Get Alpha.
- getBlurRadius() : int
- Get Blur radius.
- getColor() : Color
- Get Color.
- getDirection() : int
- Get Shadow direction (in degrees).
- getDistance() : int
- Get Shadow distance.
- getHashCode() : string
- Get hash code.
- getVisible() : bool
- Get Visible.
- setAlignment() : $this
- Set Shadow alignment.
- setAlpha() : $this
- Set Alpha.
- setBlurRadius() : $this
- Set Blur radius.
- setColor() : $this
- Set Color.
- setDirection() : $this
- Set Shadow direction (in degrees).
- setDistance() : $this
- Set Shadow distance.
- setVisible() : $this
- Set Visible.
Constants
SHADOW_BOTTOM
public
mixed
SHADOW_BOTTOM
= 'b'
SHADOW_BOTTOM_LEFT
public
mixed
SHADOW_BOTTOM_LEFT
= 'bl'
SHADOW_BOTTOM_RIGHT
public
mixed
SHADOW_BOTTOM_RIGHT
= 'br'
SHADOW_CENTER
public
mixed
SHADOW_CENTER
= 'ctr'
SHADOW_LEFT
public
mixed
SHADOW_LEFT
= 'l'
SHADOW_TOP
public
mixed
SHADOW_TOP
= 't'
SHADOW_TOP_LEFT
public
mixed
SHADOW_TOP_LEFT
= 'tl'
SHADOW_TOP_RIGHT
public
mixed
SHADOW_TOP_RIGHT
= 'tr'
Properties
$alignment
Shadow alignment.
private
string
$alignment
$alpha
Alpha.
private
int
$alpha
$blurRadius
Blur radius.
private
int
$blurRadius
Defaults to 6
$color
Color.
private
Color
$color
$direction
Shadow direction (in degrees).
private
int
$direction
$distance
Shadow distance.
private
int
$distance
Defaults to 2
$visible
Visible.
private
bool
$visible
Methods
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
public
__clone() : mixed
__construct()
Create a new Shadow.
public
__construct() : mixed
getAlignment()
Get Shadow alignment.
public
getAlignment() : string
Return values
stringgetAlpha()
Get Alpha.
public
getAlpha() : int
Return values
intgetBlurRadius()
Get Blur radius.
public
getBlurRadius() : int
Return values
intgetColor()
Get Color.
public
getColor() : Color
Return values
ColorgetDirection()
Get Shadow direction (in degrees).
public
getDirection() : int
Return values
intgetDistance()
Get Shadow distance.
public
getDistance() : int
Return values
intgetHashCode()
Get hash code.
public
getHashCode() : string
Return values
string —Hash code
getVisible()
Get Visible.
public
getVisible() : bool
Return values
boolsetAlignment()
Set Shadow alignment.
public
setAlignment(string $alignment) : $this
Parameters
- $alignment : string
Return values
$thissetAlpha()
Set Alpha.
public
setAlpha(int $alpha) : $this
Parameters
- $alpha : int
Return values
$thissetBlurRadius()
Set Blur radius.
public
setBlurRadius(int $blurRadius) : $this
Parameters
- $blurRadius : int
Return values
$thissetColor()
Set Color.
public
setColor(Color $color) : $this
Parameters
- $color : Color
Return values
$thissetDirection()
Set Shadow direction (in degrees).
public
setDirection(int $direction) : $this
Parameters
- $direction : int
Return values
$thissetDistance()
Set Shadow distance.
public
setDistance(int $distance) : $this
Parameters
- $distance : int
Return values
$thissetVisible()
Set Visible.
public
setVisible(bool $visible) : $this
Parameters
- $visible : bool