2015-04-22 04:43:05 -07:00
|
|
|
class Elm.Progressbar (Elm.Layout)
|
2014-03-26 00:36:41 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_progressbar;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property span_size {
|
2014-03-26 00:36:41 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the (exact) length of the bar region of a given progress bar
|
|
|
|
widget
|
|
|
|
|
|
|
|
This sets the minimum width (when in horizontal mode) or height
|
|
|
|
(when in vertical mode) of the actual bar area of the progress
|
2015-08-06 07:12:27 -07:00
|
|
|
bar $obj. This in turn affects the object's minimum size. Use
|
2014-03-26 00:36:41 -07:00
|
|
|
this when you're not setting other size hints expanding on the
|
|
|
|
given direction (like weight and alignment hints) and you would
|
|
|
|
like it to have a specific size.
|
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
@note Icon, label and unit text around $obj will require their
|
|
|
|
own space, which will make $obj to require more the $size,
|
2014-03-26 00:36:41 -07:00
|
|
|
actually.
|
|
|
|
|
|
|
|
@see elm_progressbar_span_size_get()
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the length set for the bar region of a given progress bar
|
|
|
|
widget
|
|
|
|
|
|
|
|
@return The length of the progress bar's bar region
|
|
|
|
|
|
|
|
If that size was not set previously, with
|
2015-08-06 07:12:27 -07:00
|
|
|
elm_progressbar_span_size_set(), this call will return $0.
|
2014-03-26 00:36:41 -07:00
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
values {
|
2015-06-26 07:36:43 -07:00
|
|
|
size: Evas.Coord; /*@ The length of the progress bar's bar region */
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property pulse {
|
2014-03-26 00:36:41 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set 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
|
2014-06-18 04:57:52 -07:00
|
|
|
progress of a given task is @b unknown. For such cases,
|
2014-03-26 00:36:41 -07:00
|
|
|
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().
|
|
|
|
|
|
|
|
@see elm_progressbar_pulse_get()
|
|
|
|
@see elm_progressbar_pulse()
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get whether a given progress bar widget is at "pulsing mode" or
|
|
|
|
not.
|
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
@return $true, if $obj is in pulsing mode, $false
|
2014-03-26 00:36:41 -07:00
|
|
|
if it's in the default one (and on errors)
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
values {
|
2015-08-06 07:12:27 -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
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property value {
|
2014-03-26 00:36:41 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the progress value (in percentage) on a given progress bar
|
|
|
|
widget
|
|
|
|
|
|
|
|
Use this call to set progress bar levels.
|
|
|
|
|
|
|
|
@note If you passes a value out of the specified range for @p
|
|
|
|
val, it will be interpreted as the @b closest of the @b boundary
|
|
|
|
values in the range.
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the progress value (in percentage) on a given progress bar
|
|
|
|
widget
|
|
|
|
|
|
|
|
@return The value of the progressbar
|
|
|
|
|
|
|
|
@see elm_progressbar_value_set() for more details
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
values {
|
2015-08-06 07:12:27 -07:00
|
|
|
val: double; /*@ The progress value (@b must be between $0.0 and @c
|
2014-03-26 00:36:41 -07:00
|
|
|
1.0) */
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property inverted {
|
2014-03-26 00:36:41 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Invert a given progress bar widget's displaying values order
|
|
|
|
|
|
|
|
A progress bar may be @b inverted, in which state it gets its
|
|
|
|
values inverted, with high values being on the left or top and
|
|
|
|
low values on the right or bottom, as opposed to normally have
|
|
|
|
the low values on the former and high values on the latter,
|
|
|
|
respectively, for horizontal and vertical modes.
|
|
|
|
|
|
|
|
@see elm_progressbar_inverted_get()
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get whether a given progress bar widget's displaying values are
|
|
|
|
inverted or not
|
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
@return $true, if $obj has inverted values,
|
|
|
|
$false otherwise (and on errors)
|
2014-03-26 00:36:41 -07:00
|
|
|
|
|
|
|
@see elm_progressbar_inverted_set() for more details
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
values {
|
2015-08-06 07:12:27 -07:00
|
|
|
inverted: bool; /*@ Use $true to make $obj inverted,
|
|
|
|
$false to bring it back to default, non-inverted values. */
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property horizontal {
|
2014-03-26 00:36:41 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the orientation of a given progress bar widget
|
|
|
|
|
|
|
|
Use this function to change how your progress bar is to be
|
|
|
|
disposed: vertically or horizontally.
|
|
|
|
|
|
|
|
@see elm_progressbar_horizontal_get()
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
2014-11-19 02:51:57 -08:00
|
|
|
Get the orientation of a given progress bar widget
|
2014-03-26 00:36:41 -07:00
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
@return $true, if $obj is set to be @b horizontal,
|
|
|
|
$false if it's @b vertical (and on errors)
|
2014-03-26 00:36:41 -07:00
|
|
|
|
|
|
|
@see elm_progressbar_horizontal_set() for more details
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
values {
|
2015-08-06 07:12:27 -07:00
|
|
|
horizontal: bool; /*@ Use $true to make $obj to be
|
|
|
|
@b horizontal, $false to make it @b vertical */
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property unit_format {
|
2014-03-26 00:36:41 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the format string for a given progress bar widget's units
|
|
|
|
label
|
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
If $NULL is passed on $format, it will make $obj's units
|
2014-03-26 00:36:41 -07:00
|
|
|
area to be hidden completely. If not, it'll set the <b>format
|
|
|
|
string</b> for the units label's @b text. The units label is
|
|
|
|
provided a floating point value, so the units text is up display
|
|
|
|
at most one floating point value. Note that the units label is
|
|
|
|
optional. Use a format string such as "%1.2f meters" for
|
|
|
|
example.
|
|
|
|
|
|
|
|
@note The default format string for a progress bar is an integer
|
2015-08-06 07:12:27 -07:00
|
|
|
percentage, as in $"%.0f %%".
|
2014-03-26 00:36:41 -07:00
|
|
|
|
|
|
|
@see elm_progressbar_unit_format_get()
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
2014-11-19 02:51:57 -08:00
|
|
|
Get the format string set for a given progress bar widget's
|
2014-03-26 00:36:41 -07:00
|
|
|
units label
|
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
@return The format set string for $obj's units label or
|
|
|
|
$NULL, if none was set (and on errors)
|
2014-03-26 00:36:41 -07:00
|
|
|
|
|
|
|
@see elm_progressbar_unit_format_set() for more details
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
values {
|
2015-08-06 07:12:27 -07:00
|
|
|
units: const(char)* @nullable; /*@ The format string for $obj's units label */
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property unit_format_function {
|
2014-03-26 00:36:41 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the format function pointer for the units label
|
|
|
|
|
|
|
|
Set the callback function to format the unit string.
|
|
|
|
|
|
|
|
@see elm_progressbar_unit_format_set() for more info on how this works.
|
|
|
|
|
|
|
|
@since 1.7
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
func: progressbar_func_type @nullable; /*@ The unit format function */
|
|
|
|
free_func: progressbar_freefunc_type @optional; /*@ The freeing function for the format string. */
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
part_value_set {
|
|
|
|
/*@
|
|
|
|
Set the progress value (in percentage) on a given progress bar
|
|
|
|
widget for the given part name
|
|
|
|
|
|
|
|
@since 1.8
|
|
|
|
|
|
|
|
Use this call to set progress bar status for more than one progress status .
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in part: const(char)*; /*@ The partname to which val have to set */
|
2015-08-06 07:12:27 -07:00
|
|
|
@in val: double; /*@ The progress value (@b must be between $0.0 and @c
|
2014-03-26 00:36:41 -07:00
|
|
|
1.0) */
|
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
part_value_get @const {
|
2014-03-26 00:36:41 -07:00
|
|
|
/*@
|
|
|
|
Get the progress value (in percentage) on a given progress bar
|
|
|
|
widget for a particular part
|
|
|
|
|
|
|
|
@since 1.8
|
|
|
|
|
|
|
|
@return The value of the progressbar
|
|
|
|
|
|
|
|
@see elm_progressbar_value_set() for more details
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
2014-08-11 07:46:11 -07:00
|
|
|
return: double;
|
2014-03-26 00:36:41 -07:00
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in part: const(char)*; /*@ The part name of the progress bar */
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
pulse {
|
|
|
|
/*@
|
|
|
|
Start/stop a given progress bar "pulsing" animation, if its
|
|
|
|
under that mode
|
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
@note This call won't do anything if $obj is not under "pulsing mode".
|
2014-03-26 00:36:41 -07:00
|
|
|
|
|
|
|
@see elm_progressbar_pulse_set() for more details.
|
|
|
|
|
|
|
|
@ingroup Progressbar */
|
|
|
|
|
|
|
|
params {
|
2015-08-06 07:12:27 -07:00
|
|
|
@in state: bool; /*@ $true, to @b start the pulsing animation,
|
|
|
|
$false to @b 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;
|
|
|
|
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;
|
2015-04-22 04:38:51 -07:00
|
|
|
Elm.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;
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
changed;
|
|
|
|
language,changed;
|
|
|
|
access,changed;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|