NbtkProgressBar

NbtkProgressBar — visual representation of progress

Synopsis

                    NbtkProgressBar;
NbtkWidget *        nbtk_progress_bar_new               (void);
void                nbtk_progress_bar_set_progress      (NbtkProgressBar *bar,
                                                         gdouble progress);
gdouble             nbtk_progress_bar_get_progress      (NbtkProgressBar *bar);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----NbtkWidget
                     +----NbtkProgressBar

Implemented Interfaces

NbtkProgressBar implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface and NbtkStylable.

Properties

  "progress"                 gdouble               : Read / Write

Description

NbtkProgressBar visually represents the progress of an action or a value in a range.

Details

NbtkProgressBar

typedef struct _NbtkProgressBar NbtkProgressBar;

The contents of this structure are private and should only be accessed through the public API.


nbtk_progress_bar_new ()

NbtkWidget *        nbtk_progress_bar_new               (void);

Create a new progress bar

Returns :

a new NbtkProgressBar

nbtk_progress_bar_set_progress ()

void                nbtk_progress_bar_set_progress      (NbtkProgressBar *bar,
                                                         gdouble progress);

Set the progress of the progress bar

bar :

A NbtkProgressBar

progress :

A value between 0.0 and 1.0

nbtk_progress_bar_get_progress ()

gdouble             nbtk_progress_bar_get_progress      (NbtkProgressBar *bar);

Get the progress of the progress bar

bar :

A NbtkProgressBar

Returns :

A value between 0.0 and 1.0

Property Details

The "progress" property

  "progress"                 gdouble               : Read / Write

Progress.

Allowed values: [0,1]

Default value: 0