RECT (class)

From Moondust Wiki
Revision as of 16:35, 1 June 2021 by Wohlstand (talk | contribs) (Text replacement - "|odd}}" to "}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 RECT.top long Top-value.

Example:

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