Class: AlignmentHelper

AlignmentHelper(direction)

This is a helper class to align edges of a set of GUIObjects. The class is designed to either vertically or horizontally align the GUIObjects.

Constructor

new AlignmentHelper(direction)

Parameters:
Name Type Description
direction string Either min or max. Deciding whether we should move all objects to the minimal (left or top most) or maximal (right or bottom most) position.
Source:

Methods

setObject(GUIObject, edge, wantedPosition)

Parameters:
Name Type Description
GUIObject Object A GUIObject to be aligned.
edge string One of left, right, top and bottom. Determining the edge to change position for this object.
wantedPosition number The requested position of the edge.
Source: