Package-level declarations

Types

Link copied to clipboard
class KBasicColorPicker(styleName: String) : BasicColorPicker, KTable

Extends BasicColorPicker with type-safe widget builders.

Link copied to clipboard
class KCollapsible(val table: KVisTable) : CollapsibleWidget, KTable

Extends CollapsibleWidget with type-safe widget builders. Adds children to collapsible's table.

Link copied to clipboard
class KDragPane : DragPane, KGroup

Extends DragPane with type-safe widget builders.

Link copied to clipboard
class KExtendedColorPicker(styleName: String) : ExtendedColorPicker, KTable

Extends ExtendedColorPicker with type-safe widget builders.

Link copied to clipboard
class KFloatingGroup : FloatingGroup, KGroup

Extends FloatingGroup with type-safe widget builders.

Link copied to clipboard
class KFlowGroup(vertical: Boolean, spacing: Float) : FlowGroup, KGroup

Extends FlowGroup with type-safe widget builders.

Link copied to clipboard
class KGridGroup(itemSize: Float, spacing: Float) : GridGroup, KGroup

Extends GridGroup with type-safe widget builders.

Link copied to clipboard
class KHorizontalCollapsible(val table: KVisTable) : HorizontalCollapsibleWidget, KTable

Extends HorizontalCollapsibleWidget with type-safe widget builders. Adds children to collapsible's table.

Link copied to clipboard
class KHorizontalFlowGroup(spacing: Float) : HorizontalFlowGroup, KGroup

Extends HorizontalFlowGroup with type-safe widget builders.

Link copied to clipboard
class KMultiSplitPane(vertical: Boolean, style: String) : MultiSplitPane, KGroup

Extends MultiSplitPane with type-safe widget builders.

Link copied to clipboard
class KSpinner(styleName: String, name: String, model: SpinnerModel) : Spinner, KTable

Extends Spinner with type-safe widget builders.

Link copied to clipboard
class KTab(title: String, savable: Boolean, closeableByUser: Boolean) : Tab, KTable

See Tab. Note that KTab is only intended to by used with type-safe builder from within KTabbedPane.tab.

Link copied to clipboard
class KTabbedPane(styleName: String) : TabbedPane

Extends TabbedPane with type-safe widget builders.

Link copied to clipboard
class KToastTable(useVisDefaults: Boolean) : ToastTable, KTable

Extends ToastTable with type-safe widget builders.

Link copied to clipboard
class KVerticalFlowGroup(spacing: Float) : VerticalFlowGroup, KGroup

Extends VerticalFlowGroup with type-safe widget builders.

Link copied to clipboard
class KVisCheckBox(text: String, styleName: String) : VisCheckBox, KTable

Extends VisCheckBox with type-safe widget builders.

Link copied to clipboard
class KVisDialog(title: String, styleName: String) : VisDialog, KTable

Extends VisDialog with type-safe widget builders.

Link copied to clipboard
class KVisImageButton(styleName: String) : VisImageButton, KTable

Extends VisImageButton with type-safe widget builders.

Link copied to clipboard
class KVisImageTextButton(text: String, styleName: String) : VisImageTextButton, KTable

Extends VisImageTextButton with type-safe widget builders.

Link copied to clipboard
class KVisList<T>(style: String) : VisList<T>

Extends VisList widget with items building method.

Link copied to clipboard
class KVisRadioButton(text: String, styleName: String) : VisRadioButton, KTable

Extends VisRadioButton with type-safe widget builders.

Link copied to clipboard
class KVisScrollPane(style: String) : VisScrollPane, KGroup

Extends VisScrollPane API with type-safe widget builders. Note that this widget may store only a single child.

Link copied to clipboard
class KVisSelectBox<T>(style: String) : VisSelectBox<T>

Extends VisSelectBox with items building method.

Link copied to clipboard
class KVisSplitPane(vertical: Boolean, style: String) : VisSplitPane, KGroup

Extends VisSplitPane API with type-safe widget builders. Note that this widget may store only two children. It is advised to use the inlined extension factory methods added by KGroup rather than set its widgets directly with setFirstWidget or setSecondWidget.

Link copied to clipboard
class KVisTable(useVisDefaults: Boolean) : VisTable, KTable

Extends VisTable with type-safe widget builders.

