elm: add Efl.Access.Value interface to progressbar

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5479
This commit is contained in:
Lukasz Stanislawski 2017-11-16 12:05:21 +09:00 committed by Jean-Philippe Andre
parent e9ebe5c676
commit 20c9dd1e84
2 changed files with 10 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#define EFL_ACCESS_PROTECTED
#define ELM_LAYOUT_PROTECTED
#define EFL_ACCESS_VALUE_PROTECTED
#include <Elementary.h>
@ -552,6 +553,12 @@ _efl_ui_progressbar_part_efl_ui_range_range_value_get(Eo *obj, void *_pd EINA_UN
return _progressbar_part_value_get(sd, pd->part);
}
EOLIAN static void
_efl_ui_progressbar_efl_access_value_value_and_text_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *_pd, double *value, const char **text EINA_UNUSED)
{
if (value) *value = _pd->val;
}
#include "efl_ui_progressbar_part.eo.c"
/* Efl.Part end */

View File

@ -1,4 +1,5 @@
class Efl.Ui.Progressbar (Efl.Ui.Layout, Efl.Ui.Range, Efl.Ui.Format, Efl.Ui.Direction)
class Efl.Ui.Progressbar (Efl.Ui.Layout, Efl.Ui.Range, Efl.Ui.Format,
Efl.Ui.Direction, Efl.Access.Value)
{
[[Elementary progressbar class]]
methods {
@ -56,6 +57,7 @@ class Efl.Ui.Progressbar (Efl.Ui.Layout, Efl.Ui.Range, Efl.Ui.Format, Efl.Ui.Dir
Efl.Ui.Direction.direction { get; set; }
Efl.Ui.Format.format_cb { set; }
Efl.Part.part;
Efl.Access.Value.value_and_text { get; }
}
events {
changed; [[Called when progressbar changed]]