summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_container.eo
blob: 42e4d6a2f14d1f87b4e423c6b1a0f6ae5d458abe (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
interface @beta 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_iterate {
         [[Begin iterating over this object's contents.]]
         return: iterator<Efl.Gfx.Entity> @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.Entity;    [[Sent after a new item was added.]]
      content,removed: Efl.Gfx.Entity;  [[Sent after an item was removed, before unref.]]
   }
}