Examples

Decorations

How to wrap widgets with decorations. Currently only RoundedCorners are supported

Icon changing

How to update the source image/video of an icon widget

Icon fitting modes

Showcase of all the icon fitting modes

Icon rotation

How to rotate an icon

Nested viewports

Showcase of nested scrollable viewport widgets, especially useful for testing scrolling

Radio buttons

How to use radio button widgets (LabelledRadioButton)

Simple example

Example usage for the library, with a dynamic UI

Spritesheets

How to use spritesheets in icon widgets

Text areas

TextArea widget showcase

Text input handlers

How to use Root.textInputHandler for mobile support

Video

Showcase of a video in an icon widget, with a play/pause button

Configurable viewports

Interactive showcase of viewport widgets and their options

Virtual keyboard

How to use virtual keyboards

Widget toggling

How to use toggle widgets with Widget.enabled

Layered container

How to use layered containers to superimpose widgets

Tooltips

How to add tooltips to widgets

Multiple Roots

Example of how keyboard focus works on multiple Roots

XML UI loading

How to load a UI tree from an XML file. Equivalent to the simple example

XML layered UI loading

How to load a UI tree with layers from an XML file. Equivalent to the layered container example

Live text

How to easily create text widgets with continuously-updating text via the LiveLabel widget and other related widgets

Observable transformers

How to transform the value of an Observable with an ObservableTransformer