Package-level declarations

Types

Link copied to clipboard

Provides options used to align a LVGL object.

Link copied to clipboard

On/Off features controlling the object's behavior. Note that OR-ed values are possible.

Link copied to clipboard
expect class LvglObject : LvglObjectBase

The default implementation of LvglObjectBase.

actual class LvglObject : LvglObjectBase
actual class LvglObject : LvglObjectBase
Link copied to clipboard
expect interface LvglObjectBase : Closable

Represents a LVGL object.

actual interface LvglObjectBase : Closable
actual interface LvglObjectBase : Closable
Link copied to clipboard

Represents a draw part for a LVGL object.

Link copied to clipboard

Provides options used to align a LVGL object outside of a reference LVGL object.

Link copied to clipboard

Represents a part of an LVGL object. For example a Base object uses the main and scrollbar parts, but a Slider uses the main, indicator, and the knob parts. Parts are similar to pseudo elements in CSS.

Link copied to clipboard

Represents an LVGL object state. The states are usually automatically changed by the library as the user presses, releases, focuses etc an object. However the states can be changed manually too. To set or clear given state (but leave the other states untouched) use LvglObjectBase.addState or LvglObjectBase.clearState. In both cases ORed state values can be used as well. For example:

Link copied to clipboard

Represents the scroll bar mode. How the scroll bar behaves.

Functions

Link copied to clipboard
fun lvglObject(parent: LvglObjectBase? = null, init: LvglObject.() -> Unit = {}): LvglObject

Create a LVGL object (a rectangle).

Link copied to clipboard

Converts a value to a LvglAlignment.

Link copied to clipboard
expect fun UInt.toLvglFlag(): LvglFlag

Converts a value to a LvglFlag.

actual fun UInt.toLvglFlag(): LvglFlag
actual fun UInt.toLvglFlag(): LvglFlag
toLvglObject
Link copied to clipboard
fun CPointer<lv_obj_t>?.toLvglObject(): LvglObject
fun CPointer<lv_obj_t>?.toLvglObject(): LvglObject
toLvglObjectDrawPartDescriptor
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect fun UInt.toLvglPart(): LvglPart

Converts a value to a LvglPart.

actual fun UInt.toLvglPart(): LvglPart
actual fun UInt.toLvglPart(): LvglPart
Link copied to clipboard
expect fun UInt.toLvglState(): LvglState

Converts a value to a LvglState.

actual fun UInt.toLvglState(): LvglState
actual fun UInt.toLvglState(): LvglState
Link copied to clipboard
actual fun UByte.toScrollBarMode(): ScrollBarMode
actual fun UByte.toScrollBarMode(): ScrollBarMode

Properties

Link copied to clipboard

A unique value for the LvglOutsideAlignment.

A unique value for the LvglAlignment.

expect val LvglFlag.value: UInt

A unique value for the LvglFlag.

expect val LvglPart.value: UInt

A unique value for the LvglPart.

expect val LvglState.value: UInt

A unique value for the LvglState.

actual val LvglFlag.value: UInt
actual val LvglPart.value: UInt
actual val LvglState.value: UInt
actual val LvglFlag.value: UInt
actual val LvglPart.value: UInt
actual val LvglState.value: UInt