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...