Makes a copy of a control with all its settings, names it and adds it to container when one
is given; host is the GUI texture the copy belongs to.
The control, the optional container, the name and the optional host texture
The copy
Passes through the name of a control event, such as a pointer click or pointer enter, as a typed selector for code that subscribes to control events by name.
The event selector
The same selector
Finds a control by its name inside a container, searching its children too.
The container and the name
The control with that name
Reads the height of a control, as a pixel string or a fraction of the parent.
The control
The height
Reads the width of a control, as a pixel string or a fraction of the parent.
The control
The width
Reads the main color of a control as a CSS color string.
The control
The color
Reads the font size of a control's text, as a string such as 24px or a number of pixels.
The control
The font size
Reads whether a control is shown rather than hidden.
The control
True when the control is visible
Reads whether a control ignores input while still being shown normally.
The control
True when the control is read-only
Reads whether a control is enabled rather than dimmed and inactive.
The control
True when the control is enabled
Sets the space kept clear around a control inside its parent, per side; a side left out keeps
its padding. Values are pixel strings such as 10px or fractions of the parent.
The control and the four paddings
The same control
Sets where a control sits inside its parent: left, center or right, and top, center or bottom.
The control and the two alignments
The same control
Shows or hides a control; a hidden control keeps its place in a stack panel's layout.
The control and the flag
The same control
Makes a control read-only or editable again; a read-only control is shown normally but ignores input.
The control and the flag
The same control
Enables or disables a control; a disabled control is drawn dimmed and ignores input.
The control and the flag
The same control
Sets the height of a control, as a pixel string such as 40px or a fraction of the parent
from 0 to 1.
The control and the height
The same control
Sets the width of a control, as a pixel string such as 200px or a fraction of the parent
from 0 to 1.
The control and the width
The same control
Sets the main color of a control, the text color of a button or text block and the fill color of a slider or checkbox, as a CSS color.
The control and the color
The same control
Sets the font size of a control's text, as a number of pixels or a string such as 24px.
The control and the font size
The same control
What every GUI control shares, whatever its kind: padding, alignment inside its parent, size, color, font size, visibility, the enabled and read-only states and cloning. Sizes are pixel strings such as
200pxor fractions of the parent from 0 to 1. The setters change the control in place and give it back so calls can be chained.