Package-level declarations

Types

Link copied to clipboard
expect class Area : Closable

Represents an area (a rectangle) on the screen.

actual class Area : Closable
actual class Area : Closable
Link copied to clipboard
interface Closable
Link copied to clipboard
expect class Image : LvglObjectBase
actual class Image : LvglObjectBase
actual class Image : LvglObjectBase
Link copied to clipboard
expect class ImageDescriptor : Closable

Provides meta data on a image.

actual class ImageDescriptor : Closable
actual class ImageDescriptor : Closable
Link copied to clipboard
expect class Point : Closable

Represents a set of x/y coordinates.

actual class Point : Closable
actual class Point : Closable
Link copied to clipboard
expect class Screen : Closable

Covers all basic screen functionality.

actual class Screen : Closable
actual class Screen : Closable
Link copied to clipboard
expect class StringReference : Closable

Provides a reference to a Kotlin String, which can be cleaned up later on.

actual class StringReference : Closable
actual class StringReference : Closable

Functions

Link copied to clipboard
expect fun deinitLvgl()

De-initialize the LVGL library.

actual fun deinitLvgl()
actual fun deinitLvgl()
Link copied to clipboard
Link copied to clipboard
expect fun initGrid()

Initializes Grid layout, so it can be used with LVGL objects that utilize the layout.

actual fun initGrid()
actual fun initGrid()
Link copied to clipboard
expect fun initLvgl()

Initialize LVGL library. Should be called before any other LVGL related function.

actual fun initLvgl()
actual fun initLvgl()
Link copied to clipboard
fun point(newXPos: Short, newYPos: Short): Point
Link copied to clipboard
expect fun runEventLoop()

Run the main event loop.

actual fun runEventLoop()
actual fun runEventLoop()
Link copied to clipboard
fun screen(init: LvglObjectBase.() -> Unit): Screen

Creates a new screen that is initialized with a LVGL object.

toArea
Link copied to clipboard
fun CPointer<lv_area_t>?.toArea(): Area
fun CPointer<lv_area_t>?.toArea(): Area
toImage
Link copied to clipboard
fun CPointer<lv_img_t>?.toImage(): Image
fun CPointer<lv_img_t>?.toImage(): Image
toImageDescriptor
Link copied to clipboard
toPoint
Link copied to clipboard
fun CPointer<lv_point_t>?.toPoint(): Point
fun CPointer<lv_point_t>?.toPoint(): Point

Properties

Link copied to clipboard
expect val Short.percent: Short

Provides a percentage from a value.

actual val Short.percent: Short
actual val Short.percent: Short
Link copied to clipboard

The system layer for the default display. Used to ensure something is always visible like a mouse cursor for example.

Link copied to clipboard

The top layer for the default display. Typically, used for menu bar, popup etc.