Cross-platform C SDK logo

Cross-platform C SDK

Progress

❮ Back
Next ❯
This page has been automatically translated using the Google Translate API services. We are working on improving texts. Thank you for your understanding and patience.

Functions

Progress*progress_create (void)
voidprogress_undefined (...)
voidprogress_value (...)

Progress bars are passive controls that show the remaining time to complete a certain task (Figure 1). As time passes we must update the control. The undefined state will show an animation without indicating status, which will be useful when we cannot determine the required time.


progress_create ()

Create a progress bar.

Progress*
progress_create(void);

Return

The progress.


progress_undefined ()

Set the progress bar as undefined.

void
progress_undefined(Progress *progress,
                   const bool_t running);
progress

The progress.

running

TRUEto activate the animation.


progress_value ()

Set the progress position.

void
progress_value(Progress *progress,
               const real32_t value);
progress

The progress.

value

The position between 0.0 and 1.0.

❮ Back
Next ❯