MildenhallLoadingBar

MildenhallLoadingBar — MildenhallLoadingBar is used to give the user an indication of the progress of an operation.

Functions

Properties

gfloat loading-bar-height Read / Write
gfloat loading-bar-pos Read / Write
gboolean loading-bar-show Read / Write
gfloat loading-bar-width Read / Write

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── ClutterActor
            ╰── MildenhallLoadingBar

Description

MildenhallLoadingBar uses the concept of steps which ranges from 0.0 to 1.0 and it will display the percentage of steps that have been completed. The applications can set the status for steps through the property "loading-bar-pos".

Freeing the widget

Call g_object_unref() to free the widget.

Sample C Code

1
2
3
4
5
6
7
8
9
10
11
12
13
GObject *object = NULL;
MildenhallLoadingBar *bar = NULL;
ThornburyItemFactory *item_factory = NULL;

item_factory = thornbury_item_factory_generate_widget_with_props (
	MILDENHALL_TYPE_LOADING_BAR,
	"/usr/share/mildenhall/mildenhall_loading_bar_prop.json");

// Obtain the Object created by Item Factory
g_object_get (item_factory, "object", &object, NULL);
bar = MILDENHALL_LOADING_BAR (object);

clutter_actor_add_child (stage, CLUTTER_ACTOR (bar));

Functions

mildenhall_loading_bar_new ()

MildenhallLoadingBar *
mildenhall_loading_bar_new (void);

Creates a new MildenhallLoadingBar

Returns

a newly created MildenhallLoadingBar object.

[transfer full]


v_create_loading_bar ()

void
v_create_loading_bar (MildenhallLoadingBar *pLoadingBar);

Types and Values

Property Details

The “loading-bar-height” property

  “loading-bar-height”       gfloat

The loading bar height.

Flags: Read / Write

Allowed values: [0,1000]

Default value: 0


The “loading-bar-pos” property

  “loading-bar-pos”          gfloat

The loading bar position.

Flags: Read / Write

Allowed values: [0,1000]

Default value: 0


The “loading-bar-show” property

  “loading-bar-show”         gboolean

To show and hide the loading bar.

Flags: Read / Write

Default value: FALSE


The “loading-bar-width” property

  “loading-bar-width”        gfloat

The loading bar width.

Flags: Read / Write

Allowed values: [0,1000]

Default value: 0

See Also

ThornburyItemFactory, ClutterActor