ProgressBarAnimation

An animation that can draw one or more progress tasks to the screen.

Inheritors

Properties

Link copied to clipboard
abstract val finished: Boolean

true if this animation has finished and should be stopped or cleared.

Functions

Link copied to clipboard
abstract fun <T> addTask(definition: ProgressBarDefinition<T>, context: T, total: Long? = null, completed: Long = 0, start: Boolean = true, visible: Boolean = true): ProgressTask<T>

Add a new task to the progress bar with the given definition and context.

Link copied to clipboard
fun ProgressBarAnimation.addTask(definition: ProgressBarDefinition<Unit>, total: Long? = null, completed: Long = 0, start: Boolean = true, visible: Boolean = true): ProgressTask<Unit>

Add a new task to the progress bar with the given definition.

Link copied to clipboard
abstract fun refresh(refreshAll: Boolean = false)

Draw the animation to the screen.

Link copied to clipboard
abstract fun removeTask(taskId: TaskId): Boolean

Remove a task with the given taskId from the progress bar.

Link copied to clipboard

Remove a task from the progress bar.