Component
Component
Component is the base class of everything on the screen in PolyUI.
It itself contains no actual draw methods.
Since
1.6.0
Inheritors
Constructors
Properties
If true, this component will not be drawn as it is considered to be clipped outside of the screen, either by being outside its parent or the screen entirely. This is controlled by clipChildren.
Returns true if this component had a position specified at creation time.
Returns `true if this component had a size specified at creation time.
Disabled flag for this component. Dispatches the Event.Lifetime.Disabled and Event.Lifetime.Enabled events.
true if this drawable has any operations.
Flags that store various states of this component regarding the org.polyfrost.polyui.layout.LayoutController and resizing. Currently, the following is stored here:
If true, this component will be ignored during the org.polyfrost.polyui.layout.LayoutController's routine of placing components. Use this if you want to specify it manually based on something else, for example.
Returns true if this component has been initialized to the point where it has been positioned, e.g. Event.Lifetime.Init has been dispatched, and Event.Lifetime.PostInit is about to be.
The visible size of this component. This is used for clipping and scrolling.
Functions
Add a ComponentOp to this component.
Use this function to calculate the size of this component. DO NOT include children in this calculation!
Returns a count of this component's children, including children of children.
Override this function to add things to the debug display of this component.
Supply extra information to the toString representation of this object. Keep it short.
Returns the index of this component in its parent's children list.
Return the actual TextInput from a org.polyfrost.polyui.component.impl.BoxedNumericInput component.
Return the actual TextInput from a org.polyfrost.polyui.component.impl.BoxedTextInput component.
Perform a function on all matching components (itself and its children) of the given type.
Perform a function on all matching components (itself and its children) of the given class.
Reposition all the children of this component.
Fully recalculate this component's size, and any of its children's positions.
Perform a refont operation on this component, changing its font from the old FontFamily to the new FontFamily, and all its children.
Remove an operation from this drawable.