2017-05-29 04:28:08 -07:00
|
|
|
#include "edje_private.h"
|
|
|
|
#include "edje_part_helper.h"
|
|
|
|
|
2017-09-12 21:58:38 -07:00
|
|
|
#define MY_CLASS EFL_CANVAS_LAYOUT_PART_EXTERNAL_CLASS
|
2017-05-29 04:28:08 -07:00
|
|
|
|
2017-05-29 06:47:55 -07:00
|
|
|
static void _external_compose(Eo *obj, Edje *ed, const char *part);
|
|
|
|
|
2017-06-21 17:05:41 -07:00
|
|
|
PROXY_IMPLEMENTATION(external, MY_CLASS, EINA_TRUE, _external_compose(proxy, ed, rp->part->name))
|
2017-05-29 04:28:08 -07:00
|
|
|
#undef PROXY_IMPLEMENTATION
|
|
|
|
|
2017-05-29 06:47:55 -07:00
|
|
|
static void
|
|
|
|
_external_compose(Eo *obj, Edje *ed, const char *part)
|
|
|
|
{
|
|
|
|
Eo *ext_obj = _edje_object_part_external_object_get(ed, part);
|
|
|
|
efl_composite_attach(obj, ext_obj);
|
|
|
|
}
|
|
|
|
|
2018-04-05 01:47:26 -07:00
|
|
|
EOLIAN static Efl_Gfx_Entity *
|
2018-04-17 11:09:44 -07:00
|
|
|
_efl_canvas_layout_part_external_efl_content_content_get(const Eo *obj, void *_pd EINA_UNUSED)
|
2017-05-29 07:08:54 -07:00
|
|
|
{
|
|
|
|
PROXY_DATA_GET(obj, pd);
|
2017-10-13 02:16:41 -07:00
|
|
|
return _edje_object_part_external_object_get(pd->ed, pd->part);
|
2017-05-29 07:08:54 -07:00
|
|
|
}
|
|
|
|
|
2019-02-27 11:57:03 -08:00
|
|
|
EOLIAN static Eina_Bool
|
|
|
|
_efl_canvas_layout_part_external_efl_content_content_set(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Efl_Gfx_Entity *content EINA_UNUSED)
|
|
|
|
{
|
|
|
|
ERR("Setting of content is not permitted on this part");
|
|
|
|
return EINA_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
EOLIAN static Efl_Gfx_Entity*
|
|
|
|
_efl_canvas_layout_part_external_efl_content_content_unset(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED)
|
|
|
|
{
|
|
|
|
ERR("Unsetting of content is not permitted on this part");
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2017-09-12 21:58:38 -07:00
|
|
|
#include "efl_canvas_layout_part_external.eo.c"
|