TypeInterface
in
Type interface
Tags
Table of Contents
- font() : TypeInterface
- Set the font
- getFillColor() : ColorInterface
- Get fill color
- getOpacity() : mixed
- Get the opacity
- getStrokeColor() : ColorInterface
- Get stroke color
- getStrokeWidth() : int
- Get stroke width
- rotate() : TypeInterface
- Set the rotation of the text
- setFillColor() : TypeInterface
- Set fill color
- setOpacity() : TypeInterface
- Set the opacity
- setStrokeColor() : TypeInterface
- Set stroke color
- setStrokeWidth() : TypeInterface
- Set stroke width
- size() : TypeInterface
- Set the font size
- x() : TypeInterface
- Set the X-position
- xy() : TypeInterface
- Set both the X- and Y-positions
- y() : TypeInterface
- Set the Y-position
Methods
font()
Set the font
public
font(string $font) : TypeInterface
Parameters
- $font : string
Return values
TypeInterface —getFillColor()
Get fill color
public
getFillColor() : ColorInterface
Return values
ColorInterface —getOpacity()
Get the opacity
public
getOpacity() : mixed
Return values
mixed —getStrokeColor()
Get stroke color
public
getStrokeColor() : ColorInterface
Return values
ColorInterface —getStrokeWidth()
Get stroke width
public
getStrokeWidth() : int
Return values
int —rotate()
Set the rotation of the text
public
rotate(int $degrees) : TypeInterface
Parameters
- $degrees : int
Return values
TypeInterface —setFillColor()
Set fill color
public
setFillColor(ColorInterface $color) : TypeInterface
Parameters
- $color : ColorInterface
Return values
TypeInterface —setOpacity()
Set the opacity
public
setOpacity(mixed $opacity) : TypeInterface
Parameters
- $opacity : mixed
Return values
TypeInterface —setStrokeColor()
Set stroke color
public
setStrokeColor(ColorInterface $color) : TypeInterface
Parameters
- $color : ColorInterface
Return values
TypeInterface —setStrokeWidth()
Set stroke width
public
setStrokeWidth(int $w) : TypeInterface
Parameters
- $w : int
Return values
TypeInterface —size()
Set the font size
public
size(int $size) : TypeInterface
Parameters
- $size : int
Return values
TypeInterface —x()
Set the X-position
public
x(int $x) : TypeInterface
Parameters
- $x : int
Return values
TypeInterface —xy()
Set both the X- and Y-positions
public
xy(int $x, int $y) : TypeInterface
Parameters
- $x : int
- $y : int
Return values
TypeInterface —y()
Set the Y-position
public
y(int $y) : TypeInterface
Parameters
- $y : int