![]() |
BSB Developer Docs
|
A widget that shows the current timer status. More...
#include <gui/widget.h>Go to the source code of this file.
Data Structures | |
| struct | TimerIndicatorBgConfig |
| struct | TimerIndicatorProgressConfig |
| struct | TimerIndicatorFgConfig |
| struct | TimerIndicatorPreset |
| struct | TimerIndicatorTransition |
Typedefs | |
| typedef struct TimerIndicator | TimerIndicator |
| TimerIndicator opaque structure. | |
Enumerations | |
| enum | TimerIndicatorProgressDirection { TimerIndicatorProgressDirectionHorizontal , TimerIndicatorProgressDirectionVertical , TimerIndicatorProgressDirectionMax } |
Functions | |
| TimerIndicator * | timer_indicator_alloc (Widget *parent) |
| Create a new TimerIndicator instance. | |
| void | timer_indicator_free (TimerIndicator *instance) |
| Delete a TimerIndicator instance. | |
| Widget * | timer_indicator_get_base (TimerIndicator *instance) |
| Get a pointer to the base class instance. | |
| void | timer_indicator_set_preset (TimerIndicator *instance, const TimerIndicatorPreset *preset, const TimerIndicatorTransition *transition) |
| Set the active preset for a TimerIndicator instance. | |
| void | timer_indicator_set_progress (TimerIndicator *instance, float progress) |
| Set the progress value for the progress animation. | |
| void | timer_indicator_enable_animations (TimerIndicator *instance, bool enable) |
| Enable or disable animations shown by a TimerIndicator instance. | |
A widget that shows the current timer status.
Can be used only on the front display.
| TimerIndicator * timer_indicator_alloc | ( | Widget * | parent | ) |
Create a new TimerIndicator instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void timer_indicator_enable_animations | ( | TimerIndicator * | instance, |
| bool | enable ) |
Enable or disable animations shown by a TimerIndicator instance.
| [in,out] | instance | pointer to the TimerIndicator instance to be modified |
| [in] | enable | play animations if true, stop them otherwise |
| void timer_indicator_free | ( | TimerIndicator * | instance | ) |
Delete a TimerIndicator instance.
| [in,out] | instance | pointer to the TimerIndicator instance to be deleted |
| Widget * timer_indicator_get_base | ( | TimerIndicator * | 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 TimerIndicator instance to be queried |
| void timer_indicator_set_preset | ( | TimerIndicator * | instance, |
| const TimerIndicatorPreset * | preset, | ||
| const TimerIndicatorTransition * | transition ) |
Set the active preset for a TimerIndicator instance.
TimerIndicator presets consist of the following parts:
Any of these parts may be omitted, in that case NULL should be passed instead of the respective file path.
| [in,out] | instance | pointer to the TimerIndicator instance to be modified |
| [in] | preset | |
| [in] | transition |
| void timer_indicator_set_progress | ( | TimerIndicator * | instance, |
| float | progress ) |
Set the progress value for the progress animation.
| [in,out] | instance | pointer to the TimerIndicator instance to be modified |
| [in] | progress | number between 0 and 1 (inclusive) |