![]() |
BSB Developer Docs
|
A widget that shows the progress in the form of a spinning counter. More...
#include <gui/widget.h>Go to the source code of this file.
Typedefs | |
| typedef struct ProgressCounter | ProgressCounter |
| ProgressCounter opaque structure. | |
Functions | |
| ProgressCounter * | progress_counter_alloc (Widget *parent) |
| Create a new ProgressCounter instance. | |
| void | progress_counter_free (ProgressCounter *instance) |
| Delete a ProgressCounter instance. | |
| Widget * | progress_counter_get_base (ProgressCounter *instance) |
| Get a pointer to the base class instance. | |
| void | progress_counter_set_values (ProgressCounter *instance, uint32_t done, uint32_t total) |
| Set the progress values and play a rollover animation. | |
A widget that shows the progress in the form of a spinning counter.
Can be used only on the front display.
| ProgressCounter * progress_counter_alloc | ( | Widget * | parent | ) |
Create a new ProgressCounter instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void progress_counter_free | ( | ProgressCounter * | instance | ) |
Delete a ProgressCounter instance.
| [in,out] | instance | pointer to the ProgressCounter instance to be deleted |
| Widget * progress_counter_get_base | ( | ProgressCounter * | instance | ) |
Get a pointer to the base class instance.
The return value can be used in all Widget methods.
| [in,out] | instance | pointer to the ProgressCounter instance to be queried |
| void progress_counter_set_values | ( | ProgressCounter * | instance, |
| uint32_t | done, | ||
| uint32_t | total ) |
Set the progress values and play a rollover animation.
| [in,out] | instance | pointer to the ProgressCounter instance to be modified |
| [in] | done | the number of done cycles (cannot be 0) |
| [in] | total | the total number of cycles |