Represents a position (x,y)

(UI 0.9.9)

Introduction

Points are used throughout UI to represent co-ordinates on a screen, control, or area.

Class synopsis

finalclassUI\Point {
public$x;
public$y;
public__construct(float$x, float$y)
publicstaticat(float$point): UI\Point
publicstaticat(UI\Size$size): UI\Point
publicgetX(): float
publicgetY(): float
publicsetX(float$point)
publicsetY(float$point)
}

Properties

x

Holds the X co-ordinate, can be read/written directly

y

Holds the Y co-ordinate, can be read/written directly

Table of Contents

To Top