2019-02-28 07:23:11 -08:00
|
|
|
class @beta Efl.Ui.Progressbar extends Efl.Ui.Layout_Base implements Efl.Ui.Range_Display, Efl.Ui.Format,
|
2019-05-24 09:30:31 -07:00
|
|
|
Efl.Ui.Layout_Orientable, Efl.Access.Value,
|
2019-01-18 05:22:23 -08:00
|
|
|
Efl.Text, Efl.Content, Efl.Text_Markup
|
2014-03-26 00:36:41 -07:00
|
|
|
{
|
2016-11-24 05:55:50 -08:00
|
|
|
[[Elementary progressbar class]]
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
2017-05-23 22:12:34 -07:00
|
|
|
@property pulse_mode {
|
2015-08-07 07:48:51 -07:00
|
|
|
[[Control whether a given progress bar widget is at "pulsing mode" or not.
|
|
|
|
|
2018-01-04 04:16:23 -08:00
|
|
|
By default progress bars display values from low to
|
|
|
|
high boundaries. There are situations however in which the
|
|
|
|
progress of a given task is unknown. In these cases,
|
|
|
|
you can set a progress bar widget to a "pulsing state" to give
|
|
|
|
the user an idea that some computation is being done
|
|
|
|
without showing the precise progress rate. In the default theme, it will
|
|
|
|
animate the bar with content, switching constantly between filling it and back
|
|
|
|
to non-filled in a loop. To start and stop this pulsing
|
2019-04-29 04:16:51 -07:00
|
|
|
animation you need to explicitly call @.pulse.set().
|
2017-05-23 22:12:34 -07:00
|
|
|
]]
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2017-05-23 22:12:34 -07:00
|
|
|
@property pulse {
|
|
|
|
set {
|
|
|
|
[[Start/stop a given progress bar "pulsing" animation, if its under that mode
|
|
|
|
|
2019-04-29 04:16:51 -07:00
|
|
|
Note: This call won't do anything if $obj is not under "pulsing mode". See @.pulse_mode.
|
2017-05-23 22:12:34 -07:00
|
|
|
]]
|
|
|
|
}
|
|
|
|
get {
|
2019-04-29 04:16:51 -07:00
|
|
|
[[ Get the pulsing state on a given progressbar widget. See @.pulse_mode.
|
2017-05-23 22:12:34 -07:00
|
|
|
]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
state: bool; [[$true, to start the pulsing animation, $false to stop it]]
|
|
|
|
}
|
|
|
|
}
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.theme_apply;
|
2019-01-21 07:22:32 -08:00
|
|
|
Efl.Ui.Range_Display.range_value { get; set; }
|
|
|
|
Efl.Ui.Range_Display.range_min_max {get; set; }
|
2019-05-24 09:30:31 -07:00
|
|
|
Efl.Ui.Layout_Orientable.orientation { get; set; }
|
2017-10-25 10:10:29 -07:00
|
|
|
Efl.Ui.Format.format_cb { set; }
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2017-11-15 19:05:21 -08:00
|
|
|
Efl.Access.Value.value_and_text { get; }
|
2018-01-16 03:09:54 -08:00
|
|
|
Efl.Text.text { get; set; }
|
2018-04-06 04:30:40 -07:00
|
|
|
Efl.Text_Markup.markup { get; set; }
|
2018-01-16 03:09:54 -08:00
|
|
|
Efl.Content.content { get; set; }
|
|
|
|
Efl.Content.content_unset;
|
2018-12-21 14:46:10 -08:00
|
|
|
Efl.Ui.L10n.l10n_text { get; set; }
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
changed: void; [[Called when progressbar changed]]
|
2014-03-26 00:36:41 -07:00
|
|
|
}
|
|
|
|
}
|