koui.elements

..
layouts
Button

A button is an element that performs an action when clicked. It has a text label that is describing the function of the button.

Checkbox

A checkbox is a button that represents an option, it can either be switched on or off. It has a text label that is describing the function of the checkbox.

Dropdown

A drop-down menu is a list of options from which the user can choose exactly one option. It works like a group of RadioButtons but takes up less visual space. A drop-down menu also has a label that describes the set of options that the user can choose from. The label is displayed when the drop-down menu is active/open.

Element

The base class of all elements.

I_Range

Interface for elements which hold values in a certain (numeric) range.

ImagePanel

Draws an image to the screen. The class is called ImagePanel to avoid conflicts with kha.Image.

Label

A simple label that displays text.

NumberInput

A number input is a special kind of text input that only accepts numbers. The type of number it accepts is specified by its NumberInput.inputType.

NumberType

Represents a number type used to describe what numbers a NumberInput element accepts.

Panel

A panel is a rectangle that is mostly used as a background behind some content that is visually grouped together.

Progressbar

Displays a progress bar.

RadioButton

A radio button is a special kind of checkbox that is used to select exactly one option from a set of options. Radio buttons belong to a RadioGroup that holds all related radio buttons from which only one option can be selected.

Slider

A slider is an element for controlling a value inside a certain range. Sliders also have an attribute called precision that defines the number of decimal places the value can have.

SliderOrientation

TextInput

A text input element is used to enter a single line of text. It has a label that displays a prompt text when there is no text written to the text input.