![]() |
BSB Developer Docs
|
A widget that shows the remaining time. More...
#include <gui/widget.h>Go to the source code of this file.
Data Structures | |
| struct | TimerLabelPreset |
| TimerLabel preset type. More... | |
Typedefs | |
| typedef struct TimerLabel | TimerLabel |
| TimerLabel opaque structure. | |
Functions | |
| TimerLabel * | timer_label_alloc (Widget *parent) |
| Create a new TimerLabel instance. | |
| void | timer_label_free (TimerLabel *instance) |
| Delete a TimerLabel instance. | |
| Widget * | timer_label_get_base (TimerLabel *instance) |
| Get a pointer to the base class instance. | |
| void | timer_label_set_time (TimerLabel *instance, uint32_t time_s) |
| Set the displayed time. | |
| void | timer_label_set_preset (TimerLabel *instance, const TimerLabelPreset *preset) |
| Set the current preset (affects countdown blinking) | |
| void | timer_label_enable_background (TimerLabel *instance, bool enable) |
| Enable or disable the dark gradient background. | |
| void | timer_label_show (TimerLabel *instance, bool enable_animation) |
| Show the label text and background (if enabled) with animation. | |
| void | timer_label_hide (TimerLabel *instance, bool enable_animation) |
| Hide the label text and background (if enabled) with animation. | |
A widget that shows the remaining time.
Can be used only on the front display.
| TimerLabel * timer_label_alloc | ( | Widget * | parent | ) |
Create a new TimerLabel instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void timer_label_enable_background | ( | TimerLabel * | instance, |
| bool | enable ) |
Enable or disable the dark gradient background.
| [in,out] | instance | pointer to the TimerLabel instance to be modified |
| [in] | enable | show the background if true, hide it otherwise |
| void timer_label_free | ( | TimerLabel * | instance | ) |
Delete a TimerLabel instance.
| [in,out] | instance | pointer to the TimerLabel instance to be deleted |
| Widget * timer_label_get_base | ( | TimerLabel * | 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 TimerLabel instance to be queried |
| void timer_label_hide | ( | TimerLabel * | instance, |
| bool | enable_animation ) |
Hide the label text and background (if enabled) with animation.
| [in,out] | instance | pointer to the TimerLabel instance to be modified |
| [in] | enable_animation | use transition animation if true, no animated transition otherwise |
| void timer_label_set_preset | ( | TimerLabel * | instance, |
| const TimerLabelPreset * | preset ) |
Set the current preset (affects countdown blinking)
| [in,out] | instance | pointer to the TimerLabel instance to be modified |
| [in] | preset | pointer to the TimerLabelPreset object |
| void timer_label_set_time | ( | TimerLabel * | instance, |
| uint32_t | time_s ) |
Set the displayed time.
| [in,out] | instance | pointer to the TimerLabel instance to be modified |
| [in] | time_s | time to show, in seconds |
| void timer_label_show | ( | TimerLabel * | instance, |
| bool | enable_animation ) |
Show the label text and background (if enabled) with animation.
| [in,out] | instance | pointer to the TimerLabel instance to be modified |
| [in] | enable_animation | use transition animation if true, no animated transition otherwise |