PositionableComponent

Interface for components that can be positioned.

Properties

Link copied to clipboard
abstract val position: Pair<Float, Float>

Get the current position of this component.

Link copied to clipboard
abstract val size: Pair<Float, Float>

Get the current size of this component.

Functions

Link copied to clipboard
abstract fun setPosition(x: Float, y: Float)

Set the position of this component.

Link copied to clipboard
abstract fun setSize(width: Float, height: Float)

Set the size of this component.