BasicCheckBoxBehavior

class BasicCheckBoxBehavior(textMetrics: TextMetrics, foregroundColor: Color = Black, backgroundColor: Color = Lightgray, darkBackgroundColor: Color = backgroundColor.darker(), cornerRadius: Double = 2.0, iconTextSpacing: Double = 8.0, iconInset: Double = 1.0, checkInset: (CheckBox) -> Float = { 0.5f }, iconSize: (CheckBox) -> Size = { Size(maxOf(0.0, minOf(16.0, it.height - 2 * iconInset, it.width - 2 * iconInset))) }, hoverColorMapper: ColorMapper = { it.darker(0.1f) }, disabledColorMapper: ColorMapper = { it.lighter() }, focusManager: FocusManager? = null) : CheckRadioButtonBehavior<CheckBox> (source)

Constructors

Link copied to clipboard
constructor(textMetrics: TextMetrics, foregroundColor: Color = Black, backgroundColor: Color = Lightgray, darkBackgroundColor: Color = backgroundColor.darker(), cornerRadius: Double = 2.0, iconTextSpacing: Double = 8.0, iconInset: Double = 1.0, checkInset: (CheckBox) -> Float = { 0.5f }, iconSize: (CheckBox) -> Size = { Size(maxOf(0.0, minOf(16.0, it.height - 2 * iconInset, it.width - 2 * iconInset))) }, hoverColorMapper: ColorMapper = { it.darker(0.1f) }, disabledColorMapper: ColorMapper = { it.lighter() }, focusManager: FocusManager? = null)

Inherited properties

Link copied to clipboard
protected val insets: Insets
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
open override fun install(view: CheckBox)
Link copied to clipboard
open override fun mirrorWhenRightToLeft(view: CheckBox): Boolean

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: CheckBox, point: Point): Boolean
Link copied to clipboard
open override fun dragged(event: PointerEvent)
Link copied to clipboard
protected open fun enabledChanged(button: CheckBox)
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
open fun moved(event: PointerEvent)
Link copied to clipboard
protected open fun pointerChanged(button: CheckBox)
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
open override fun render(view: CheckBox, canvas: Canvas)
Link copied to clipboard
protected open fun stylesChanged(button: CheckBox)
Link copied to clipboard
fun textPosition(button: Button, text: String, icon: Icon<Button>?, bounds: Rectangle, textSpacing: TextSpacing): Point
Link copied to clipboard
open override fun uninstall(view: CheckBox)