Package-level declarations

Types

Link copied to clipboard
open class CheckRadioButtonBehavior<T : ToggleButton>(textMetrics: TextMetrics, textColor: Color, icon: Icon<T>, iconTextSpacing: Double = 2.0, iconInset: Double = 2.0, disabledColorMapper: (Color) -> Color = { it.lighter() }, focusManager: FocusManager? = null) : CommonTextButtonBehavior<T>

Created by Nicholas Eddy on 4/25/19.

Link copied to clipboard

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

Link copied to clipboard
open class CommonLabelBehavior(textMetrics: TextMetrics, val foregroundColor: Color? = null, val backgroundColor: Color? = null) : LabelBehavior

Behavior providing basic rendering of Labels.

Link copied to clipboard
abstract class CommonSplitPanelBehavior(divider: View = object: View() {}, size: Double, val dividerVisible: Boolean = false) : SplitPanelBehavior, PointerListener, PointerMotionListener
Link copied to clipboard
abstract class CommonTextButtonBehavior<in T : Button>(textMetrics: TextMetrics, defaultFont: Font? = null, insets: Insets = None, focusManager: FocusManager? = null) : CommonButtonBehavior<T>

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

Link copied to clipboard

Created by Nicholas Eddy on 2/12/18.

Link copied to clipboard
Link copied to clipboard
interface TreeBehavior<T> : Behavior<Tree<T, *>>

Created by Nicholas Eddy on 3/23/18.

Functions

Link copied to clipboard
inline fun <T> rowGenerator(crossinline block: (tree: Tree<T, *>, node: T, path: Path<Int>, index: Int, current: View?) -> View): TreeBehavior.RowGenerator<T>

Creates an RowGenerator from the given lambda.

Link copied to clipboard
inline fun <T : Button> simpleButtonRenderer(crossinline render: (button: T, canvas: Canvas) -> Unit): CommonButtonBehavior<T>
inline fun <T : Button> simpleButtonRenderer(focusManager: FocusManager?, crossinline render: (button: T, canvas: Canvas) -> Unit): CommonButtonBehavior<T>
inline fun <T : Button> simpleButtonRenderer(focusManager: FocusManager?, crossinline contains: (T, Point) -> Boolean, crossinline render: (button: T, canvas: Canvas) -> Unit): CommonButtonBehavior<T>

Creates a CommonButtonBehavior<Button> that uses render to draw a button's contents.

Link copied to clipboard
inline fun <T : Button> simpleTextButtonRenderer(textMetrics: TextMetrics, crossinline render: CommonTextButtonBehavior<T>.(button: T, canvas: Canvas) -> Unit): Behavior<T>
inline fun <T : Button> simpleTextButtonRenderer(textMetrics: TextMetrics, focusManager: FocusManager?, crossinline render: CommonTextButtonBehavior<T>.(button: T, canvas: Canvas) -> Unit): Behavior<T>
inline fun <T : Button> simpleTextButtonRenderer(textMetrics: TextMetrics, focusManager: FocusManager? = null, insets: Insets = None, crossinline render: CommonTextButtonBehavior<T>.(button: T, canvas: Canvas) -> Unit): Behavior<T>
inline fun <T : Button> simpleTextButtonRenderer(textMetrics: TextMetrics, focusManager: FocusManager? = null, insets: Insets = None, crossinline contains: (T, Point) -> Boolean, crossinline render: CommonTextButtonBehavior<T>.(button: T, canvas: Canvas) -> Unit): Behavior<T>

Creates a CommonTextButtonBehavior<Button> that uses render to draw a button's contents.