Interface Layout
access this type via: ui.Layout (provides, requires or uses)
Functions
Layout()
void setSize(int w, int h)
int getPercentOf(int percent, int val, optional int margin)
void add(storeGraphicsObject object, storeLayoutRule pos[])
void rem(GraphicsObject object)
int getSpaceX(GraphicsObject a, GraphicsObject b)
int getSpaceY(GraphicsObject a, GraphicsObject b)
void refresh()
Layout()
Instantiate a new layout context.
void setSize(int w, int h)
Set the size of the containing rectangle for this layout.
int getPercentOf(int percent, int val, optional int margin)
Get the percentage of a given value, optionally passing in a margin by which to first reduce that value.
void add(storeGraphicsObject object, storeLayoutRule pos[])
Add a graphics object to this layout, with a set of layout rules.
void rem(GraphicsObject object)
Remove a graphics object from this layout.
int getSpaceX(GraphicsObject a, GraphicsObject b)
Get the amount of horizontal space between the left/right edges of two graphics objects.
int getSpaceY(GraphicsObject a, GraphicsObject b)
Get the amount of vertical space between the top/bottom edges of two graphics objects.
void refresh()
Re-apply the rules of this layout (for example if an object's size has changed).