Package-level declarations

Types

Link copied to clipboard

Equivalent to CSS align-items and align-self properties:

Link copied to clipboard

Equivalent to CSS flexbox justify-content values.

Link copied to clipboard
open class UIBaseCheckBox<T : UIBaseCheckBox<T>>(size: Size = UI_DEFAULT_SIZE, checked: Boolean = false, var text: String = "CheckBox", var kind: UIBaseCheckBox.Kind) : UIFocusableView, ViewLeaf
Link copied to clipboard
abstract class UIBaseContainer(size: Size) : UIView
Link copied to clipboard
Link copied to clipboard
open class UIButton(size: Size = DEFAULT_SIZE, text: String = "", icon: BmpSlice? = null, richText: RichTextData? = null) : UIFocusableView
Link copied to clipboard
Link copied to clipboard
open class UICheckBox(size: Size = UI_DEFAULT_SIZE, checked: Boolean = false, text: String = "CheckBox") : UIBaseCheckBox<UICheckBox>
Link copied to clipboard
open class UIComboBox<T>(size: Size = UI_DEFAULT_SIZE, selectedIndex: Int = 0, items: List<T> = listOf()) : UIFocusableView
Link copied to clipboard
open class UIContainer(size: Size) : UIBaseContainer
Link copied to clipboard
Link copied to clipboard
typealias UIDropDown<T> = UIComboBox<T>
Link copied to clipboard
class UIEditableNumber(value: Double = 0.0, min: Double = 0.0, max: Double = 1.0, var decimals: Int = 2, var clamped: Boolean = true, size: Size = Size(64, 18)) : UIView
Link copied to clipboard
class UIEditableNumberProps(prop: UIProperty<Double>, val min: Double = 0.0, val max: Double = 1.0, val decimals: Int = 2, val clamped: Boolean = true) : UIObservableProperty<Double>
Link copied to clipboard
open class UIFillLayeredContainer(size: Size = Size(128, 20)) : UIContainer
Link copied to clipboard
interface UIFocusable
Link copied to clipboard
open class UIFocusableView(size: Size = Size(90, 32), var cache: Boolean = false) : UIView, UIFocusable
Link copied to clipboard
class UIFocusManager(val view: Stage)
Link copied to clipboard
open class UIGridFill(size: Size = Size(128, 128), cols: Int = 3, rows: Int = 3, spacing: Spacing = Spacing.ZERO, direction: UIDirection = UIDirection.ROW) : UIContainer
Link copied to clipboard
open class UIHorizontalFill(size: Size = Size(128, 20), var padding: Double = UI_DEFAULT_PADDING) : UIHorizontalVerticalFill
Link copied to clipboard
open class UIHorizontalStack(forcedHeight: Double? = null, padding: Double = UI_DEFAULT_PADDING, adjustHeight: Boolean = true) : UIVerticalHorizontalStack
Link copied to clipboard
abstract class UIHorizontalVerticalFill(size: Size = Size(128, 128), var padding: Double = UI_DEFAULT_PADDING) : UIContainer
Link copied to clipboard
object UIIcons
Link copied to clipboard
class UIImage(size: Size, bitmap: BmpSlice, scaleMode: ScaleMode = ScaleMode.NO_SCALE, contentAnchor: Anchor = Anchor.TOP_LEFT) : UIView
Link copied to clipboard
class UIMaterialLayer(size: Size = Size(100, 100)) : UIView, ViewLeaf, Anchorable
Link copied to clipboard
class UIObservable<T>(val initial: T, val observe: (T) -> Unit)
Link copied to clipboard
open class UIObservableProperty<T>(val prop: UIProperty<T>)
Link copied to clipboard
Link copied to clipboard
open class UIOldScrollBar(size: Size, current: Double, pageSize: Double, totalSize: Double, buttonSize: Double = 32.0, var stepSize: Double = pageSize / 10.0, direction: UIOldScrollBar.Direction = Direction.auto(size)) : UIView
Link copied to clipboard
open class UIProgressBar(size: Size = Size(256, 24), current: Double = 0.0, maximum: Double = 100.0) : UIView, ViewLeaf
Link copied to clipboard
interface UIProperty<T>
Link copied to clipboard
open class UIPropertyNumberRow(val title: String, propsList: UIEditableNumberProps, size: Size = Size(128, 20)) : UIPropertyRow
Link copied to clipboard
class UIPropertyPlain<T>(var value: T) : UIProperty<T>
Link copied to clipboard
open class UIPropertyRow(val title: String, size: Size = Size(128, 20)) : UIView
Link copied to clipboard
open class UIRadioButton(size: Size = UI_DEFAULT_SIZE, checked: Boolean = false, group: UIRadioButtonGroup = UIRadioButtonGroup(), text: String = "Radio Button") : UIBaseCheckBox<UIRadioButton>
Link copied to clipboard
Link copied to clipboard
typealias UIRenderer<T> = RenderContext2D.(progressBar: T) -> Unit
Link copied to clipboard
open class UIScrollable(size: Size, var cache: Boolean = true) : UIView
Link copied to clipboard
open class UIScrollableArea(size: Size = Size(256, 256), contentSize: Size = Size(512, 512), buttonSize: Double = 32.0, verticalScroll: Boolean = true, horizontalScroll: Boolean = true) : UIView
Link copied to clipboard
class UISlider(value: Number = DEFAULT_VALUE, min: Number = DEFAULT_MIN, max: Number = DEFAULT_MAX, step: Number = DEFAULT_STEP, decimalPlaces: Int? = null, size: Size = UISlider.DEFAULT_SIZE) : UIView, StyleableView
Link copied to clipboard
open class UISpacing(size: Size = UI_DEFAULT_SIZE) : UIView, ViewLeaf
Link copied to clipboard
open class UISwitch(size: Size = UI_DEFAULT_SIZE, checked: Boolean = false, text: String = "Switch") : UIBaseCheckBox<UISwitch>
Link copied to clipboard
class UIText(text: String, size: Size = DEFAULT_SIZE) : UIView
Link copied to clipboard
class UITextInput(initialText: String = "", size: Size = Size(128, 24)) : UIView, ISoftKeyboardConfig

