Package-level declarations

Types

Link copied to clipboard
expect class ArcDescriptor : Closable

Provides meta data on an arc.

actual class ArcDescriptor : Closable
actual class ArcDescriptor : Closable
Link copied to clipboard
expect class Canvas : LvglObjectBase

Inherits from Image where the user can draw anything. Rectangles, texts, images, lines, arcs can be drawn here using LVGL's drawing engine. Additionally, effects can be applied, such as rotation, zoom and blur.

actual class Canvas : LvglObjectBase
actual class Canvas : LvglObjectBase
Link copied to clipboard
expect class CanvasBuffer : Closable

Provides a buffer for the Canvas to do drawing operations.

actual class CanvasBuffer : Closable
actual class CanvasBuffer : Closable
Link copied to clipboard

Provides meta data on a image.

actual class DrawImageDescriptor : Closable
actual class DrawImageDescriptor : Closable
Link copied to clipboard
expect class LabelDescriptor : Closable

Provides meta data on a label.

actual class LabelDescriptor : Closable
actual class LabelDescriptor : Closable
Link copied to clipboard
expect class LineDescriptor : Closable

Provides meta data on a line.

actual class LineDescriptor : Closable
actual class LineDescriptor : Closable
Link copied to clipboard

Provides meta data on a rectangle.

actual class RectangleDescriptor : Closable
actual class RectangleDescriptor : Closable

Functions

Link copied to clipboard
Link copied to clipboard
fun canvas(parent: LvglObjectBase, init: Canvas.() -> Unit): Canvas

Creates a new Canvas, and initializes it. Remember to assign a buffer via Canvas.setBuffer to the canvas before using the canvas itself.

Link copied to clipboard
Link copied to clipboard
toArcDescriptor
Link copied to clipboard
fun CPointer<lv_draw_arc_dsc_t>?.toArcDescriptor(): ArcDescriptor
fun CPointer<lv_draw_arc_dsc_t>?.toArcDescriptor(): ArcDescriptor
toDrawImageDescriptor
Link copied to clipboard
toLabelDescriptor
Link copied to clipboard
fun CPointer<lv_draw_label_dsc_t>?.toLabelDescriptor(): LabelDescriptor
fun CPointer<lv_draw_label_dsc_t>?.toLabelDescriptor(): LabelDescriptor
toLineDescriptor
Link copied to clipboard
fun CPointer<lv_draw_line_dsc_t>?.toLineDescriptor(): LineDescriptor
fun CPointer<lv_draw_line_dsc_t>?.toLineDescriptor(): LineDescriptor
toRectangleDescriptor
Link copied to clipboard
Link copied to clipboard
expect fun trueColorAlphaBufferSize(width: Short, height: Short): UInt

Calculates the buffer size for True Color with Alpha.

actual fun trueColorAlphaBufferSize(width: Short, height: Short): UInt
actual fun trueColorAlphaBufferSize(width: Short, height: Short): UInt
Link copied to clipboard
expect fun trueColorBufferSize(width: Short, height: Short): UInt

Calculates the buffer size for True Color.

actual fun trueColorBufferSize(width: Short, height: Short): UInt
actual fun trueColorBufferSize(width: Short, height: Short): UInt