Animation

expect class Animation : Closable

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

actual class Animation : Closable
actual class Animation : Closable

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Functions

Link copied to clipboard
expect fun bouncePath(): Int

Calculate the current value of an animation with 3 bounces.

actual fun bouncePath(): Int
actual fun bouncePath(): Int
Link copied to clipboard

Changes the callbacks used by this animation through registry.

close
Link copied to clipboard
abstract fun close()
open override fun close()
open override fun close()
Link copied to clipboard
expect fun easeInOutPath(): Int

Calculate the current value of an animation applying an S characteristic (cosine).

actual fun easeInOutPath(): Int
actual fun easeInOutPath(): Int
Link copied to clipboard
expect fun easeInPath(): Int

Calculate the current value of an animation slowing down the start phase.

actual fun easeInPath(): Int
actual fun easeInPath(): Int
Link copied to clipboard
expect fun easeOutPath(): Int

Calculate the current value of an animation slowing down the end phase.

actual fun easeOutPath(): Int
actual fun easeOutPath(): Int
Link copied to clipboard
expect fun linearPath(): Int

Calculate the current value of an animation applying linear characteristic.

actual fun linearPath(): Int
actual fun linearPath(): Int
Link copied to clipboard
expect fun overshootPath(): Int

Calculate the current value of an animation with overshoot at the end.

actual fun overshootPath(): Int
actual fun overshootPath(): Int
Link copied to clipboard
expect fun setValues(start: Int, end: Int)

Set the start and end values of an animation.

actual fun setValues(start: Int, end: Int)
actual fun setValues(start: Int, end: Int)
Link copied to clipboard
expect fun start(): Animation

Create an animation.

actual fun start(): Animation
actual fun start(): Animation
Link copied to clipboard
expect fun stepPath(): Int

Calculate the current value of an animation applying step characteristic. Set end value on the end of the animation.

actual fun stepPath(): Int
actual fun stepPath(): Int

Properties

Link copied to clipboard
expect var delay: UInt

Delay before starting the animation in milliseconds. Use 0u to disable.

actual var delay: UInt
actual var delay: UInt
Link copied to clipboard
expect var earlyApply: Boolean

If true then apply the start value immediately in start. Otherwise, if false then apply the start value only when delay ms is elapsed, and the animations really starts.

actual var earlyApply: Boolean
actual var earlyApply: Boolean
lvAnimPtr
Link copied to clipboard
val lvAnimPtr: CPointer<lv_anim_t>?
val lvAnimPtr: CPointer<lv_anim_t>?
Link copied to clipboard
expect var playbackDelay: UInt

Delay in milliseconds before starting the playback animation.

actual var playbackDelay: UInt
actual var playbackDelay: UInt
Link copied to clipboard
expect var playbackTime: UInt

The duration of the playback animation in milliseconds. Use 0u to disable playback.

actual var playbackTime: UInt
actual var playbackTime: UInt
Link copied to clipboard
expect var repeatCount: UShort

Repeat count or LV_ANIM_REPEAT_INFINITE for infinite repetition. Use 0 to disable repetition.

actual var repeatCount: UShort
actual var repeatCount: UShort
Link copied to clipboard
expect var repeatDelay: UInt

Delay in milliseconds before repeating the animation.

actual var repeatDelay: UInt
actual var repeatDelay: UInt
Link copied to clipboard
expect var time: UInt

Duration of the animation in milliseconds.

actual var time: UInt
actual var time: UInt