Animatable

abstract class Animatable<S : Drawable>(self: S, animation: Animation? = null, var onFinish: S.() -> Unit? = null) : DrawableOp

Class to represent an operation that can be applied on a component that modifies it in some way.

It is applied before and after rendering, for example a Move, Resize, or Rotate operation, or a transition.

Inheritors

Constructors

Link copied to clipboard
constructor(self: S, animation: Animation? = null, onFinish: S.() -> Unit? = null)

Properties

Link copied to clipboard
var onFinish: S.() -> Unit?

Functions

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

finish this operation immediately.

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

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