TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::ProgressTask Struct Reference

A piece of work, as TaskProgress, ProgressSteps, StatusProgress and BackgroundTasks show it. More...

#include <gui_controls/gui_progress_types.h>

Public Attributes

std::string_view name
 "Importing character.fbx"
float value = -1.0f
 0 to 1 done; below 0 when not known, shown as a sliding segment
TaskState state = TaskState::Running
std::string_view note
 beside the name: "2.1 s", "1,240 / 3,800"; empty shows the percent while running
std::string_view detail
 under the bar: "12.4 MB of 19.3 MB"; once failed, why
std::function< void()> onCancel
 set: a cancel button while running or paused
std::function< void()> onRetry
 set: a Retry button once failed
std::function< void()> onPause
 set, in BackgroundTasks: pause while running, resume while paused

Detailed Description

A piece of work, as TaskProgress, ProgressSteps, StatusProgress and BackgroundTasks show it.

The texts are only read during the call.

Member Data Documentation

◆ name

std::string_view tachyon::ProgressTask::name

"Importing character.fbx"

◆ value

float tachyon::ProgressTask::value = -1.0f

0 to 1 done; below 0 when not known, shown as a sliding segment

◆ state

TaskState tachyon::ProgressTask::state = TaskState::Running

◆ note

std::string_view tachyon::ProgressTask::note

beside the name: "2.1 s", "1,240 / 3,800"; empty shows the percent while running

◆ detail

std::string_view tachyon::ProgressTask::detail

under the bar: "12.4 MB of 19.3 MB"; once failed, why

◆ onCancel

std::function<void()> tachyon::ProgressTask::onCancel

set: a cancel button while running or paused

◆ onRetry

std::function<void()> tachyon::ProgressTask::onRetry

set: a Retry button once failed

◆ onPause

std::function<void()> tachyon::ProgressTask::onPause

set, in BackgroundTasks: pause while running, resume while paused


The documentation for this struct was generated from the following file: