Package-level declarations

Types

Link copied to clipboard
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>

Created by Nicholas Eddy on 3/17/18.

Link copied to clipboard
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>
Link copied to clipboard
class BasicCircularProgressIndicatorBehavior(var foreground: (ProgressIndicator) -> Paint, var background: (ProgressIndicator) -> Paint? = null, var thickness: Double, var outline: (ProgressIndicator) -> Stroke? = null, var startAngle: Measure<Angle> = -90 * degrees, var direction: RotationDirection = Clockwise, var startCap: SegmentBuilder = { _,_ -> }, var endCap: SegmentBuilder = { _,it -> lineTo(it) }) : ProgressIndicatorBehavior<ProgressIndicator>

Basic behavior for circular ProgressIndicator that uses a filling ring to indicate progress.

Link copied to clipboard
class BasicMenuBehavior(textMetrics: TextMetrics, pathMetrics: PathMetrics, config: BasicMenuBehavior.Config = Config()) : MenuBehavior

Controls the look/feel of Menus and their subcomponents.

Link copied to clipboard
class BasicProgressBarBehavior(background: Paint?, foreground: Paint?, outlineColor: Color? = null, backgroundRadius: Double = 0.0, foregroundRadius: Double = backgroundRadius, outlineThickness: Double = 1.0) : ProgressIndicatorBehavior<ProgressBar>

Created by Nicholas Eddy on 2/12/18.

Link copied to clipboard
class BasicRadioBehavior(textMetrics: TextMetrics, foregroundColor: Color = Black, backgroundColor: Color = Lightgray, darkBackgroundColor: Color = backgroundColor.darker(), iconTextSpacing: Double = 8.0, iconInset: Double = 1.0, innerCircleInset: (RadioButton) -> Double = { 4.0 }, iconSize: (RadioButton) -> 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<RadioButton>
Link copied to clipboard
class BasicSplitPanelBehavior(background: Paint? = null, dividerBackground: Paint? = background) : CommonSplitPanelBehavior

Created by Nicholas Eddy on 2/16/18.

Link copied to clipboard
open class BasicSwitchBehavior(onBackground: Color = Blue, onForeground: Color = White, offBackground: Color = Lightgray, offForeground: Color = onForeground, focusManager: FocusManager? = null) : CommonButtonBehavior<Switch>
Link copied to clipboard
Link copied to clipboard
typealias ColorMapper = (Color) -> Color

Created by Nicholas Eddy on 6/23/20.

Link copied to clipboard
Link copied to clipboard
open class GenericTextEditOperation<T, V : View, Editable>(focusManager: FocusManager?, mapper: Encoder<T, String>, view: V, value: T, current: View) : EditOperation<T>
Link copied to clipboard
open class HorizontalListPositioner(val width: Double, numRows: Int = 1, val spacing: Double = 0.0)
Link copied to clipboard
open class ListItem<T>(list: ListLike, var item: T, var index: Int, itemVisualizer: ItemVisualizer<T, IndexedItem>, backgroundSelectionColor: Color? = Blue, backgroundSelectionBlurredColor: Color? = backgroundSelectionColor, role: ListItemRole = ListItemRole()) : View

Created by Nicholas Eddy on 4/8/19.

Link copied to clipboard

Created by Nicholas Eddy on 5/10/19.

Link copied to clipboard

Created by Nicholas Eddy on 5/10/19.

Link copied to clipboard
class SimpleTreeRowIcon(fill: Paint, selectedFill: Paint) : TreeRowIcon
Link copied to clipboard
class TreeRow<T>(tree: TreeLike, node: T, var path: Path<Int>, index: Int, itemVisualizer: ItemVisualizer<T, ExpandableItem>, selectionColor: Color? = Green, selectionBlurredColor: Color? = selectionColor, iconFactory: () -> TreeRowIcon, role: TreeItemRole = TreeItemRole()) : View
Link copied to clipboard
abstract class TreeRowIcon : View

Created by Nicholas Eddy on 5/7/19.

Link copied to clipboard
open class VerticalListPositioner(val height: Double, numColumns: Int = 1, val spacing: Double = 0.0)

Properties

Link copied to clipboard

Simple mapper that lightens the colors/images within a Paint.