MxProgressBar

MxProgressBar — visual representation of progress

Synopsis

struct              MxProgressBar;
struct              MxProgressBarClass;
ClutterActor *      mx_progress_bar_new                 (void);
void                mx_progress_bar_set_progress        (MxProgressBar *bar,
                                                         gdouble progress);
gdouble             mx_progress_bar_get_progress        (MxProgressBar *bar);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----MxWidget
                     +----MxProgressBar

Implemented Interfaces

MxProgressBar implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface and MxStylable.

Properties

  "progress"                 gdouble               : Read / Write

Description

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

Details

struct MxProgressBar

struct MxProgressBar;

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


struct MxProgressBarClass

struct MxProgressBarClass {
  MxWidgetClass parent_class;

  /* padding for future expansion */
  void (*_padding_0) (void);
  void (*_padding_1) (void);
  void (*_padding_2) (void);
  void (*_padding_3) (void);
  void (*_padding_4) (void);
};

mx_progress_bar_new ()

ClutterActor *      mx_progress_bar_new                 (void);

Create a new progress bar

Returns :

a new MxProgressBar

mx_progress_bar_set_progress ()

void                mx_progress_bar_set_progress        (MxProgressBar *bar,
                                                         gdouble progress);

Set the progress of the progress bar

bar :

A MxProgressBar

progress :

A value between 0.0 and 1.0

mx_progress_bar_get_progress ()

gdouble             mx_progress_bar_get_progress        (MxProgressBar *bar);

Get the progress of the progress bar

bar :

A MxProgressBar

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