‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Imaging\Dimension Class Reference

Public Member Functions

 __construct (IconSize $size=IconSize::MEDIUM)
 
 getWidth ()
 
 getHeight ()
 

Protected Attributes

int $width
 
int $height
 

Detailed Description

Dimension class holds width and height for an icon

Definition at line 21 of file Dimension.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Imaging\Dimension::__construct ( IconSize  $size = IconSize::MEDIUM)
Exceptions

Definition at line 36 of file Dimension.php.

Member Function Documentation

◆ getHeight()

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

Definition at line 49 of file Dimension.php.

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

◆ getWidth()

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

Definition at line 44 of file Dimension.php.

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

Member Data Documentation

◆ $height

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

Definition at line 31 of file Dimension.php.

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

◆ $width

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

Definition at line 26 of file Dimension.php.

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