summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_pack.eo
blob: 26d8ca1f452f363044400a03c088674b25b4e4be (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
58
59
60
61
62
63
64
import eina_types;

interface Efl.Pack (Efl.Container)
{
   [[API common to all UI container objects.]]
   methods
   {
      pack_clear {
         [[Removes all packed contents, and unreferences them.]]
         return: bool;
      }
      unpack_all {
         [[Removes all packed contents, without unreferencing them.

           Use with caution.
         ]]
         return: bool;
      }
      unpack {
         [[Removes an existing item from the container, without deleting it.]]
         params {
            subobj: own(Efl.Gfx);
         }
         return: bool; [[$false if $subobj wasn't a child or can't be removed]]
      }
      pack {
         [[Adds an item to this container.

           Depending on the container this will either fill in the default
           spot, replacing any already existing element or append to the end
           of the container if there is no default part.

           The container takes ownership of this object. This means if packing
           failed, the object will be unrefed.
         ]]
         params {
            subobj: own(Efl.Gfx);
         }
         return: bool; [[$false if $subobj could not be packed.]]
      }
      @property pack_align {
         [[Alignment of the container within its bounds]]
         set {}
         get {}
         values {
            align_horiz: double;
            align_vert:  double;
         }
      }
      @property pack_padding {
         [[Padding between items contained in this object.]]
         set {}
         get {}
         values {
            pad_horiz: double;
            pad_vert:  double;
            scalable:  bool;
         }
      }
   }
   events {
      layout,updated; [[Sent after the layout was updated.]]
   }
}