2016-05-12 03:14:03 -07: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 {
|
|
|
|
@property layout_engine {
|
|
|
|
[[Implementation of this container's layout algorithm.
|
|
|
|
|
|
|
|
The default value is the same as the widget class.
|
|
|
|
]]
|
|
|
|
set {}
|
|
|
|
get {}
|
|
|
|
values {
|
2016-08-10 07:23:04 -07:00
|
|
|
/* FIXME: engine is an Efl.Class */
|
|
|
|
engine: const(Efl.Object); [[Must be an $Efl.Pack.Layout subclass.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
data: const(void_ptr); [[Any data to pass along to $Efl.Pack.Layout.layout_do.
|
2016-05-23 07:41:28 -07:00
|
|
|
Owned by the caller. Depends on the layout engine.]]
|
2016-04-19 01:43:28 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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 {
|
2016-05-23 07:41:28 -07:00
|
|
|
pack: Efl.Gfx; [[The container to lay out.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
data: const(void_ptr) @optional; [[Extra data passed by the caller.]]
|
2016-04-19 01:43:28 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|