Link copied to clipboard
class KVisTextButton(text: String, styleName: String) : VisTextButton, KTable

Extends VisTextButton with type-safe widget builders.

Link copied to clipboard
class KVisTree(styleName: String) : VisTree<KNode<*>, Any?> , KTree

Extends VisTree with type-safe widget builders.

Link copied to clipboard
class KVisWindow(title: String, styleName: String) : VisWindow, KTable

Extends VisWindow with type-safe widget builders.

Functions

Link copied to clipboard
fun TabbedPane.addTabContentsTo(group: Group)

On tab switch, tab content will be added to provided widget Group instance. Previous group content will be cleared.

fun TabbedPane.addTabContentsTo(container: Container<*>)

On tab switch, tab content will be added to provided Container instance. Previous container actor will be replaced.

fun TabbedPane.addTabContentsTo(table: Table)

On tab switch, tab content will be added to provided Table instance. Previous table content will be cleared.

Link copied to clipboard
inline fun <S> KWidget<S>.basicColorPicker(style: String = defaultStyle, init: KBasicColorPicker.(S) -> Unit = {}): KBasicColorPicker
Link copied to clipboard
inline fun <S> KWidget<S>.busyBar(style: String = defaultStyle, init: BusyBar.(S) -> Unit = {}): BusyBar
Link copied to clipboard
inline fun <S> KWidget<S>.buttonBar(order: String? = null, tableInit: VisTable.(S) -> Unit = {}, init: ButtonBar.() -> Unit = {}): ButtonBar
Link copied to clipboard
inline fun <S> KWidget<S>.collapsible(defaultSpacing: Boolean = false, init: KCollapsible.(S) -> Unit = {}): KCollapsible
Link copied to clipboard
inline fun <S> KWidget<S>.dragPane(init: KDragPane.(S) -> Unit = {}): KDragPane
Link copied to clipboard
inline fun <S> KWidget<S>.extendedColorPicker(style: String = defaultStyle, init: KExtendedColorPicker.(S) -> Unit = {}): KExtendedColorPicker
Link copied to clipboard
inline fun <S> KWidget<S>.floatingGroup(init: KFloatingGroup.(S) -> Unit = {}): KFloatingGroup
Link copied to clipboard
inline fun <S> KWidget<S>.flowGroup(vertical: Boolean = false, spacing: Float = 0.0f, init: KFlowGroup.(S) -> Unit = {}): KFlowGroup
Link copied to clipboard
inline fun <S> KWidget<S>.gridGroup(itemSize: Float = 256.0f, spacing: Float = 8.0f, init: KGridGroup.(S) -> Unit = {}): KGridGroup
Link copied to clipboard
inline fun <S> KWidget<S>.highlightTextArea(text: String = "", style: String = defaultStyle, init: HighlightTextArea.(S) -> Unit = {}): HighlightTextArea
Link copied to clipboard
inline fun <S> KWidget<S>.horizontalCollapsible(defaultSpacing: Boolean = false, init: KHorizontalCollapsible.(S) -> Unit = {}): KHorizontalCollapsible
Link copied to clipboard
inline fun <S> KWidget<S>.horizontalFlowGroup(spacing: Float = 0.0f, init: KHorizontalFlowGroup.(S) -> Unit = {}): KHorizontalFlowGroup

Deprecated. Use flowGroup instead.

Link copied to clipboard
inline fun <S> KWidget<S>.linkLabel(text: CharSequence, url: CharSequence = text, style: String = defaultStyle, init: LinkLabel.(S) -> Unit = {}): LinkLabel
Link copied to clipboard
inline fun <I> KWidget<*>.listView(itemAdapter: ListAdapter<I>, style: String = defaultStyle, init: ListView<I>.() -> Unit = {}): ListView<I>
Link copied to clipboard
fun MenuBar.menu(title: String, style: String = defaultStyle, init: PopupMenu.() -> Unit = {}): Menu

Adds new Menu to this MenuBar.

Link copied to clipboard
inline fun <S> KWidget<S>.menuBar(style: String = defaultStyle, init: MenuBar.(S) -> Unit = {}): MenuBar

Begins creation of a new MenuBar.

