summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_container.eo
blob: d650ad2854a53079dd2cb89980bb31b1ef8710ff (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
52
53
54
55
56
57
interface Efl.Container (Efl.Gfx)
{
   [[API common to all UI container objects.]]
   eo_prefix: efl_content;
   event_prefix: efl_container;
   methods {
      @property content {
         [[Swallowed sub-object contained in this object.]]
         set {
            return: bool;
         }
         get {}
         keys {
            part: const(char)*; [[the part in which to swallow the object]]
         }
         values {
            content: Efl.Gfx*; [[the object to swallow.]]
         }
      }
      @property content_part_name {
         [[The name of the part under which an object is swallowed.]]
         get {}
         keys {
            content: Efl.Gfx*;
         }
         values {
            name: const(char)*;
         }
      }
      content_unset {
         [[Unswallow the object in the given part of the container and return it.]]
         params {
            @in name: const(char)* @nullable;
         }
         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.]]
   }
}