2016-11-03 08:45:42 -07:00
|
|
|
#include "edje_private.h"
|
|
|
|
#include "edje_part_helper.h"
|
|
|
|
#include "efl_canvas_layout_internal_swallow.eo.h"
|
|
|
|
#define MY_CLASS EFL_CANVAS_LAYOUT_INTERNAL_SWALLOW_CLASS
|
|
|
|
|
2017-06-21 17:05:41 -07:00
|
|
|
PROXY_IMPLEMENTATION(swallow, MY_CLASS, EINA_FALSE)
|
2016-11-03 08:45:42 -07:00
|
|
|
#undef PROXY_IMPLEMENTATION
|
|
|
|
|
|
|
|
/* Swallow parts */
|
|
|
|
EOLIAN static Efl_Gfx *
|
2017-05-25 18:52:57 -07:00
|
|
|
_efl_canvas_layout_internal_swallow_efl_container_content_get(Eo *obj, void *_pd EINA_UNUSED)
|
2016-11-03 08:45:42 -07:00
|
|
|
{
|
2017-05-25 18:52:57 -07:00
|
|
|
PROXY_DATA_GET(obj, pd);
|
2016-11-03 08:45:42 -07:00
|
|
|
RETURN_VAL(_edje_efl_container_content_get(pd->ed, pd->part));
|
|
|
|
}
|
|
|
|
|
|
|
|
EOLIAN static Eina_Bool
|
2017-05-25 18:52:57 -07:00
|
|
|
_efl_canvas_layout_internal_swallow_efl_container_content_set(Eo *obj, void *_pd EINA_UNUSED, Efl_Gfx *content)
|
2016-11-03 08:45:42 -07:00
|
|
|
{
|
2017-05-25 18:52:57 -07:00
|
|
|
PROXY_DATA_GET(obj, pd);
|
2016-11-03 08:45:42 -07:00
|
|
|
RETURN_VAL(_edje_efl_container_content_set(pd->ed, pd->part, content));
|
|
|
|
}
|
|
|
|
|
|
|
|
EOLIAN static Efl_Gfx *
|
2017-05-25 18:52:57 -07:00
|
|
|
_efl_canvas_layout_internal_swallow_efl_container_content_unset(Eo *obj, void *_pd EINA_UNUSED)
|
2016-11-03 08:45:42 -07:00
|
|
|
{
|
2017-05-25 18:52:57 -07:00
|
|
|
PROXY_DATA_GET(obj, pd);
|
2016-11-03 08:45:42 -07:00
|
|
|
Efl_Gfx *content = _edje_efl_container_content_get(pd->ed, pd->part);
|
|
|
|
if (!content) RETURN_VAL(NULL);
|
|
|
|
PROXY_CALL(efl_content_remove(obj, content));
|
|
|
|
RETURN_VAL(content);
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "efl_canvas_layout_internal_swallow.eo.c"
|