Link copied to clipboard
fun PopupMenu.menuItem(text: String, style: String = defaultStyle, init: MenuItem.() -> Unit = {}): MenuItem
fun PopupMenu.menuItem(text: String, image: Image, style: String = defaultStyle, init: MenuItem.() -> Unit = {}): MenuItem
fun PopupMenu.menuItem(text: String, drawable: Drawable, style: String = defaultStyle, init: MenuItem.() -> Unit = {}): MenuItem
fun PopupMenu.menuItem(text: String, drawableName: String, style: String = defaultStyle, init: MenuItem.() -> Unit = {}): MenuItem

Adds new MenuItem to this PopupMenu.

Link copied to clipboard
inline fun <S> KWidget<S>.multiSplitPane(vertical: Boolean = false, style: String = if (vertical) defaultVerticalStyle else defaultHorizontalStyle, init: KMultiSplitPane.(S) -> Unit = {}): KMultiSplitPane
Link copied to clipboard
inline fun scene2d.popupMenu(style: String = defaultStyle, init: PopupMenu.() -> Unit = {}): PopupMenu

Begins creation of a new PopupMenu.

Link copied to clipboard
inline fun <S> KWidget<S>.scrollableTextArea(text: String = "", style: String = defaultStyle, init: ScrollableTextArea.(S) -> Unit = {}): ScrollableTextArea
Link copied to clipboard
inline fun <S> KWidget<S>.separator(style: String = defaultStyle, init: Separator.(S) -> Unit = {}): Separator
Link copied to clipboard
inline fun <S> KWidget<S>.spinner(name: String, model: SpinnerModel, style: String = defaultStyle, init: KSpinner.(S) -> Unit = {}): KSpinner
Link copied to clipboard
fun MenuItem.subMenu(style: String = defaultStyle, init: PopupMenu.() -> Unit = {}): PopupMenu

Creates and assigns new submenu to this MenuItem.

Link copied to clipboard
inline fun KTabbedPane.tab(title: String, savable: Boolean = false, closeableByUser: Boolean = true, init: KTab.() -> Unit = {}): Tab

Begins creation of new Tab using type-safe builder. Newly created tab will be added to tabbed pane automatically so there is no need to call TabbedPane.add manually.

Link copied to clipboard
inline fun <S> KWidget<S>.tabbedPane(style: String = defaultStyle, init: KTabbedPane.(S) -> Unit = {}): KTabbedPane
Link copied to clipboard
inline fun RootWidget.toastTable(defaultSpacing: Boolean = false, init: KToastTable.() -> Unit = {}): KToastTable

Constructs a top-level ToastTable widget. Utility for constructing Toast instances.

Link copied to clipboard
inline fun validator(targetToDisable: Disableable? = null, messageLabel: Label? = null, style: String = defaultStyle, init: FormValidator.() -> Unit): FormValidator

FormValidator factory function.

Link copied to clipboard
inline fun <S> KWidget<S>.verticalFlowGroup(spacing: Float = 0.0f, init: KVerticalFlowGroup.(S) -> Unit = {}): KVerticalFlowGroup

Deprecated. Use flowGroup instead.

Link copied to clipboard
inline fun <S> KWidget<S>.visCheckBox(text: String, style: String = defaultStyle, init: KVisCheckBox.(S) -> Unit = {}): KVisCheckBox
Link copied to clipboard
inline fun RootWidget.visDialog(title: String, style: String = defaultStyle, init: KVisDialog.() -> Unit = {}): KVisDialog

Constructs a top-level VisDialog widget.

