summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_pack_layout.eo
blob: 8bf3aeeaa72a92aa1b5b9d6759bef2d123ee0e55 (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
interface Efl.Pack.Layout ()
{
   [[Low-level APIs for object that can lay their children out.

     Used for containers (box, grid).
   ]]
   legacy_prefix: null;
   eo_prefix: efl_pack;
   methods {
      @property layout_engine {
         [[Implementation of this container's layout algorithm.

           The default value is the same as the widget class.
         ]]
         set {}
         get {}
         values {
            /* FIXME: engine is an Eo.Class */
            engine: const(Eo.Base)*; [[Must be an $Efl.Pack.Layout subclass.]]
            data: const(void)*;      [[Any data to pass along to $Efl.Pack.Layout.layout_do.
                                       Owned by the caller. Depends on the layout engine.]]
         }
      }
      layout_request {
         [[Requests EFL to call the @.layout_update method on this object.]]
      }
      layout_update @protected {
         [[Implementation of this container's layout algorithm.

           EFL will call this function whenever the contents of this
           container need to be re-layed out on the canvas.

           This can be overriden to implement highly specific layout
           behaviours.
         ]]
      }
      layout_do @class @protected {
         [[Lay out (resize and move) children objects of $pack.]]
         params {
            pack: Efl.Gfx*; [[The container to lay out.]]
            data: const(void)* @optional; [[Extra data passed by the caller.]]
         }
      }
   }
}