[goffice] GOArrow: new structure.



commit ac58b8e5b5c4c32dd50551bfcefdf8c1cf87e509
Author: Morten Welinder <terra gnome org>
Date:   Wed Oct 14 10:49:29 2009 -0400

    GOArrow: new structure.

 ChangeLog               |    4 ++++
 goffice/utils/go-line.c |   13 +++++++++++++
 goffice/utils/go-line.h |   20 ++++++++++++++++++++
 3 files changed, 37 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 87fb7af..6146936 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-14  Morten Welinder  <terra gnome org>
+
+	* goffice/utils/go-line.c (go_arrow_init): New function.
+
 2009-10-12  Jean Brefort  <jean brefort normalesup org>
 
 	* configure.in: prepare for GSEAL_ENABLE.
diff --git a/goffice/utils/go-line.c b/goffice/utils/go-line.c
index 9652af5..d7424e1 100644
--- a/goffice/utils/go-line.c
+++ b/goffice/utils/go-line.c
@@ -346,3 +346,16 @@ go_line_interpolation_auto_skip	(GOLineInterpolation type)
 	}
 	return FALSE;
 }
+
+
+void
+go_arrow_init (GOArrow *res,
+	       GOArrowType typ, GOColor color,
+	       double a, double b, double c)
+{
+	res->typ = typ;
+	res->color = color;
+	res->a = a;
+	res->b = b;
+	res->c = c;
+}
diff --git a/goffice/utils/go-line.h b/goffice/utils/go-line.h
index ac3aac1..219987a 100644
--- a/goffice/utils/go-line.h
+++ b/goffice/utils/go-line.h
@@ -45,6 +45,26 @@ char const 		*go_line_interpolation_as_label		(GOLineInterpolation type);
 gboolean		 go_line_interpolation_supports_radial  (GOLineInterpolation type);
 gboolean		 go_line_interpolation_auto_skip	(GOLineInterpolation type);
 
+
+typedef enum {
+	GO_ARROW_NONE,
+	GO_ARROW_TRIANGLE
+	/* GO_ARROW_STEALTH */
+	/* GO_ARROW_DIAMOND */
+	/* GO_ARROW_OVAL */
+	/* GO_ARROW_OPEN */
+} GOArrowType;
+
+typedef struct {
+	GOArrowType typ;
+	GOColor	color;
+	double a, b, c;
+} GOArrow;
+
+void go_arrow_init (GOArrow *res,
+		    GOArrowType typ, GOColor color,
+		    double a, double b, double c);
+
 G_END_DECLS
 
 #endif /* GO_LINE_H */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]