2016-04-07 00:50:03 -07:00
|
|
|
class Elm.Progressbar (Elm.Layout, Efl.Ui.Progress,
|
|
|
|
Efl.Orientation)
|
2014-03-26 00:36:41 -07:00
|
|
|
{
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_progressbar;
|
2014-03-26 00:36:41 -07:00
|
|
|
eo_prefix: elm_obj_progressbar;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: elm_progressbar;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property pulse {
|
2015-08-07 07:48:51 -07:00
|
|
|
[[Control whether a given progress bar widget is at "pulsing mode" or not.
|
|
|
|
|
|
|
|
By default, progress bars will display values from the low to
|
|
|
|
high value boundaries. There are, though, contexts in which the
|
|
|
|
progress of a given task is unknown. For such cases,
|
|
|
|
one can set a progress bar widget to a "pulsing state", to give
|
|
|
|
the user an idea that some computation is being held, but
|
|
|
|
without exact progress values. In the default theme, it will
|
|
|
|
animate its bar with the contents filling in constantly and back
|
|
|
|
to non-filled, in a loop. To start and stop this pulsing
|
|
|
|
animation, one has to explicitly call elm_progressbar_pulse().]]
|
2014-03-26 00:36:41 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-08-07 07:48:51 -07:00
|
|
|
pulse: bool; [[$true to put $obj in pulsing mode, $false to put it back to its default one]]
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
part_value_set {
|
2015-08-07 07:48:51 -07:00
|
|
|
[[Set the progress value (in percentage) on a given progress bar widget for the given part name
|
2014-03-26 00:36:41 -07:00
|
|
|
|
2015-08-07 07:48:51 -07:00
|
|
|
Use this call to set progress bar status for more than one progress status .
|
2014-03-26 00:36:41 -07:00
|
|
|
|
2015-08-07 07:48:51 -07:00
|
|
|
@since 1.8]]
|
2014-03-26 00:36:41 -07:00
|
|
|
params {
|
2015-08-07 07:48:51 -07:00
|
|
|
@in part: const(char)*; [[The partname to which val have to set]]
|
|
|
|
@in val: double; [[The progress value (must be between $0.0 and 1.0)]]
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
part_value_get @const {
|
2015-08-07 07:48:51 -07:00
|
|
|
[[Get the progress value (in percentage) on a given progress bar widget for a particular part
|
2014-03-26 00:36:41 -07:00
|
|
|
|
2015-08-07 07:48:51 -07:00
|
|
|
@since 1.8]]
|
|
|
|
return: double; [[The value of the progressbar]]
|
2014-03-26 00:36:41 -07:00
|
|
|
params {
|
2015-08-07 07:48:51 -07:00
|
|
|
@in part: const(char)*; [[The part name of the progress bar]]
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
pulse {
|
2015-08-07 07:48:51 -07:00
|
|
|
[[Start/stop a given progress bar "pulsing" animation, if its under that mode
|
2014-03-26 00:36:41 -07:00
|
|
|
|
2015-08-07 07:48:51 -07:00
|
|
|
Note: This call won't do anything if $obj is not under "pulsing mode".]]
|
2014-03-26 00:36:41 -07:00
|
|
|
params {
|
2015-08-07 07:48:51 -07:00
|
|
|
@in state: bool; [[$true, to start the pulsing animation, $false to stop it]]
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
2016-05-12 03:12:08 -07:00
|
|
|
Evas.Object.Smart.add;
|
|
|
|
Evas.Object.Smart.del;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.sub_object_del;
|
2016-04-19 22:55:26 -07:00
|
|
|
Efl.Container.content.set;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.text_aliases.get;
|
|
|
|
Elm.Layout.content_aliases.get;
|
|
|
|
Elm.Layout.sizing_eval;
|
2016-04-07 00:50:03 -07:00
|
|
|
Efl.Ui.Progress.span_size;
|
2016-04-07 02:55:44 -07:00
|
|
|
Efl.Ui.Progress.progress_value;
|
2016-04-07 00:50:03 -07:00
|
|
|
Efl.Ui.Progress.unit_format;
|
|
|
|
Efl.Orientation.orientation;
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
changed;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|