Represents dimensions (width, height)

Introduction

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

Class synopsis

UI\Size
final class UI\Size {
/* Properties */
public $width;
public $height;
/* Constructor */
public __construct(float $width, float $height)
/* Methods */
public float getHeight()
public float getWidth()
public static UI\Size of(float $size)
public static UI\Size of(UI\Point $point)
public setHeight(float $size)
public setWidth(float $size)
}

Properties

width

Holds the width, can be read/written directly

height

Holds the height, can be read/written directly

Table of Contents