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

A widget that provides a progress timeline. More...

#include <gui/widget.h>

Go to the source code of this file.

Typedefs

typedef struct ProgressView ProgressView
 ProgressView opaque structure.
 

Functions

ProgressView * progress_view_alloc (Widget *parent)
 Create a new ProgressView instance.
 
void progress_view_free (ProgressView *instance)
 Delete a ProgressView instance.
 
Widget * progress_view_get_base (ProgressView *instance)
 Get a pointer to the base class instance.
 
void progress_view_set_progress (ProgressView *instance, uint32_t interval_idx, uint32_t cycles_count, bool wait_next)
 Set the progress to display.
 

Detailed Description

A widget that provides a progress timeline.

Can be used only on the front display.

Function Documentation

◆ progress_view_alloc()

ProgressView * progress_view_alloc ( Widget * parent)

Create a new ProgressView instance.

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

◆ progress_view_free()

void progress_view_free ( ProgressView * instance)

Delete a ProgressView instance.

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

◆ progress_view_get_base()

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

◆ progress_view_set_progress()

void progress_view_set_progress ( ProgressView * instance,
uint32_t interval_idx,
uint32_t cycles_count,
bool wait_next )

Set the progress to display.

Parameters
[in,out]instancepointer to the ProgressView instance to be modified
[in]interval_idxnumerical index of the current interval
[in]cycles_counttotal count of timer cycles
[in]wait_nextwhether to play a waiting animation after the main transition