RECT (class)

From Moondust Wiki
Revision as of 19:03, 17 October 2014 by Kevsoft (talk | contribs)
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