Package-level declarations
Types
Link copied to clipboard
abstract class Drawable(children: Drawable? = arrayOf(), x: Float = 0.0f, y: Float = 0.0f, val alignment: Align = AlignDefault, size: Vec2? = null, visibleSize: Vec2? = null, palette: Colors.Palette? = null, val focusable: Boolean = false) : Cloneable
The most basic thing in the PolyUI rendering system.
Link copied to clipboard
Positioning strategies are the methods used in PolyUI to place both components across the screen, and components inside a layout.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Drawable.animateTo(tx: Float = this.x, ty: Float = this.y, size: Vec2 = this.size, rotation: Double = this.rotation, skewX: Double = this.skewX, skewY: Double = this.skewY, scaleX: Float = this.scaleX, scaleY: Float = this.scaleY, color: PolyColor = this.color, animation: Animation? = null)
Bulk add method for all the builtin drawable operations in PolyUI.
Link copied to clipboard
Returns a count of this drawable's children, including children of children.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Add a listener for changes to the given Boolean-type property.
Add a listener for changes to the given Float-type property.
Add a listener for changes to the given Int-type property.
Add a listener for changes to the given String-type property.
Link copied to clipboard
Prioritize this drawable, meaning it will, in relation to its siblings:
Link copied to clipboard
Link copied to clipboard
Set the color palette of this drawable during initialization, using the PolyUI colors instance.
Link copied to clipboard
Link copied to clipboard