evas vg: Added fill rule getter. 18/257918/2
authorMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Thu, 6 May 2021 10:17:49 +0000 (12:17 +0200)
committerHermet Park <chuneon.park@samsung.com>
Thu, 6 May 2021 11:18:51 +0000 (11:18 +0000)
This API is needed to coverage all functionality needed by vg_common_svg
module.

Change-Id: I3fed6c14bb31f4b3265e5348aadce4825eb01049

src/lib/evas/Evas_Legacy.h
src/lib/evas/canvas/efl_canvas_vg_shape.c

index 36e8dfc..3efe7fb 100755 (executable)
@@ -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.
  *
index a34277f..6c7870a 100644 (file)
@@ -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;