From 48c1c4850a486b1d416665d7e7536842d4d68979 Mon Sep 17 00:00:00 2001 From: Subhransu Mohanty Date: Wed, 2 Nov 2016 19:22:55 +0900 Subject: static_lib: added vg_common static lib Features: Copied vg eet descriptor from edje_data Copied convert func from Svg_Node to Efl_VG from edje added convert function from Efl_VG to Svg_Node --- src/lib/evas/include/evas_private.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/lib/evas/include/evas_private.h') diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h index 8a16d63e68..2cedf01807 100644 --- a/src/lib/evas/include/evas_private.h +++ b/src/lib/evas/include/evas_private.h @@ -142,6 +142,8 @@ typedef struct _Evas_Canvas3D_Mesh_Eet Evas_Canvas3D_Mesh_Eet; typedef struct _Evas_Canvas3D_Header_Eet Evas_Canvas3D_Header_Eet; typedef struct _Evas_Canvas3D_File_Eet Evas_Canvas3D_File_Eet; +typedef struct _Vg_File_Data Vg_File_Data; + struct _Evas_Canvas3D_Vec2_Eet { float x; @@ -1629,14 +1631,21 @@ struct _Evas_Image_Save_Func int (*image_save) (RGBA_Image *im, const char *file, const char *key, int quality, int compress, const char *encoding); }; +struct _Vg_File_Data +{ + Eina_Rectangle view_box; + Efl_VG *root; + Eina_Bool preserve_aspect; +}; + struct _Evas_Vg_Load_Func { - void *(*file_data) (Eina_File *f, Eina_Stringshare *key, int *error); + Vg_File_Data *(*file_data) (const char *file, const char *key, int *error); }; struct _Evas_Vg_Save_Func { - int (*vg_save) (void *vg, const char *file, const char *key, int compress); + int (*vg_save) (Vg_File_Data *vg, const char *file, const char *key, int compress); }; #ifdef __cplusplus -- cgit v1.2.1