BasicButtonBehavior

open class BasicButtonBehavior(textMetrics: TextMetrics, backgroundColor: Color = Lightgray, darkBackgroundColor: Color = backgroundColor.darker(), foregroundColor: Color = White, borderColor: Color? = null, borderWidth: Double = 0.0, cornerRadius: Double = 4.0, insets: Double = 4.0, focusManager: FocusManager? = null) : CommonTextButtonBehavior<Button> (source)

Created by Nicholas Eddy on 3/17/18.

Constructors

Link copied to clipboard
constructor(textMetrics: TextMetrics, backgroundColor: Color = Lightgray, darkBackgroundColor: Color = backgroundColor.darker(), foregroundColor: Color = White, borderColor: Color? = null, borderWidth: Double = 0.0, cornerRadius: Double = 4.0, insets: Double = 4.0, focusManager: FocusManager? = null)

Types

Link copied to clipboard
protected class RenderColors(val fillColor: Color, val textColor: Color, val borderColor: Color?)

Properties

Link copied to clipboard
Link copied to clipboard

Inherited properties

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

Functions

Link copied to clipboard
Link copied to clipboard
open override fun install(view: Button)
Link copied to clipboard
open override fun render(view: Button, canvas: Canvas)
Link copied to clipboard
protected open override fun stylesChanged(button: Button)
Link copied to clipboard
open override fun uninstall(view: Button)

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: Button, point: Point): Boolean
Link copied to clipboard
open override fun dragged(event: PointerEvent)
Link copied to clipboard
protected open fun enabledChanged(button: Button)
Link copied to clipboard
open override fun entered(event: PointerEvent)
Link copied to clipboard
open override fun exited(event: PointerEvent)
Link copied to clipboard
fun font(button: Button): Font?
Link copied to clipboard
protected fun icon(button: Button): Icon<Button>?
Link copied to clipboard
fun iconPosition(button: Button, text: String, icon: Icon<Button>, stringPosition: Point, bounds: Rectangle): Point
fun iconPosition(button: Button, text: String, icon: Icon<Button>, textSpacing: TextSpacing, stringPosition: Point, bounds: Rectangle): Point
Link copied to clipboard
Link copied to clipboard
open fun moved(event: PointerEvent)
Link copied to clipboard
protected open fun pointerChanged(button: Button)
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
fun textPosition(button: Button, text: String, icon: Icon<Button>?, bounds: Rectangle, textSpacing: TextSpacing): Point