summaryrefslogblamecommitdiff
path: root/src/lib/edje/edje_part_external.c
blob: bbc82791b7db5fa7d2d5db5c4f8a69d1394efd45 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                             
                                                      
 

                                                                   
                                                                                                 

                           






                                                                 
                              
                                                                                              

                           
                                                                  

 
                                               
#include "edje_private.h"
#include "edje_part_helper.h"

#define MY_CLASS EFL_CANVAS_LAYOUT_PART_EXTERNAL_CLASS

static void _external_compose(Eo *obj, Edje *ed, const char *part);

PROXY_IMPLEMENTATION(external, MY_CLASS, EINA_TRUE, _external_compose(proxy, ed, rp->part->name))
#undef PROXY_IMPLEMENTATION

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);
}

EOLIAN static Efl_Gfx_Entity *
_efl_canvas_layout_part_external_efl_content_content_get(const Eo *obj, void *_pd EINA_UNUSED)
{
   PROXY_DATA_GET(obj, pd);
   return _edje_object_part_external_object_get(pd->ed, pd->part);
}

#include "efl_canvas_layout_part_external.eo.c"