2017-11-19 22:41:07 -08:00
|
|
|
interface Efl.Container
|
2016-04-19 22:55:26 -07:00
|
|
|
{
|
2017-11-19 22:41:07 -08:00
|
|
|
[[Common interface for objects that have multiple contents (sub objects).
|
|
|
|
|
|
|
|
APIs in this interface deal with containers of multiple sub objects, not
|
|
|
|
with individual parts.
|
|
|
|
]]
|
2016-04-19 22:55:26 -07:00
|
|
|
eo_prefix: efl_content;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: efl_container;
|
2016-04-19 22:55:26 -07:00
|
|
|
methods {
|
2016-04-20 20:04:13 -07:00
|
|
|
content_remove {
|
|
|
|
[[Unswallow an object from this container.]]
|
|
|
|
params {
|
2018-04-05 01:47:26 -07:00
|
|
|
@in content: Efl.Gfx.Entity; [[To be removed content]]
|
2016-04-20 20:04:13 -07:00
|
|
|
}
|
|
|
|
return: bool; [[$false if $content was not a child or can not be removed.]]
|
|
|
|
}
|
2016-04-19 22:55:26 -07:00
|
|
|
content_iterate {
|
|
|
|
[[Begin iterating over this object's contents.]]
|
2018-04-05 01:47:26 -07:00
|
|
|
return: iterator<Efl.Gfx.Entity> @owned @warn_unused; [[Iterator to object content]]
|
2016-04-19 22:55:26 -07:00
|
|
|
}
|
|
|
|
content_count {
|
|
|
|
[[Returns the number of UI elements packed in this container.]]
|
2016-11-01 06:18:26 -07:00
|
|
|
return: int; [[Number of packed UI elements]]
|
2016-04-19 22:55:26 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
events {
|
2018-04-05 01:47:26 -07:00
|
|
|
content,added: Efl.Gfx.Entity; [[Sent after a new item was added.]]
|
|
|
|
content,removed: Efl.Gfx.Entity; [[Sent after an item was removed, before unref.]]
|
2016-04-19 22:55:26 -07:00
|
|
|
}
|
|
|
|
}
|