summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_shape.c
blob: 878cc7eb3db673ca76430f418a1c44ed4b6f687f (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
34
35
36
37
38
39
#include "evas_common_private.h"
#include "evas_private.h"

#define MY_CLASS EVAS_VG_SHAPE_CLASS

typedef struct _Evas_VG_Shape_Data Evas_VG_Shape_Data;
struct _Evas_VG_Shape_Data
{
   Evas_VG_Path_Command *op;
   double *points;
   unsigned int op_count;
   unsigned int pts_counts;
};

Eina_Bool
_evas_vg_shape_path_set(Eo *obj, Evas_VG_Shape_Data *pd, Evas_VG_Path_Command *op, double *points)
{
}

Eina_Bool
_evas_vg_shape_bounds_get(Eo *obj, Evas_VG_Shape_Data *pd, Eina_Rectangle *r)
{
}

void
_evas_vg_shape_eo_base_constructor(Eo *obj, Evas_VG_Shape_Data *pd)
{
   Eo *parent;

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