summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_container.c
blob: fc008bb552c1ce5e4eca79f6102a894fcf81f354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "evas_common_private.h"
#include "evas_private.h"

#include "evas_vg_private.h"

#define MY_CLASS EVAS_VG_CONTAINER_CLASS

void
_evas_vg_container_eo_base_constructor(Eo *obj, Evas_VG_Container_Data *pd)
{
   Eo *parent;

   eo_do_super(obj, MY_CLASS, eo_constructor());

   eo_do(obj, parent = eo_parent_get());
   if (!eo_isa(obj, EVAS_VG_CONTAINER_CLASS) &&
       !eo_isa(obj, EVAS_VG_CLASS))
     {
        ERR("Parent must be either an Evas_Object_VG or an Evas_VG_Container.");
        eo_error_set(obj);
     }
}

Eina_Bool
_evas_vg_container_evas_vg_node_bound_get(Eo *obj,
                                          Evas_VG_Container_Data *pd,
                                          Eina_Rectangle *r)
{
   // FIXME: iterate children and get their boundary to
}


#include "evas_vg_container.eo.c"