Common interface for objects (containers) with multiple contents (sub-objects) which can be added and removed at runtime in a linear fashion.
This means the sub-objects are internally organized in an ordered list.
Since 1.23
⇒ Efl.Pack (interface) ⇒ Efl.Container (interface)
Append an object after theexisting
sub-object.
Eina_Bool efl_pack_after(Eo *obj, Efl_Gfx_Entity *subobj, const Efl_Gfx_Entity *existing);
Insertssubobj
BEFORE the sub-object at positionindex
.
Eina_Bool efl_pack_at(Eo *obj, Efl_Gfx_Entity *subobj, int index);
Prepend an object before theexisting
sub-object.
Eina_Bool efl_pack_before(Eo *obj, Efl_Gfx_Entity *subobj, const Efl_Gfx_Entity *existing);
Prepend an object at the beginning of this container.
Eina_Bool efl_pack_begin(Eo *obj, Efl_Gfx_Entity *subobj);
Sub-object at a givenindex
in this container.
Efl_Gfx_Entity *efl_pack_content_get(Eo *obj, int index);
Append object at the end of this container.
Eina_Bool efl_pack_end(Eo *obj, Efl_Gfx_Entity *subobj);
Get the index of a sub-object in this container.
int efl_pack_index_get(Eo *obj, const Efl_Gfx_Entity *subobj);
Pop out (remove) the sub-object at the specifiedindex
.
Efl_Gfx_Entity *efl_pack_unpack_at(Eo *obj, int index);
Efl.Container | ||
---|---|---|
content_count | Returns the number of contained sub-objects. | |
content_iterate | Begin iterating over this object's contents. | |
Efl.Pack | ||
pack | Adds a sub-object to this container. | |
pack_clear | Removes all packed sub-objects and unreferences them. | |
unpack | Removes an existing sub-object from the container without deleting it. | |
unpack_all | Removes all packed sub-objects without unreferencing them. |
Efl.Container | ||
---|---|---|
content,added | Sent after a new sub-object was added. | |
content,removed | Sent after a sub-object was removed, before unref. |