TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
Dimension Class Reference

Public Member Functions

 __construct ($size=Icon::SIZE_DEFAULT)
 
 getWidth ()
 
 getHeight ()
 

Protected Attributes

 $width
 
 $height
 

Detailed Description

Dimension class holds width and height for an icon

Definition at line 20 of file Dimension.php.

Constructor & Destructor Documentation

__construct (   $size = Icon::SIZE_DEFAULT)

Constructor which fetches the size and resolves it to a pixel size

Parameters
string$sizethe icon size
Exceptions
\InvalidArgumentException

Definition at line 39 of file Dimension.php.

References Icon\SIZE_DEFAULT, Icon\SIZE_LARGE, Icon\SIZE_OVERLAY, and Icon\SIZE_SMALL.

Member Function Documentation

getHeight ( )

Returns the height

Returns
int

Definition at line 73 of file Dimension.php.

References Dimension\$height.

getWidth ( )

Returns the width

Returns
int

Definition at line 64 of file Dimension.php.

References Dimension\$width.

Member Data Documentation

$height
protected

Definition at line 30 of file Dimension.php.

Referenced by Dimension\getHeight().

$width
protected

Definition at line 25 of file Dimension.php.

Referenced by Dimension\getWidth().