summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_pack.eo
blob: 88efd16e23093eaf68d143b91ccd016b00a69946 (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
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
interface Efl.Pack (Efl.Container)
{
   [[API common to all UI container objects.]]
   methods
   {
      pack_clear {
         [[Removes all packed contents, and unreferences them.]]
         return: bool; [[$true on success, $false otherwise]]
      }
      unpack_all {
         [[Removes all packed contents, without unreferencing them.

           Use with caution.
         ]]
         return: bool; [[$true on success, $false otherwise]]
      }
      unpack {
         [[Removes an existing item from the container, without deleting it.]]
         params {
            subobj: Efl.Gfx.Entity; [[The unpacked object.]]
         }
         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.

           When this container is deleted, it will request deletion of the
           given $subobj. Use @.unpack to remove $subobj from this container
           without deleting it.
         ]]
         params {
            subobj: Efl.Gfx.Entity; [[An object to pack.]]
         }
         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; [[Horizontal alignment]]
            align_vert:  double; [[Vertical alignment]]
         }
      }
      @property pack_padding {
         [[Padding between items contained in this object.]]
         set {}
         get {}
         values {
            pad_horiz: double; [[Horizontal padding]]
            pad_vert:  double; [[Vertical padding]]
            scalable:  bool; [[$true if scalable, $false otherwise]]
         }
      }
   }
   events {
      layout,updated; [[Sent after the layout was updated.]]
   }
}