![]() |
BSB Developer Docs
|
A widget that provides an animated timer session summary. More...
#include <gui/widget.h>Go to the source code of this file.
Typedefs | |
| typedef struct SummaryView | SummaryView |
| SummaryView opaque structure. | |
| typedef void(* | SummaryViewCallback) (void *context) |
| Animation completion callback function type. | |
Functions | |
| SummaryView * | summary_view_alloc (Widget *parent) |
| Create a new SummaryView instance. | |
| void | summary_view_free (SummaryView *instance) |
| Delete a SummaryView instance. | |
| Widget * | summary_view_get_base (SummaryView *instance) |
| Get a pointer to the base class instance. | |
| void | summary_view_set_cycles_count (SummaryView *instance, uint32_t cycles_count) |
| Set the cycles count to display. | |
| void | summary_view_set_completed_callback (SummaryView *instance, SummaryViewCallback callback, void *context) |
| Set the function to be called upon the animation completion. | |
A widget that provides an animated timer session summary.
Can be used only on the front display.
| typedef void(* SummaryViewCallback) (void *context) |
Animation completion callback function type.
| [in,out] | context | pointer to a user-specified context object |
| SummaryView * summary_view_alloc | ( | Widget * | parent | ) |
Create a new SummaryView instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void summary_view_free | ( | SummaryView * | instance | ) |
Delete a SummaryView instance.
| [in,out] | instance | pointer to the SummaryView instance to be deleted |
| Widget * summary_view_get_base | ( | SummaryView * | 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 SummaryView instance to be queried |
| void summary_view_set_completed_callback | ( | SummaryView * | instance, |
| SummaryViewCallback | callback, | ||
| void * | context ) |
Set the function to be called upon the animation completion.
| [in,out] | instance | pointer to the SummaryView instance to be modified |
| [in] | callback | pointer to the callback function |
| [in,out] | context | pointer to the user-specified object (will be passed to the callback) |
| void summary_view_set_cycles_count | ( | SummaryView * | instance, |
| uint32_t | cycles_count ) |
Set the cycles count to display.
Affects the number of blocks in the animation. Values higher than 10 will be silently clamped.
| [in,out] | instance | pointer to the SummaryView instance to be modified |
| [in] | cycles_count | number of cycles to display |