BSB Developer Docs
Loading...
Searching...
No Matches
summary_label.h File Reference

A widget that provides a text-based timer session summary. More...

#include <gui/widget.h>

Go to the source code of this file.

Typedefs

typedef struct SummaryLabel SummaryLabel
 SummaryLabel opaque structure.
 

Functions

SummaryLabel * summary_label_alloc (Widget *parent)
 Create a new SummaryLabel instance.
 
void summary_label_free (SummaryLabel *instance)
 Delete a SummaryLabel instance.
 
Widget * summary_label_get_base (SummaryLabel *instance)
 Get a pointer to the base class instance.
 
void summary_label_set_cycles_count (SummaryLabel *instance, uint32_t cycles_count)
 Set the number of cycles to show in the cycles display section.
 
void summary_label_switch_display (SummaryLabel *instance)
 Switch the cycles display to the text message and vice versa.
 

Detailed Description

A widget that provides a text-based timer session summary.

Can be used only on the front display.

Function Documentation

◆ summary_label_alloc()

SummaryLabel * summary_label_alloc ( Widget * parent)

Create a new SummaryLabel instance.

Parameters
[in,out]parentpointer to the parent Widget instance
Returns
pointer to the newly created SummaryLabel instance

◆ summary_label_free()

void summary_label_free ( SummaryLabel * instance)

Delete a SummaryLabel instance.

Parameters
[in,out]instancepointer to the SummaryLabel instance to be deleted

◆ summary_label_get_base()

Widget * summary_label_get_base ( SummaryLabel * instance)

Get a pointer to the base class instance.

The return value can be used in all Widget methods.

Parameters
[in,out]instancepointer to the SummaryLabel instance to be queried
Returns
pointer to the base class instance

◆ summary_label_set_cycles_count()

void summary_label_set_cycles_count ( SummaryLabel * instance,
uint32_t cycles_count )

Set the number of cycles to show in the cycles display section.

Parameters
[in,out]instancepointer to the SummaryLabel instance to be modified
[in]cycles_countnumber of cycles to show

◆ summary_label_switch_display()

void summary_label_switch_display ( SummaryLabel * instance)

Switch the cycles display to the text message and vice versa.

Parameters
[in,out]instancepointer to the SummaryLabel instance to be modified