Companion

expect object Companion
actual object Companion
actual object Companion

Functions

Link copied to clipboard
expect fun create(): Animation

Creates a new Animation.

actual fun create(): Animation
actual fun create(): Animation
Link copied to clipboard
expect fun deleteAll()

Delete all the animations.

actual fun deleteAll()
actual fun deleteAll()
fromPointer
Link copied to clipboard
fun fromPointer(ptr: CPointer<lv_anim_t>?): Animation
fun fromPointer(ptr: CPointer<lv_anim_t>?): Animation
Link copied to clipboard
expect fun refreshNow()

Manually refresh the state of the animations. Useful to make the animations running in a blocking process where lv_timer_handler can't run for a while. Shouldn't be used directly because it is called in lv_refr_now.

actual fun refreshNow()
actual fun refreshNow()
Link copied to clipboard
expect fun speedToTime(speed: UInt, start: Int, end: Int): UInt

Calculate the time of an animation with a given speed and the start and end values.

actual fun speedToTime(speed: UInt, start: Int, end: Int): UInt
actual fun speedToTime(speed: UInt, start: Int, end: Int): UInt

Properties

Link copied to clipboard
expect val totalRunning: UShort

The number of running animations.

actual val totalRunning: UShort
actual val totalRunning: UShort