BasicSwitchBehavior

open class BasicSwitchBehavior(onBackground: Color = Blue, onForeground: Color = White, offBackground: Color = Lightgray, offForeground: Color = onForeground, focusManager: FocusManager? = null) : CommonButtonBehavior<Switch> (source)

Constructors

Link copied to clipboard
constructor(onBackground: Color = Blue, onForeground: Color = White, offBackground: Color = Lightgray, offForeground: Color = onForeground, focusManager: FocusManager? = null)

Properties

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

Functions

Link copied to clipboard
open override fun install(view: Switch)
Link copied to clipboard
open override fun render(view: Switch, canvas: Canvas)
Link copied to clipboard
open fun transitionSlider(block: (Float) -> Unit): Completable

Inherited functions

Link copied to clipboard
Link copied to clipboard
open fun clicked(event: PointerEvent)
Link copied to clipboard
Link copied to clipboard
open fun contains(view: Switch, point: Point): Boolean
Link copied to clipboard
open override fun dragged(event: PointerEvent)
Link copied to clipboard
protected open fun enabledChanged(button: Switch)
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
Link copied to clipboard
open fun moved(event: PointerEvent)
Link copied to clipboard
protected open fun pointerChanged(button: Switch)
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: Switch)
Link copied to clipboard
open override fun uninstall(view: Switch)