Skip to content

Latest commit

 

History

History
102 lines (56 loc) · 2.5 KB

File metadata and controls

102 lines (56 loc) · 2.5 KB

Latite Scripting Documentation (Exports)


Exports > gfx/graphics > Rect

Rect

Class

A class representing a rectangle on the screen.

Member

left The x coordinate of the top-left point.

Member

top The y coordinate of the top-left point.

Member

right The x coordinate of the bottom-right point.

Member

bottom The y coordinate of the bottom-right point.

Source: gfx/graphics.d.ts:8

Constructors

constructor()

new Rect( left: number, top: number, right: number, bottom: number): Rect

Source: gfx/graphics.d.ts:16

Parameters

Parameter Type Description
left number The x coordinate of the top-left point.
top number The y coordinate of the top-left point.
right number The x coordinate of the bottom-right point.
bottom number The y coordinate of the bottom-right point.

Returns

Rect

Properties

bottom

bottom: number

Source: gfx/graphics.d.ts:21

left

left: number

Source: gfx/graphics.d.ts:18

right

right: number

Source: gfx/graphics.d.ts:20

top

top: number

Source: gfx/graphics.d.ts:19

Methods

getHeight()

getHeight(): number

Source: gfx/graphics.d.ts:24

Returns

number

getWidth()

getWidth(): number

Source: gfx/graphics.d.ts:23

Returns

number