Sabberworm\CSS\Value\Size
Synopsis
class Size
extends PrimitiveValue
{
- // constants
- const ABSOLUTE_SIZE_UNITS = 'px/cm/mm/mozmm/in/pt/pc/vh/vw/vm/vmin/vmax/rem';
- const RELATIVE_SIZE_UNITS = '%/em/ex/ch/fr';
- const NON_SIZE_UNITS = 'deg/grad/rad/s/ms/turns/Hz/kHz';
- // members
- private $fSize;
- private $sUnit;
- private $bIsColorComponent;
- // Inherited members from Value
- protected $iLineNo;
- // methods
- public void __construct()
- public void setUnit()
- public void getUnit()
- public void setSize()
- public void getSize()
- public void isColorComponent()
- public false isSize()
- public void isRelative()
- public void __toString()
- public void render()
- // Inherited methods from PrimitiveValue
- public void __construct()
- // Inherited methods from Value
- public void __construct()
- public int getLineNo()
Hierarchy
Constants
Name | Value |
---|---|
ABSOLUTE_SIZE_UNITS | 'px/cm/mm/mozmm/in/pt/pc/vh/vw/vm/vmin/vmax/rem' |
RELATIVE_SIZE_UNITS | '%/em/ex/ch/fr' |
NON_SIZE_UNITS | 'deg/grad/rad/s/ms/turns/Hz/kHz' |
Members
private
- $bIsColorComponent
- $fSize
- $sUnit
protected
- $iLineNo
Methods
public
- __construct()
- __toString()
- getSize()
- getUnit()
- isColorComponent()
- isRelative()
- isSize() — Returns whether the number stored in this Size really represents a size (as in a length of something on screen).
- render()
- setSize()
- setUnit()