DeclaredCallback

The callback a modifier declares right now, as a CallbackRegistration adapter reaches it. A pass that declares a new callback changes what it yields without rebuilding the listener that holds it.

Properties

Link copied to clipboard
val current: C

The callback declared right now. Read it directly where a throw must reach Swing, such as a veto, or where only a gesture or a posted event reaches the listener; call it through report where Swing raises the event inside a write.

Functions

Link copied to clipboard
inline fun report(crossinline block: (callback: C) -> Unit)

Calls block with the callback declared right now. A throw out of block goes unchanged to the current thread's uncaught-exception handler and this function returns normally.