Link copied to clipboard
inline fun <S> KWidget<S>.visImage(texture: Texture, init: VisImage.(S) -> Unit = {}): VisImage
inline fun <S> KWidget<S>.visImage(ninePatch: NinePatch, init: VisImage.(S) -> Unit = {}): VisImage
inline fun <S> KWidget<S>.visImage(textureRegion: TextureRegion, init: VisImage.(S) -> Unit = {}): VisImage
inline fun <S> KWidget<S>.visImage(drawableName: String, init: VisImage.(S) -> Unit = {}): VisImage
inline fun <S> KWidget<S>.visImage(drawable: Drawable, scaling: Scaling = Scaling.stretch, align: Int = Align.center, init: VisImage.(S) -> Unit = {}): VisImage
Link copied to clipboard
inline fun <S> KWidget<S>.visImageButton(style: String = defaultStyle, init: KVisImageButton.(S) -> Unit = {}): KVisImageButton
Link copied to clipboard
inline fun <S> KWidget<S>.visImageTextButton(text: String, style: String = defaultStyle, init: KVisImageTextButton.(S) -> Unit = {}): KVisImageTextButton
Link copied to clipboard
inline fun <S> KWidget<S>.visLabel(text: CharSequence, style: String = defaultStyle, init: VisLabel.(S) -> Unit = {}): VisLabel
Link copied to clipboard
inline fun <I> KWidget<*>.visList(style: String = defaultStyle, init: KVisList<I>.() -> Unit = {}): KVisList<I>
Link copied to clipboard
fun <I> KWidget<*>.visListOf(items: Array<I>? = null, style: String = defaultStyle): KVisList<I>
Link copied to clipboard
inline fun <S> KWidget<S>.visProgressBar(min: Float = 0.0f, max: Float = 100.0f, step: Float = 1.0f, vertical: Boolean = false, style: String = if (vertical) defaultVerticalStyle else defaultHorizontalStyle, init: VisProgressBar.(S) -> Unit = {}): VisProgressBar
Link copied to clipboard
inline fun <S> KWidget<S>.visRadioButton(text: String, style: String = "radio", init: KVisRadioButton.(S) -> Unit = {}): KVisRadioButton
Link copied to clipboard
inline fun <S> KWidget<S>.visScrollPane(style: String = defaultStyle, init: KVisScrollPane.(S) -> Unit = {}): KVisScrollPane
Link copied to clipboard
inline fun <I> KWidget<*>.visSelectBox(style: String = defaultStyle, init: KVisSelectBox<I>.() -> Unit = {}): KVisSelectBox<I>
Link copied to clipboard
fun <I> KWidget<*>.visSelectBoxOf(items: Array<I>? = null, style: String = defaultStyle): KVisSelectBox<I>
Link copied to clipboard
inline fun <S> KWidget<S>.visSlider(min: Float = 0.0f, max: Float = 100.0f, step: Float = 1.0f, vertical: Boolean = false, style: String = if (vertical) defaultVerticalStyle else defaultHorizontalStyle, init: VisSlider.(S) -> Unit = {}): VisSlider
Link copied to clipboard
inline fun <S> KWidget<S>.visSplitPane(vertical: Boolean = false, style: String = if (vertical) defaultVerticalStyle else defaultHorizontalStyle, init: KVisSplitPane.(S) -> Unit = {}): KVisSplitPane
Link copied to clipboard
inline fun <S> KWidget<S>.visTable(defaultSpacing: Boolean = false, init: KVisTable.(S) -> Unit = {}): KVisTable
Link copied to clipboard
inline fun <S> KWidget<S>.visTextArea(text: String = "", style: String = defaultStyle, init: VisTextArea.(S) -> Unit = {}): VisTextArea
Link copied to clipboard
inline fun <S> KWidget<S>.visTextButton(text: String, style: String = defaultStyle, init: KVisTextButton.(S) -> Unit = {}): KVisTextButton
Link copied to clipboard
inline fun <S> KWidget<S>.visTextField(text: String = "", style: String = defaultStyle, init: VisTextField.(S) -> Unit = {}): VisTextField
Link copied to clipboard
fun Actor.visTextTooltip(text: CharSequence, textAlign: Int = Align.center, style: String = defaultStyle, init: Tooltip.() -> Unit = {}): Tooltip

Creates and adds Tooltip with a VisLabel to this Actor.

Link copied to clipboard
fun Actor.visTooltip(content: Actor, style: String = defaultStyle, init: Tooltip.() -> Unit = {}): Tooltip

Creates and adds Tooltip to this Actor.

Link copied to clipboard
inline fun <S> KWidget<S>.visTree(style: String = defaultStyle, init: KVisTree.(S) -> Unit = {}): KVisTree
Link copied to clipboard
inline fun <S> KWidget<S>.visValidatableTextField(text: String = "", style: String = defaultStyle, init: VisValidatableTextField.(S) -> Unit = {}): VisValidatableTextField
Link copied to clipboard
inline fun RootWidget.visWindow(title: String, style: String = defaultStyle, init: KVisWindow.() -> Unit = {}): KVisWindow

Constructs a top-level VisWindow widget.