# Represents dimensions (width, height)

(UI 0.9.9)

## Introducción

Sizes are used throughout UI to represent the size of a screen, control, or area.

## Sinopsis de la Clase

final class UI\Size {
/* Propiedades */
public $width;
public $height;
/* Constructor */
public __construct(float `$width`, float `$height`)
/* Métodos */
public getHeight(): float
public getWidth(): float
public static of(float `$size`): UI\Size
public static of(UI\Point `$point`): UI\Size
public setHeight(float `$size`)
public setWidth(float `$size`)
}

## Propiedades

width

  Holds the width, can be read/written directly

height

  Holds the height, can be read/written directly

## Tabla de contenidos

- UI\Size::__construct — Construye un nuevo tamaño
- UI\Size::getHeight — Recupera la altura
- UI\Size::getWidth — Recupera el ancho
- UI\Size::of — Punto de coerción
- UI\Size::setHeight — Establece la altura
- UI\Size::setWidth — Establece el ancho