Defines a Position Supercomponent.
| Position | Defines a Position Supercomponent. |
| Functions | |
| new | |
| New Position | A Supercomponent, for use only with Frames. |
| Variables | |
| coords | Contains the Frame’s user-defined coordinates. |
| abs_coords | Contains the Frame’s generated, window coordinates. |
| content_coords | Contains the Frame’s generated, Content Rectangle coordinates. |
| Functions | |
| updateAbsolute | Generates the absolute coordinates (abs_coords) of the Frame. |
| Properties | |
| Position Properties |
A Supercomponent, for use only with Frames. Responsible for managing the coordinate positioning of the Frame within its parent. This is only used internally. Not to be exposed.
| Variables | |
| coords | Contains the Frame’s user-defined coordinates. |
| abs_coords | Contains the Frame’s generated, window coordinates. |
| content_coords | Contains the Frame’s generated, Content Rectangle coordinates. |
| Functions | |
| updateAbsolute | Generates the absolute coordinates (abs_coords) of the Frame. |
| Properties | |
| Position Properties |
local coords
Contains the Frame’s user-defined coordinates.
local abs_coords
Contains the Frame’s generated, window coordinates.
local content_coords
Contains the Frame’s generated, Content Rectangle coordinates.
local function updateAbsolute ()
Generates the absolute coordinates (abs_coords) of the Frame. Also used to generate the content coordinates (content_coords).
| Coordinates | Gets and sets the relative (user-defined) coordinates (coords) of the Frame. |
| Absolute | Returns the coordinates of the Frame within the Mudlet window (abs_coords). |
| Content | Returns the coordinates of the Content Rectangle within the Mudlet window (content_coords). |
| X | Gets and sets the relative (user-defined) x value of the Frame. |
| Y | Gets and sets the relative (user-defined) y value of the Frame. |
| AbsoluteX | Returns the X value of the Frame within the Mudlet window. |
| AbsoluteY | Returns the Y value of the Frame within the Mudlet window. |
| ContentX | Returns the X value of the Content Rectangle within the Mudlet window. |
| ContentY | Returns the Y value of the Content Rectangle within the Mudlet window. |
local function new ( _, frame, init_x, init_y, is_first )
Contains the Frame’s user-defined coordinates.
local coords
Contains the Frame’s generated, window coordinates.
local abs_coords
Contains the Frame’s generated, Content Rectangle coordinates.
local content_coords
Generates the absolute coordinates (abs_coords) of the Frame.
local function updateAbsolute ()