diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-11-04 16:24:32 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-11-05 15:47:23 -0300 |
commit | 26cfe3b8bed2ad0eb68a83d4f2125daf3042c41e (patch) | |
tree | 1f5482f9cdf3ad553c346a0a114a5dceee00a6fd | |
parent | b16de1ba11e3ea883fc9d5cefde0eefade57bb19 (diff) | |
download | efl-26cfe3b8bed2ad0eb68a83d4f2125daf3042c41e.tar.gz |
efl: Make stable single-valued getters consistent.devs/lauromoura/getter_returns
Instead of a getter with an explicit return type, change it to be a
single-valued property.
The eolian C generator takes care of making this single value the actual
return value of the C function.
This also makes these properties able to be reflected on.
The stack properties returns just a pointer and not a new ref, so no
@move needed.
Beta properties will be handled in a future commit.
Depends on D10601
-rw-r--r-- | src/lib/ecore/efl_loop_timer.eo | 4 | ||||
-rw-r--r-- | src/lib/efl/interfaces/efl_gfx_stack.eo | 8 | ||||
-rw-r--r-- | src/lib/evas/canvas/efl_canvas_object.eo | 4 |
3 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/ecore/efl_loop_timer.eo b/src/lib/ecore/efl_loop_timer.eo index d726c1ad5f..ebe5f47595 100644 --- a/src/lib/ecore/efl_loop_timer.eo +++ b/src/lib/ecore/efl_loop_timer.eo @@ -26,7 +26,9 @@ class Efl.Loop_Timer extends Efl.Loop_Consumer @property time_pending { [[Pending time regarding a timer.]] get { - return: double; [[Pending time]] + } + values { + pending: double; [[Pending time]] } } timer_reset { diff --git a/src/lib/efl/interfaces/efl_gfx_stack.eo b/src/lib/efl/interfaces/efl_gfx_stack.eo index a1fef1e8b9..20b9bb173c 100644 --- a/src/lib/efl/interfaces/efl_gfx_stack.eo +++ b/src/lib/efl/interfaces/efl_gfx_stack.eo @@ -42,7 +42,9 @@ interface Efl.Gfx.Stack See also @.layer.]] get { - return: Efl.Gfx.Stack @no_unused; [[The @Efl.Gfx.Stack object directly below $obj, if any, + } + values { + below: Efl.Gfx.Stack; [[The @Efl.Gfx.Stack object directly below $obj, if any, or $null, if none.]] } } @@ -54,7 +56,9 @@ interface Efl.Gfx.Stack See also @.layer and @.below]] get { - return: Efl.Gfx.Stack @no_unused; [[The @Efl.Gfx.Stack object directly below $obj, if any, + } + values { + above: Efl.Gfx.Stack; [[The @Efl.Gfx.Stack object directly below $obj, if any, or $null, if none.]] } } diff --git a/src/lib/evas/canvas/efl_canvas_object.eo b/src/lib/evas/canvas/efl_canvas_object.eo index 48b67e7c6d..785c4967cd 100644 --- a/src/lib/evas/canvas/efl_canvas_object.eo +++ b/src/lib/evas/canvas/efl_canvas_object.eo @@ -352,7 +352,9 @@ abstract Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.Entity, See also @.clipper. ]] get { - return: iterator<Efl.Canvas.Object> @no_unused; [[An iterator over the + } + values { + objects: iterator<Efl.Canvas.Object> @move; [[An iterator over the list of objects clipped by $obj.]] } } |