RECT (class)

From Moondust Wiki
Jump to navigation Jump to search

This class (struct) provides fields for a Rectangle.

RECT class
Type Function/Field Return values/Value type Description
Constructor myRECT = newRECT() RECT Construct a new RECT-Object
Field RECT.bottom long Bottom-value.
Field RECT.left long Left-value.
Field RECT.right long Right-value.
Field long Top-value.


local myRect = newRECT() = 0
myRect.left = 0
myRect.bottom = 20
myRect.right = 20
--Do other stuff