DrawableOp

abstract class DrawableOp(self: Drawable)

Inheritors

Constructors

Link copied to clipboard
constructor(self: Drawable)

Types

Link copied to clipboard
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.

Functions

Link copied to clipboard
fun add()
Link copied to clipboard
abstract fun apply()
Link copied to clipboard
fun remove()
Link copied to clipboard
abstract 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)