blob: 1de3e864ddb84a5cf4ce3fe15c4753f13b69d58c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
interface Efl.Container
{
[[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.
]]
eo_prefix: efl_content;
event_prefix: efl_container;
methods {
content_remove {
[[Unswallow an object from this container.]]
params {
@in content: Efl.Gfx; [[To be removed content]]
}
return: bool; [[$false if $content was not a child or can not be removed.]]
}
content_iterate {
[[Begin iterating over this object's contents.]]
return: iterator<Efl.Gfx> @owned @warn_unused; [[Iterator to object content]]
}
content_count {
[[Returns the number of UI elements packed in this container.]]
return: int; [[Number of packed UI elements]]
}
}
events {
content,added: Efl.Gfx; [[Sent after a new item was added.]]
content,removed: Efl.Gfx; [[Sent after an item was removed, before unref.]]
}
}
|