summaryrefslogtreecommitdiff
path: root/src/lib/efl
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2020-01-24 11:01:03 -0800
committerCedric BAIL <cedric.bail@free.fr>2020-01-31 10:11:39 -0800
commit2e41a13166789670602bc005a7e6a9f0815ecd77 (patch)
treed8fb7f39ce1eb441830e80a80bf704c24af00f54 /src/lib/efl
parenteaeb96cc3d11b6f107aef822ef6f0fbae5ceaa03 (diff)
efl: add Efl.Model.Children_Index_Get.
This allow for fetching random children in a model. A simple fallback is provided by Efl.Loop_Model that will allow all model to provide this feature in a non optimized way. Later on this can be speeded up. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11185
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/interfaces/efl_model.eo12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_model.eo b/src/lib/efl/interfaces/efl_model.eo
index ee04879f68..e669d50ade 100644
--- a/src/lib/efl/interfaces/efl_model.eo
+++ b/src/lib/efl/interfaces/efl_model.eo
@@ -141,6 +141,18 @@ interface Efl.Model
141 /* XXX: is this right? */ 141 /* XXX: is this right? */
142 return: future<array<Efl.Object>>; [[Array of children]] 142 return: future<array<Efl.Object>>; [[Array of children]]
143 } 143 }
144 children_index_get {
145 [[Get children as specified by iterator.
146
147 Provided index have to be between 0 and @.children_count.get.
148
149 This function might rely on @.children_slice_get as a fallback.
150 ]]
151 params {
152 @in indices: iterator<uint>; [[Indices of the requested children.]]
153 }
154 return: future<array<Efl.Object>>; [[Array of children]]
155 }
144 @property children_count { 156 @property children_count {
145 [[Number of children. 157 [[Number of children.
146 158