[librsvg] Make rsvg_path_builder_arc() public/internal
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Make rsvg_path_builder_arc() public/internal
- Date: Thu, 26 Feb 2015 22:04:20 +0000 (UTC)
commit 3e15bb2f249606fead047989bb6a9d9f63e22ca1
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Feb 20 14:45:50 2015 -0600
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>
rsvg-path.c | 30 +++++++++++++++---------------
rsvg-path.h | 9 +++++++++
2 files changed, 24 insertions(+), 15 deletions(-)
---
diff --git a/rsvg-path.c b/rsvg-path.c
index 2a0775a..5436d0d 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 bd1561f..11112b5 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]