Represents dimensions (width, height)

(UI 0.9.9)

Introduction

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

Class synopsis

finalclassUI\Size {
public$width;
public$height;
public__construct(float$width, float$height)
publicgetHeight(): float
publicgetWidth(): float
publicstaticof(float$size): UI\Size
publicstaticof(UI\Point$point): UI\Size
publicsetHeight(float$size)
publicsetWidth(float$size)
}

Properties

width

Holds the width, can be read/written directly

height

Holds the height, can be read/written directly

Table of Contents

To Top