summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-04 16:24:32 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-05 15:47:23 -0300
commit26cfe3b8bed2ad0eb68a83d4f2125daf3042c41e (patch)
tree1f5482f9cdf3ad553c346a0a114a5dceee00a6fd
parentb16de1ba11e3ea883fc9d5cefde0eefade57bb19 (diff)
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.eo4
-rw-r--r--src/lib/efl/interfaces/efl_gfx_stack.eo8
-rw-r--r--src/lib/evas/canvas/efl_canvas_object.eo4
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 d726c1a..ebe5f47 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
26 @property time_pending { 26 @property time_pending {
27 [[Pending time regarding a timer.]] 27 [[Pending time regarding a timer.]]
28 get { 28 get {
29 return: double; [[Pending time]] 29 }
30 values {
31 pending: double; [[Pending time]]
30 } 32 }
31 } 33 }
32 timer_reset { 34 timer_reset {
diff --git a/src/lib/efl/interfaces/efl_gfx_stack.eo b/src/lib/efl/interfaces/efl_gfx_stack.eo
index a1fef1e..20b9bb1 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
42 42
43 See also @.layer.]] 43 See also @.layer.]]
44 get { 44 get {
45 return: Efl.Gfx.Stack @no_unused; [[The @Efl.Gfx.Stack object directly below $obj, if any, 45 }
46 values {
47 below: Efl.Gfx.Stack; [[The @Efl.Gfx.Stack object directly below $obj, if any,
46 or $null, if none.]] 48 or $null, if none.]]
47 } 49 }
48 } 50 }
@@ -54,7 +56,9 @@ interface Efl.Gfx.Stack
54 56
55 See also @.layer and @.below]] 57 See also @.layer and @.below]]
56 get { 58 get {
57 return: Efl.Gfx.Stack @no_unused; [[The @Efl.Gfx.Stack object directly below $obj, if any, 59 }
60 values {
61 above: Efl.Gfx.Stack; [[The @Efl.Gfx.Stack object directly below $obj, if any,
58 or $null, if none.]] 62 or $null, if none.]]
59 } 63 }
60 } 64 }
diff --git a/src/lib/evas/canvas/efl_canvas_object.eo b/src/lib/evas/canvas/efl_canvas_object.eo
index 48b67e7..785c496 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,
352 See also @.clipper. 352 See also @.clipper.
353 ]] 353 ]]
354 get { 354 get {
355 return: iterator<Efl.Canvas.Object> @no_unused; [[An iterator over the 355 }
356 values {
357 objects: iterator<Efl.Canvas.Object> @move; [[An iterator over the
356 list of objects clipped by $obj.]] 358 list of objects clipped by $obj.]]
357 } 359 }
358 } 360 }