Get children slice OR full range.

Efl.Model.children_slice_get behaves in two different ways, it may provide the slice if count is non-zero OR full range otherwise.

Since 'slice' is a range, for example if we have 20 children a slice could be the range from 3(start) with 4(count), see:

child 0 [no] child 1 [no] child 2 [no] child 3 [yes] child 4 [yes] child 5 [yes] child 6 [yes] child 7 [no]

Optionally the user can call Efl.Model.children_count.get to know the number of children so a valid range can be known in advance.

See Efl.Model.children_count.get

The returned children will live only as long as the future itself. Once the future is done, if you want to keep the object alive, you need to take a reference for yourself.

Since 1.23


children_slice_get @pure_virtual {
    params {
        @in start: uint;
        @in count: uint;
    return: future<array<Efl.Object>>;

C signature

Eina_Future *efl_model_children_slice_get(Eo *obj, unsigned int start, unsigned int count);


  • start (in) - Range begin - start from here.
  • count (in) - Range size. If count is 0, start is ignored.

Implemented by