Wearable native

Circle Progressbar

This feature is supported in wearable applications only.

The circle progressbar aims to show the progress status of a given task with circular design. It visualizes the progress status within a range.

Figure: Circle Progressbar

Circle Progressbar

Creating a Circle Progressbar

You can create the circle progressbar by using the eext_circle_object_progressbar_add() function. When creating the circle progressbar, a surface is necessary to render on the surface.

Evas_Object *circle_progressbar, *parent;
circle_progressbar = eext_circle_object_progressbar_add(parent, surface);

Using the Circle Object Property

Circle progressbar supports the following circle object API calls:

  • eext_circle_object_value_min_max_set()
  • eext_circle_object_value_min_max_get()
  • eext_circle_object_value_set()
  • eext_circle_object_value_get()
  • eext_circle_object_angle_min_max_set()
  • eext_circle_object_angle_min_max_get()
  • eext_circle_object_angle_offset_set()
  • eext_circle_object_angle_offset_get()
  • eext_circle_object_angle_set()
  • eext_circle_object_angle_get()
  • eext_circle_object_line_width_set()
  • eext_circle_object_line_width_get()
  • eext_circle_object_radius_set()
  • eext_circle_object_radius_get()
  • eext_circle_object_color_set()
  • eext_circle_object_color_get()
  • eext_circle_object_disabled_set()
  • eext_circle_object_disabled_get()

A circle progressbar has the following items:

  • default: Default circle item that draws the progressbar.
  • bg: Progress bar background circle item.

You can change the properties of the items by using the eext_circle_object_item* APIs.

For more information, see the Efl Extension Circle Progressbar API.

Configuring the Circle Progressbar

Before using the circle progressbar, its minimum and maximum values are set with the eext_circle_object_value_min_max_set() function. The current value is set with eext_circle_object_value_set().

Here, the minimum value is set to 0.0, the maximum value to 100.0, and the current value to 3.0.

eext_circle_object_value_min_max_set(circle_progressbar, 0.0, 100.0);
eext_circle_object_value_set(circle_progressbar, 3.0);
Go to top