summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_pack_linear.eo
blob: 4a9f696a0f0dd855efcf7c7c9209a3c691e6e5ff (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import efl_orientation;

/* FIXME: Efl.Pack.Linear */
interface Efl.Pack_Linear (Efl.Pack)
{
   [[API for containers ]]
   legacy_prefix: null;
   eo_prefix: efl_pack;
   methods {
      pack_begin {
         [[Prepend an object at the beginning of this container.

           This is the same as @.pack_insert($subobj, 0).
         ]]
         params {
            @in subobj: own(Efl.Gfx.Base *);
         }
      }
      pack_end {
         [[Append object at the end of this container.

           This is the same as @.pack_insert($subobj, -1).
         ]]
         params {
            @in subobj: own(Efl.Gfx.Base *);
         }
      }
      pack_before {
         [[Prepend item before other sub object.]]
         return: bool @warn_unused; [[returns $false if $existing could not be found]]
         params {
            @in subobj: own(Efl.Gfx.Base *);
            @in existing: const(Efl.Gfx.Base)*;
         }
      }
      pack_after {
         [[Append item after other sub object.]]
         return: bool @warn_unused; [[returns $false if $existing could not be found]]
         params {
            @in subobj: own(Efl.Gfx.Base *);
            @in existing: const(Efl.Gfx.Base)*;
         }
      }
      pack_insert {
          [[Inserts $subobj at the specified $index. If $index is not valid, appends.]]
          params {
             @in subobj: own(Efl.Gfx.Base *);
             @in index: int;
          }
      }
      @property content_at {
         [[Content at a given index in this container.

           Index -1 refers to the last item.
         ]]
         /* set {} - can be defined */
         get {}
         keys {
            index: int;
         }
         values {
            subobj: Efl.Gfx.Base *;
         }
      }
      content_at_remove {
         [[Pop out item at specified $index.

           Equivalent to unpack(content_at($index)).
         ]]
         params {
            index: int;
         }
         return: Efl.Gfx.Base*; [[The child item if it could be removed.]]
      }
      @property content_index {
         [[Index of the child in this container, may be modified to move the $subobj.]]
         set {

            return: bool; [[Returns $false if $subobj is not a child.
                            Negative values can be used to refer to the end.]]
         }
         get {}
         keys {
            subobj: Efl.Gfx.Base *;
         }
         values {
            index: int;
         }
      }
      @property direction {
         [[Primary up/left/right/down orientation. Default is right.]]
         set {}
         get {}
         values {
            orient: Efl.Orient;
         }
      }
   }
}