path: root/src/lib/efl/interfaces/efl_container.eo
diff options
authorJean-Philippe Andre <>2017-11-20 15:41:07 +0900
committerJean-Philippe Andre <>2017-11-20 19:02:09 +0900
commitdda18948ae762d7a37c0035a44b69f44ec615214 (patch)
tree513ea65743b9e70ab7305431b0b7e9119704efc9 /src/lib/efl/interfaces/efl_container.eo
parent67188ba22b804cba20ed904df5026b45336e09fe (diff)
efl: Split Efl.Container and Efl.Content
When I first implemented the Efl.Container interface I made a mistake of mixing "single slot" content API's with "multiple children" content API's. This should fix that, by separating API's that are for a single part and those that deal with a list of children. Efl.Content: Single slot. This will be used a lot by efl_part() objects, and for the default content of widgets (eg. the window content). Efl.Container: Multiple children. Used by lists, boxes, layouts (edje/elm), etc... I didn't see any class that implemented both interfaces (note: Layout implements Container and Button implements Content, so technically Button implements both through inheritance). For now the eo_prefix is not changed in Efl.Container. I wonder if it should be reset (to efl_container) or not. This would only affect the C API. Ref T5328
Diffstat (limited to 'src/lib/efl/interfaces/efl_container.eo')
1 files changed, 6 insertions, 16 deletions
diff --git a/src/lib/efl/interfaces/efl_container.eo b/src/lib/efl/interfaces/efl_container.eo
index a673cceba3..1de3e864dd 100644
--- a/src/lib/efl/interfaces/efl_container.eo
+++ b/src/lib/efl/interfaces/efl_container.eo
@@ -1,23 +1,13 @@
1interface Efl.Container (Efl.Gfx) 1interface Efl.Container
2{ 2{
3 [[API common to all UI container objects.]] 3 [[Common interface for objects that have multiple contents (sub objects).
5 APIs in this interface deal with containers of multiple sub objects, not
6 with individual parts.
7 ]]
4 eo_prefix: efl_content; 8 eo_prefix: efl_content;
5 event_prefix: efl_container; 9 event_prefix: efl_container;
6 methods { 10 methods {
7 @property content {
8 [[Swallowed sub-object contained in this object.]]
9 set {
10 return: bool; [[$true on success, $false otherwise]]
11 }
12 get {}
13 values {
14 content: Efl.Gfx; [[The object to swallow.]]
15 }
16 }
17 content_unset {
18 [[Unswallow the object in the current container and return it.]]
19 return: Efl.Gfx; [[Unswallowed object]]
20 }
21 content_remove { 11 content_remove {
22 [[Unswallow an object from this container.]] 12 [[Unswallow an object from this container.]]
23 params { 13 params {