2019-01-18 05:29:31 -08:00
|
|
|
interface Efl.Pack_Layout
|
2016-04-19 01:43:28 -07:00
|
|
|
{
|
|
|
|
[[Low-level APIs for object that can lay their children out.
|
|
|
|
|
|
|
|
Used for containers (box, grid).
|
|
|
|
]]
|
|
|
|
eo_prefix: efl_pack;
|
|
|
|
methods {
|
2017-04-16 21:41:29 -07:00
|
|
|
// 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.
|
2016-04-19 01:43:28 -07:00
|
|
|
|
2017-04-16 21:41:29 -07:00
|
|
|
This @.layout_update may be called asynchronously.
|
2016-04-19 01:43:28 -07:00
|
|
|
]]
|
|
|
|
}
|
|
|
|
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.
|
|
|
|
|
2017-04-16 21:41:29 -07:00
|
|
|
This can be overriden to implement custom layout behaviours.
|
2016-04-19 01:43:28 -07:00
|
|
|
]]
|
|
|
|
}
|
|
|
|
}
|
2019-02-13 19:57:13 -08:00
|
|
|
events {
|
|
|
|
layout,updated: void; [[Sent after the layout was updated.]]
|
|
|
|
}
|
2016-04-19 01:43:28 -07:00
|
|
|
}
|