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

A widget that provides a timer session overview. More...

#include <gui/widget.h>

Go to the source code of this file.

Typedefs

typedef struct OverviewLabel OverviewLabel
 OverviewLabel opaque structure.
 

Functions

OverviewLabel * overview_label_alloc (Widget *parent)
 Create a new OverviewLabel instance.
 
void overview_label_free (OverviewLabel *instance)
 Delete a OverviewLabel instance.
 
Widget * overview_label_get_base (OverviewLabel *instance)
 Get a pointer to the base class instance.
 
void overview_label_set_intervals (OverviewLabel *instance, uint32_t work_time_mn, uint32_t rest_time_mn)
 Set the displayed overview time.
 

Detailed Description

A widget that provides a timer session overview.

Can be used only on the front display.

Function Documentation

◆ overview_label_alloc()

OverviewLabel * overview_label_alloc ( Widget * parent)

Create a new OverviewLabel instance.

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

◆ overview_label_free()

void overview_label_free ( OverviewLabel * instance)

Delete a OverviewLabel instance.

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

◆ overview_label_get_base()

Widget * overview_label_get_base ( OverviewLabel * 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 OverviewLabel instance to be queried
Returns
pointer to the base class instance

◆ overview_label_set_intervals()

void overview_label_set_intervals ( OverviewLabel * instance,
uint32_t work_time_mn,
uint32_t rest_time_mn )

Set the displayed overview time.

Parameters
[in,out]instancepointer to the OverviewLabel instance to be modified
[in]work_time_mnwork time to display, in minutes
[in]rest_time_mnrest time to display, in minutes