Package-level declarations

Types

Link copied to clipboard
expect class Animation : Closable

Represents an animation that can be applied to a LVGL Object.

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

Registers animation callbacks.

actual class AnimationCallbackRegistry : Closable
actual class AnimationCallbackRegistry : Closable
Link copied to clipboard
typealias AnimationExecuteCallback = (animation: Animation, value: Int, userData: Any?) -> Unit

Generic prototype of animator functions. First parameter is the animation. Second parameter is the value to set. Compatible with lv_xxx_set_yyy(obj, value) functions.

Link copied to clipboard
typealias AnimationGetValueCallback = (animation: Animation, userData: Any?) -> Int

Used when the animation values are relative to get the current value.

Link copied to clipboard
typealias AnimationPathCallback = (animation: Animation, userData: Any?) -> Int

Get the current value during an animation.

Link copied to clipboard
typealias AnimationReadyCallback = (animation: Animation, userData: Any?) -> Unit

Handles the event where the animation is ready.

Link copied to clipboard
typealias AnimationStartCallback = (animation: Animation, userData: Any?) -> Unit

Handles the event where the animation really starts (considering delay).

Link copied to clipboard

Provides all the animations that can be used with screen loading.

Functions

Link copied to clipboard
fun animation(time: UInt, start: Int, end: Int, init: Animation.() -> Unit): Animation

Creates a new animation that is initialized.

toAnimation
Link copied to clipboard
fun CPointer<lv_anim_t>?.toAnimation(): Animation
fun CPointer<lv_anim_t>?.toAnimation(): Animation
Link copied to clipboard