Skip to content

Control

Paavo Bennett edited this page Nov 5, 2016 · 8 revisions

Method Summary

String getPath()

Gets the path of the control. Default is "".

void setPath(String path)

Sets the path of the control.

String getName()

Gets the name of the control. Default is "".

void setName(String name)

Sets the name of the control.

Number getX()

Gets the x-coordinate of the control. Default is 0.

Number getY()

Gets the y-coordinate of the control. Default is 0.

void setLocation(Number x, Number y)

Sets the location of the control.

Number getWidth()

Gets the width of the control. Default is 0.

Number getHeight()

Gets the height of the control. Default is 0.

void setSize(Number width, Number height)

Sets the size of the control.

void setBounds(Number x, Number y, Number width, Number height)

Sets the bounds of the control.

Color getColor()

Gets the color of the control. Default is nil.

void setColor(Color color)

Sets the color of the control.

Table getChildren()

Gets the children of the control. Default is {}.

Table has(Control child)

Checks to see if this Control has a given Child. Default is false.

void add(Control child)

Adds a child to the control.

void clear()

Clears the children of the control.

void remove(Control childToRemove)

Removes a child from the control.

Control getParent()

Gets the parent of the control. Default is nil.

void setParent(Control parent)

Sets the parent of the control.

Clone this wiki locally