summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_container.eo
blob: 26883129cb6a14bea58554e263865f555eac4fda (plain) (blame)
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
interface Efl.Container
{
   [[Common interface for objects (containers) that can have multiple contents (sub-objects).

     APIs in this interface deal with containers of multiple sub-objects, not
     with individual parts.

     @since 1.22
   ]]
   c_prefix: efl_content;
   event_prefix: efl_container;
   methods {
      content_iterate {
         [[Begin iterating over this object's contents.]]
         return: iterator<Efl.Gfx.Entity> @owned @warn_unused; [[Iterator on object's content.]]
      }
      content_count {
         [[Returns the number of contained sub-objects.]]
         return: int; [[Number of sub-objects.]]
      }
   }
   events {
      content,added: Efl.Gfx.Entity;    [[Sent after a new sub-object was added.]]
      content,removed: Efl.Gfx.Entity;  [[Sent after a sub-object was removed, before unref.]]
   }
}