Simple Single Line Text Input

Link copied to clipboard
open class UIToggleableButton(size: Size = UIButton.DEFAULT_SIZE, text: String = "", icon: BmpSlice? = null, richText: RichTextData? = null) : UIButton
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class UITreeView<T>(provider: UITreeViewProvider<T>, size: Size = Size(128, 128)) : UIGridFill
Link copied to clipboard
class UITreeViewList<T>(val nodes: List<UITreeViewNode<T>> = listOf(), val height: Double = 20.0, val genView: (T) -> View = { UIText("$it") }) : UITreeViewProvider<UITreeViewNode<T>>
Link copied to clipboard
class UITreeViewNode<T>(val element: T, val items: List<UITreeViewNode<T>> = emptyList())
Link copied to clipboard
Link copied to clipboard
open class UIVerticalFill(size: Size = Size(128, 128), var padding: Double = UI_DEFAULT_PADDING) : UIHorizontalVerticalFill
Link copied to clipboard
abstract class UIVerticalHorizontalStack(size: Size = UI_DEFAULT_SIZE, padding: Double = UI_DEFAULT_PADDING, val adjustSize: Boolean) : UIContainer
Link copied to clipboard
open class UIVerticalList(provider: UIVerticalList.Provider, width: Double = 200.0) : UIView
Link copied to clipboard
open class UIVerticalStack(forcedWidth: Double? = null, padding: Double = UI_DEFAULT_PADDING, val adjustSize: Boolean = true) : UIVerticalHorizontalStack
Link copied to clipboard
open class UIView(size: Size = DEFAULT_SIZE, var cache: Boolean = false) : FixedSizeCachedContainer
Link copied to clipboard
class UIWindow(title: String, size: Size = Size(256, 256)) : UIContainer

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val UI_DEFAULT_PADDING: Double = 0.0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun <T : UISlider> T.changed(block: (Double) -> Unit): T
Link copied to clipboard
fun <T : UIButton> T.clicked(block: (T) -> Unit): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : UIButton> T.group(group: UIButtonToggleableGroup, pressed: Boolean = false): T
Link copied to clipboard
fun View.makeFocusable(tabIndex: Int = 0, onChanged: (value: Boolean) -> Unit = {}): UIFocusable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : View> T.tooltip(tooltips: UITooltipContainer, text: String): T
Link copied to clipboard
Link copied to clipboard
inline fun <T> Container.uiBreadCrumb(path: UIBreadCrumb.Path<T>, block: UIBreadCrumb<T>.() -> Unit = {}): UIBreadCrumb<T>
inline fun <T> Container.uiBreadCrumb(path: Iterable<T>, block: UIBreadCrumb<T>.() -> Unit = {}): UIBreadCrumb<T>
Link copied to clipboard
inline fun <T> Container.uiBreadCrumbArray(vararg path: T, block: UIBreadCrumb<T>.() -> Unit = {}): UIBreadCrumb<T>
Link copied to clipboard
inline fun Container.uiButton(label: String = "", size: Size = UIButton.DEFAULT_SIZE, icon: BmpSlice? = null, block: UIButton.() -> Unit = {}): UIButton
Link copied to clipboard
inline fun Container.uiCheckBox(size: Size = UI_DEFAULT_SIZE, checked: Boolean = false, text: String = "CheckBox", block: UICheckBox.() -> Unit = {}): UICheckBox
Link copied to clipboard
inline fun <T> Container.uiComboBox(size: Size = UI_DEFAULT_SIZE, selectedIndex: Int = 0, items: List<T>, block: UIComboBox<T>.() -> Unit = {}): UIComboBox<T>
Link copied to clipboard
inline fun Container.uiContainer(size: Size = Size(128, 128), block: UIContainer.() -> Unit = {}): UIContainer
Link copied to clipboard
fun UIEditableAnglePropsList(vararg mut: KMutableProperty0<Angle>, min: Angle = -360.degrees, max: Angle = +360.degrees, clamped: Boolean = true): Array<UIEditableNumberProps>
Link copied to clipboard
Link copied to clipboard
inline fun Container.uiEditableNumber(value: Double = 0.0, min: Double = 0.0, max: Double = 1.0, decimals: Int = 2, clamped: Boolean = true, size: Size = Size(64, 18), block: UIEditableNumber.() -> Unit = {}): UIEditableNumber
Link copied to clipboard
fun UIEditableNumberPropsList(vararg mut: KMutableProperty0<Double>, min: Double = 0.0, max: Double = 1.0, decimals: Int = 2, clamped: Boolean = true): Array<UIEditableNumberProps>
fun UIEditableNumberPropsList(vararg mut: KMutableProperty0<Float>, min: Float = 0.0f, max: Float = 1.0f, decimals: Int = 2, clamped: Boolean = true): Array<UIEditableNumberProps>
Link copied to clipboard
fun UIEditablePointPropsList(prop: KProperty0<MPoint>, min: Double = -1000.0, max: Double = +1000.0): Array<UIEditableNumberProps>
Link copied to clipboard
inline fun Container.uiFillLayeredContainer(size: Size = Size(128, 20), block: UIFillLayeredContainer.() -> Unit = {}): UIFillLayeredContainer
Link copied to clipboard
inline fun Container.uiGridFill(size: Size = Size(128, 128), cols: Int = 3, rows: Int = 3, spacing: Spacing = Spacing.ZERO, direction: UIDirection = UIDirection.ROW, block: UIGridFill.() -> Unit = {}): UIGridFill
Link copied to clipboard
inline fun Container.uiHorizontalFill(size: Size = Size(128, 20), padding: Number = UI_DEFAULT_PADDING, block: UIHorizontalFill.() -> Unit = {}): UIHorizontalFill
Link copied to clipboard
inline fun Container.uiHorizontalStack(height: Number? = null, padding: Number = UI_DEFAULT_PADDING, adjustHeight: Boolean = true, block: UIHorizontalStack.() -> Unit = {}): UIHorizontalStack
Link copied to clipboard
inline fun Container.uiImage(size: Size = UI_DEFAULT_SIZE, bitmap: BmpSlice = Bitmaps.transparent, scaleMode: ScaleMode = ScaleMode.NO_SCALE, contentAnchor: Anchor = Anchor.TOP_LEFT, block: UIImage.() -> Unit = {}): UIImage
Link copied to clipboard
inline fun Container.uiMaterialLayer(size: Size = UI_DEFAULT_SIZE, block: UIMaterialLayer.() -> Unit = {}): UIMaterialLayer
Link copied to clipboard
inline fun <T> uiObservable(value: T, noinline observe: (T) -> Unit): UIObservable<T>
Link copied to clipboard
inline fun Container.uiOldScrollBar(size: Size, current: Double = 0.0, pageSize: Double = 1.0, totalSize: Double = 10.0, buttonSize: Double = 32.0, stepSize: Double = pageSize / 10.0, direction: UIOldScrollBar.Direction = Direction.auto(size), block: UIOldScrollBar.() -> Unit = {}): UIOldScrollBar
Link copied to clipboard
inline fun Container.uiProgressBar(size: Size = Size(256, 24), current: Number = 0.0, maximum: Number = 100.0, block: UIProgressBar.() -> Unit = {}): UIProgressBar
Link copied to clipboard
fun <T> UIProperty(set: (T) -> Unit, get: () -> T): UIProperty<T>
Link copied to clipboard
inline fun Container.uiPropertyCheckBox(title: String, vararg propsList: UIEditableBooleanProps, size: Size = Size(128, 20)): UIPropertyRow
Link copied to clipboard
inline fun <T : Enum<T>> Container.uiPropertyComboBox(title: String, field: KMutableProperty0<T>, size: Size = Size(128, 20)): UIPropertyRow
inline fun <T> Container.uiPropertyComboBox(title: String, field: KMutableProperty0<T>, values: List<T>, size: Size = Size(128, 20)): UIPropertyRow
Link copied to clipboard
inline fun Container.uiPropertyNumberRow(title: String, vararg propsList: UIEditableNumberProps, size: Size = Size(128, 20), block: UIPropertyNumberRow.() -> Unit = {}): UIPropertyNumberRow
Link copied to clipboard
inline fun Container.uiRadioButton(size: Size = UI_DEFAULT_SIZE, checked: Boolean = false, text: String = "Radio Button", group: UIRadioButtonGroup = UIRadioButtonGroup(), block: UIRadioButton.() -> Unit = {}): UIRadioButton
Link copied to clipboard
inline fun Container.uiScrollable(size: Size = Size(256, 256), config: UIScrollable.() -> Unit = {}, cache: Boolean = true, block: Container.(UIScrollable) -> Unit = {}): UIScrollable
Link copied to clipboard
inline fun Container.uiScrollableArea(size: Size = Size(256, 256), contentSize: Size = Size(512, 512), buttonSize: Number = 32.0, verticalScroll: Boolean = true, horizontalScroll: Boolean = true, config: UIScrollableArea.() -> Unit = {}, block: Container.(UIScrollableArea) -> Unit = {}): UIScrollableArea
Link copied to clipboard
Link copied to clipboard
inline fun Container.uiSlider(value: Number = UISlider.DEFAULT_VALUE, min: Number = UISlider.DEFAULT_MIN, max: Number = UISlider.DEFAULT_MAX, step: Number = UISlider.DEFAULT_STEP, decimalPlaces: Int? = null, size: Size = UISlider.DEFAULT_SIZE, block: UISlider.() -> Unit = {}): UISlider
Link copied to clipboard
inline fun Container.uiSpacing(size: Size = UI_DEFAULT_SIZE, block: UISpacing.() -> Unit = {}): UISpacing
Link copied to clipboard
inline fun Container.uiSwitch(size: Size = UI_DEFAULT_SIZE, checked: Boolean = false, text: String = "Switch", block: UISwitch.() -> Unit = {}): UISwitch
Link copied to clipboard
inline fun Container.uiText(text: String, size: Size = UIText.DEFAULT_SIZE, block: UIText.() -> Unit = {}): UIText
Link copied to clipboard
inline fun Container.uiTextInput(initialText: String = "", size: Size = Size(128, 24), block: UITextInput.() -> Unit = {}): UITextInput
Link copied to clipboard
Link copied to clipboard
inline fun <T> Container.uiTreeView(provider: UITreeViewProvider<T>, size: Size = Size(256, 256), block: Container.(UITreeView<T>) -> Unit = {}): UITreeView<T>
Link copied to clipboard
inline fun Container.uiVerticalFill(size: Size = Size(128, 20), padding: Number = UI_DEFAULT_PADDING, block: UIVerticalFill.() -> Unit = {}): UIVerticalFill
Link copied to clipboard
inline fun Container.uiVerticalList(provider: UIVerticalList.Provider, width: Number = 256.0, block: Container.(UIVerticalList) -> Unit = {}): UIVerticalList
Link copied to clipboard
inline fun Container.uiVerticalStack(width: Double? = null, padding: Double = UI_DEFAULT_PADDING, adjustSize: Boolean = true, block: UIVerticalStack.() -> Unit = {}): UIVerticalStack
Link copied to clipboard
inline fun Container.uiWindow(title: String, size: Size = Size(256, 256), configure: UIWindow.() -> Unit = {}, block: Container.(UIWindow) -> Unit = {}): UIWindow