EventDSL

value class EventDSL<S : Drawable>(val self: S)

DSL for events.

Since

0.23.2

Constructors

Link copied to clipboard
constructor(self: S)

Types

Link copied to clipboard

marker class for preventing illegal nesting.

Properties

Link copied to clipboard
val self: S

Functions

Link copied to clipboard
infix fun <E : Event> E.then(handler: S.(E) -> Boolean): S
@JvmName(name = "to")
infix fun <E : Event> E.then(handler: S.(E) -> Unit): S

specify a handler for this event.