summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2015-02-20 14:45:50 -0600
committerFederico Mena Quintero <federico@gnome.org>2015-02-20 14:45:50 -0600
commit3e15bb2f249606fead047989bb6a9d9f63e22ca1 (patch)
tree3d5011dda9adb90958a9d04bf45e6762076e8c73
parent529bc934ce00ea4a21539fc080f45d3be0ee49fb (diff)
downloadlibrsvg-3e15bb2f249606fead047989bb6a9d9f63e22ca1.tar.gz
Make rsvg_path_builder_arc() public/internal
This is just a rename of rsvg_path_arc(). Signed-off-by: Federico Mena Quintero <federico@gnome.org>
-rw-r--r--rsvg-path.c30
-rw-r--r--rsvg-path.h9
2 files changed, 24 insertions, 15 deletions
diff --git a/rsvg-path.c b/rsvg-path.c
index 2a0775a8..5436d0d2 100644
--- a/rsvg-path.c
+++ b/rsvg-path.c
@@ -201,7 +201,7 @@ rsvg_path_arc_segment (RsvgPathBuilder *builder,
}
/**
- * rsvg_path_arc:
+ * rsvg_path_builder_arc:
* @builder: Path builder.
* @x1: Starting x coordinate
* @y1: Starting y coordinate
@@ -215,13 +215,13 @@ rsvg_path_arc_segment (RsvgPathBuilder *builder,
*
* Add an RSVG arc to the path context.
**/
-static void
-rsvg_path_arc (RsvgPathBuilder *builder,
- double x1, double y1,
- double rx, double ry,
- double x_axis_rotation,
- gboolean large_arc_flag, gboolean sweep_flag,
- double x2, double y2)
+void
+rsvg_path_builder_arc (RsvgPathBuilder *builder,
+ double x1, double y1,
+ double rx, double ry,
+ double x_axis_rotation,
+ gboolean large_arc_flag, gboolean sweep_flag,
+ double x2, double y2)
{
/* See Appendix F.6 Elliptical arc implementation notes
@@ -521,13 +521,13 @@ rsvg_parse_path_do_cmd (RSVGParsePathCtx * ctx, gboolean final)
x2 = ctx->params[5];
y2 = ctx->params[6];
- rsvg_path_arc (&ctx->builder,
- x1, y1,
- rx, ry,
- x_axis_rotation,
- large_arc_flag,
- sweep_flag,
- x2, y2);
+ rsvg_path_builder_arc (&ctx->builder,
+ x1, y1,
+ rx, ry,
+ x_axis_rotation,
+ large_arc_flag,
+ sweep_flag,
+ x2, y2);
ctx->cp.point.x = x2;
ctx->cp.point.y = y2;
diff --git a/rsvg-path.h b/rsvg-path.h
index bd1561fa..11112b58 100644
--- a/rsvg-path.h
+++ b/rsvg-path.h
@@ -55,6 +55,15 @@ void rsvg_path_builder_curve_to (RsvgPathBuilder *builder,
double y2,
double x3,
double y3);
+
+G_GNUC_INTERNAL
+void rsvg_path_builder_arc (RsvgPathBuilder *builder,
+ double x1, double y1,
+ double rx, double ry,
+ double x_axis_rotation,
+ gboolean large_arc_flag, gboolean sweep_flag,
+ double x2, double y2);
+
G_GNUC_INTERNAL
void rsvg_path_builder_close_path (RsvgPathBuilder *builder);
G_GNUC_INTERNAL