Ardillo\DrawTextLayoutParams
On this page
Description
Ardillo base DrawTextLayoutParams class.
Properties
DrawTextLayoutParams::$app
Associated App instance
- type:
App
Methods
DrawTextLayoutParams::getDefaultFont()
Returns the default font
Returns FontDescriptor
DrawTextLayoutParams::setDefaultFont(FontDescriptor $defaultFont)
Sets the default font
FontDescriptor $defaultFont
: The default font
DrawTextLayoutParams::getWidth()
Returns the width
Returns float
DrawTextLayoutParams::setWidth(float $width)
Sets the width
float $width
: The width
DrawTextLayoutParams::getAlign()
Returns the alignment setting
Returns int
DrawTextLayoutParams::setAlign(int $align)
Sets the alignment setting
int $align
: The alignment setting (use the DrawTextAlign class integer constants)