PHP Class Gui\Components\Label

It is a visual component for label
Since: 0.1
Author: Gabriel Couto @gabrielrcouto
Inheritance: extends VisualObject
Show file Open project: gabrielrcouto/php-gui

Protected Properties

Property Type Description
$lazarusClass string The lazarus class as string

Public Methods

Method Description
getFontColor ( ) : String Get the font color
getFontFamily ( ) : String Get the font family
getFontSize ( ) : float Get the font size
getText ( ) : mixed Get the Label text
setFontColor ( string $color ) : self Set the font Color
setFontFamily ( string $family ) : self Set the font Family
setFontSize ( float $size ) : self Set the font size for label
setText ( string $value ) : self Set the Label text

Method Details

getFontColor() public method

Get the font color
public getFontColor ( ) : String
return String

getFontFamily() public method

Get the font family
public getFontFamily ( ) : String
return String

getFontSize() public method

Get the font size
public getFontSize ( ) : float
return float

getText() public method

Get the Label text
public getText ( ) : mixed
return mixed

setFontColor() public method

Set the font Color
public setFontColor ( string $color ) : self
$color string Color '#123456'
return self

setFontFamily() public method

Set the font Family
public setFontFamily ( string $family ) : self
$family string Family name (ex: Arial)
return self

setFontSize() public method

Set the font size for label
public setFontSize ( float $size ) : self
$size float
return self

setText() public method

Set the Label text
public setText ( string $value ) : self
$value string
return self

Property Details

$lazarusClass protected property

The lazarus class as string
protected string $lazarusClass
return string