Resize

class Resize<S : Component>(drawable: S, width: Float = drawable.width, height: Float = drawable.height, add: Boolean = true, withVisible: Boolean = true, animation: Animation? = null, onFinish: S.() -> Unit? = null) : ComponentOp.Animatable<S>

Constructors

Link copied to clipboard
constructor(drawable: S, size: Vec2, add: Boolean = true, withVisible: Boolean = true, animation: Animation? = null, onFinish: S.() -> Unit? = null)
constructor(drawable: S, width: Float = drawable.width, height: Float = drawable.height, add: Boolean = true, withVisible: Boolean = true, animation: Animation? = null, onFinish: S.() -> Unit? = null)

Properties

Link copied to clipboard
var onFinish: S.() -> Unit?
Link copied to clipboard
@get:JvmName(name = "getTarget")
val target: Vec2

Functions

Link copied to clipboard
fun add()
Link copied to clipboard

Add the given ComponentOp to this component.

Link copied to clipboard
open override fun apply()

Apply the operation, this is called before the component is rendered.

Link copied to clipboard
open fun exclusive(): Boolean

If this is true, when this drawable operation is attempted to be added, if one is already present, instead of replacing it, it will be ignored.

Link copied to clipboard
@ApiStatus.Experimental
open fun finishNow()

finish this operation immediately.

Link copied to clipboard
open fun reset()
Link copied to clipboard
open fun reverse()
Link copied to clipboard
open override fun unapply(): Boolean

Unapply the operation. this is called after the component is rendered.

Link copied to clipboard
open override fun verify(): Boolean

override this function to verify that this operation is valid, which is run before it is applied. (default: always true)