The (zero based) position of the caret within the textfield
behaviour
bindable
clonable
htmlText:String
A string containing HTML markup to be displayed inside the text field.
behaviour
bindable
clonable
icon:String
An icon that is displayed to the left of the text field.
To display an icon, set the icon property to a path to an image file. If no icon is set, the text field will be displayed without any icon. The default is no icon.
behaviour
bindable
clonable
maxChars:Int
The maximum number of characters that can be entered in the text field. **Note** - this doesnt apply to text added via code.
behaviour
bindable
clonable
password:Bool
Whether or not the text inside the text field is fully visible, or displayed as a password, with every character replaced by a *.
behaviour
bindable
clonable
placeholder:String
Displayed only when the text is empty.
behaviour
bindable
clonable
restrictChars:String
A string, containing a pattern of characters that the user can enter. When unspecified, the text field accepts all characters.
Usage:
- type out lone characters to include them specifically - "abcde047" - use the - character to represent a range of characters - "a-zA-Z0-9" will accept characters from a to z, A to Z and 0 to 9. - prefix the string with a ^ for it to only accept characters that do not match the string's pattern - "^abc" will accept any character except a, b and c.
When set to a non-null value, restricts the component's "rendering zone" to only render inside the bounds of the given rectangle, effectively "clipping" the component.
read-only
hasScreen:Bool
Whether this component, or one if it's parents, has a screen.
read-only
isComponentClipped:Bool
Whether this component has a non-null clipping rectangle or not.
read-only
isComponentOffscreen:Bool
true if this component's area intersects with the screen, false otherwise.
clipRect is not taken into consideration - that means, if a clipRect turns a component from being visible on screen to being invisible on screen, isComponentOffScreen should still be false.
Calling methods/using fields on this component after calling disposeComponent is undefined behaviour, and could result in a null pointer exception/x is null exceptions.
Lists components under a specific point in global, screen coordinates.
Note: this function will return *every single* components at a specific point, even if they have no backgrounds, or haven't got anything drawn onto them.
Parameters
screenX:Float
The global, on-screen x position of the point to check for components under
screenY:Float
The global, on-screen y position of the point to check for components under
type:Class<T> = null
Used to filter all components that aren't of a specific type. null by default, which means no filter is applied.
Returns
An array of all components that overlap the "global" position (x, y)
Iterates over the children components and calls callback() on each of them, recursively. The children's children are also included in the walking, and so are those children's children...