summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_container.eo
blob: 73489e845fb489f08004c09b9358f53e984c562b (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
interface Efl.Container (Efl.Gfx)
{
   [[API common to all UI container objects.]]
   eo_prefix: efl_content;
   event_prefix: efl_container;
   methods {
      @property content_part_name {
         [[The name of the part under which an object is swallowed.]]
         get {}
         keys {
            content: Efl.Gfx;
         }
         values {
            name: string;
         }
      }
      @property content {
         [[Swallowed sub-object contained in this object.]]
         set {
            return: bool;
         }
         get {}
         values {
            content: Efl.Gfx; [[the object to swallow.]]
         }
      }
      content_unset {
         [[Unswallow the object in the current container and return it.]]
         return: Efl.Gfx;
      }
      content_remove {
         [[Unswallow an object from this container.]]
         params {
            @in content: Efl.Gfx;
         }
         return: bool; [[$false if $content was not a child or can not be removed.]]
      }
      content_iterate {
         [[Begin iterating over this object's contents.]]
         return: free(own(iterator<Efl.Gfx>), eina_iterator_free) @warn_unused;
      }
      content_count {
         [[Returns the number of UI elements packed in this container.]]
         return: int;
      }
   }
   events {
      content,added: Efl.Gfx;    [[Sent after a new item was added.]]
      content,removed: Efl.Gfx;  [[Sent after an item was removed, before unref.]]
   }
}