GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_widget_activity.h File Reference

An activity widget. More...

Go to the source code of this file.

Functions

gp_widgetgp_widget_activity_new (const char *label)
 Allocates and initializes a new activity widget.
 
void gp_widget_activity_start (gp_widget *self)
 Starts the activity widget animation.
 
void gp_widget_activity_stop (gp_widget *self)
 Stops the activity widget animation.
 
bool gp_widget_activity_running (gp_widget *self)
 Returns true if activity is running.
 
const char * gp_widget_activity_label_get (gp_widget *self)
 Gets an activity label.
 

Detailed Description

An activity widget.

Activity widget

Activity widget is an animation which shows that application doing something. Unlike progress bar there is no measurement of progress of the work being done.

Activity widget JSON attributes

Attribute Type Default Description
label string An activity label.

Definition in file gp_widget_activity.h.

Function Documentation

◆ gp_widget_activity_label_get()

const char * gp_widget_activity_label_get ( gp_widget * self)

Gets an activity label.

Parameters
selfAn activity widget.
Returns
An activity label or NULL if there is none.

◆ gp_widget_activity_new()

gp_widget * gp_widget_activity_new ( const char * label)

Allocates and initializes a new activity widget.

Parameters
labelAn activity label.
Returns
An activity widget.

◆ gp_widget_activity_running()

bool gp_widget_activity_running ( gp_widget * self)

Returns true if activity is running.

Returns
True if activity is running.