From af39d43388c20feed9c7cb2a5df336dbdea63a52 Mon Sep 17 00:00:00 2001 From: Michal Szczecinski Date: Thu, 6 May 2021 12:17:49 +0200 Subject: [PATCH] evas vg: Added fill rule getter. This API is needed to coverage all functionality needed by vg_common_svg module. Change-Id: I3fed6c14bb31f4b3265e5348aadce4825eb01049 --- src/lib/evas/Evas_Legacy.h | 10 ++++++++++ src/lib/evas/canvas/efl_canvas_vg_shape.c | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h index 36e8dfc..3efe7fb 100755 --- a/src/lib/evas/Evas_Legacy.h +++ b/src/lib/evas/Evas_Legacy.h @@ -4237,6 +4237,16 @@ EAPI void evas_vg_shape_stroke_join_set(Evas_Vg_Shape *obj, Evas_Vg_Join j); EAPI void evas_vg_shape_fill_rule_set(Evas_Vg_Shape *obj, Evas_Vg_Fill_Rule r); /** + * @brief Gets the fill rule. + * + * @param[in] obj object. + * @param[out] r The fill rule to use. + * + * @since 1.25.1 + */ +EAPI void evas_vg_shape_fill_rule_get(Evas_Vg_Shape *obj, Evas_Vg_Fill_Rule *r); + +/** * @brief Set the list of commands and points to be used to create the * content of shape. * diff --git a/src/lib/evas/canvas/efl_canvas_vg_shape.c b/src/lib/evas/canvas/efl_canvas_vg_shape.c index a34277f..6c7870a 100644 --- a/src/lib/evas/canvas/efl_canvas_vg_shape.c +++ b/src/lib/evas/canvas/efl_canvas_vg_shape.c @@ -1127,6 +1127,12 @@ evas_vg_shape_fill_rule_set(Evas_Vg_Shape *obj, Evas_Vg_Fill_Rule r) } EAPI void +evas_vg_shape_fill_rule_get(Evas_Vg_Shape *obj, Evas_Vg_Fill_Rule *r) +{ + tvg_shape_get_fill_rule(_get_tvg_shape(obj), r); +} + +EAPI void evas_vg_shape_path_set(Evas_Vg_Shape *obj, const Evas_Vg_Path_Command *op, const double *points) { if (!op || !points) return; -- 2.7.4