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

A widget that displays a static ProgressBar. More...

#include <gui/widget.h>
#include <toolbox/color.h>

Go to the source code of this file.

Typedefs

typedef struct ProgressBar ProgressBar
 ProgressBar opaque structure.
 

Functions

ProgressBar * progress_bar_alloc (Widget *parent)
 Create a new ProgressBar instance.
 
void progress_bar_free (ProgressBar *instance)
 Delete an ProgressBar instance.
 
Widget * progress_bar_get_base (ProgressBar *instance)
 Get a pointer to the base class instance.
 
void progress_bar_set_value (ProgressBar *instance, int32_t value)
 Set the current value of the ProgressBar.
 

Detailed Description

A widget that displays a static ProgressBar.

Function Documentation

◆ progress_bar_alloc()

ProgressBar * progress_bar_alloc ( Widget * parent)

Create a new ProgressBar instance.

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

◆ progress_bar_free()

void progress_bar_free ( ProgressBar * instance)

Delete an ProgressBar instance.

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

◆ progress_bar_get_base()

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

◆ progress_bar_set_value()

void progress_bar_set_value ( ProgressBar * instance,
int32_t value )

Set the current value of the ProgressBar.

Parameters
[in,out]instancepointer to the ProgressBar instance to be modified
[in]valuecurrent value (0-100)