TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Imaging\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()

TYPO3\CMS\Core\Imaging\Dimension::__construct (   $size = Icon::SIZE_DEFAULT)

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

Parameters
string$sizethe icon size
Exceptions

Definition at line 39 of file Dimension.php.

References TYPO3\CMS\Core\Imaging\Icon\SIZE_DEFAULT, TYPO3\CMS\Core\Imaging\Icon\SIZE_LARGE, TYPO3\CMS\Core\Imaging\Icon\SIZE_OVERLAY, and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Member Function Documentation

◆ getHeight()

TYPO3\CMS\Core\Imaging\Dimension::getHeight ( )

Returns the height

Returns
int

Definition at line 73 of file Dimension.php.

References TYPO3\CMS\Core\Imaging\Dimension\$height.

◆ getWidth()

TYPO3\CMS\Core\Imaging\Dimension::getWidth ( )

Returns the width

Returns
int

Definition at line 64 of file Dimension.php.

References TYPO3\CMS\Core\Imaging\Dimension\$width.

Member Data Documentation

◆ $height

TYPO3\CMS\Core\Imaging\Dimension::$height
protected

Definition at line 30 of file Dimension.php.

Referenced by TYPO3\CMS\Core\Imaging\Dimension\getHeight().

◆ $width

TYPO3\CMS\Core\Imaging\Dimension::$width
protected

Definition at line 25 of file Dimension.php.

Referenced by TYPO3\CMS\Core\Imaging\Dimension\getWidth().