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

     Used for containers (box, grid).
   ]]
   eo_prefix: efl_pack;
   methods {
      // Note: Do we need a layout_force or a sync flag in layout_request?
      layout_request {
         [[Requests EFL to call the @.layout_update method on this object.

           This @.layout_update may be called asynchronously.
         ]]
      }
      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-laid out on the canvas.

           This can be overriden to implement custom layout behaviors.
         ]]
      }
   }
   events {
      layout,updated: void; [[Sent after the layout was updated.]]
   }
}