CommonButtonBehavior

A Behavior<Button> that handles most of the commonly expected behavior of buttons. This makes it a good base for more complex behaviors.

Parameters

focusManager

used to request focus

Inheritors

Constructors

Link copied to clipboard
constructor(focusManager: FocusManager? = null)

Properties

Link copied to clipboard
protected open val selectionChanged: (Button, Boolean, Boolean) -> Unit

Functions

Link copied to clipboard
open override fun dragged(event: PointerEvent)
Link copied to clipboard
protected open fun enabledChanged(button: T)
Link copied to clipboard
open override fun entered(event: PointerEvent)
Link copied to clipboard
open override fun exited(event: PointerEvent)
Link copied to clipboard
protected fun icon(button: Button): Icon<Button>?
Link copied to clipboard
open override fun install(view: T)
Link copied to clipboard
protected open fun pointerChanged(button: T)
Link copied to clipboard
open override fun pressed(event: KeyEvent)
open override fun pressed(event: PointerEvent)
Link copied to clipboard
open override fun released(event: KeyEvent)
open override fun released(event: PointerEvent)
Link copied to clipboard
protected open fun stylesChanged(button: T)
Link copied to clipboard
open override fun uninstall(view: T)

Inherited functions

Link copied to clipboard
open fun childrenClipPath(view: T): View.ClipPath?
Link copied to clipboard
open fun clicked(event: PointerEvent)
Link copied to clipboard
open fun clipCanvasToBounds(view: T): Boolean
Link copied to clipboard
open fun contains(view: T, point: Point): Boolean
Link copied to clipboard
Link copied to clipboard
open fun moved(event: PointerEvent)
Link copied to clipboard
open fun render(view: T, canvas: Canvas)