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

     Used for containers (box, grid).
   ]]
   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 Efl.Class */
            engine: const(Efl.Object); [[Must be an $Efl.Pack.Layout subclass.]]
            data: const(void_ptr);     [[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_ptr) @optional; [[Extra data passed by the caller.]]
         }
      }
   }
}