goocanvas r27 - in trunk: . docs src



Author: damon
Date: Tue Nov  4 11:54:24 2008
New Revision: 27
URL: http://svn.gnome.org/viewvc/goocanvas?rev=27&view=rev

Log:

2008-11-04  Damon Chaplin  <damon gnome org>

	    * src/goocanvasutils.h: added typedefs for wrappers of cairo types
	    (but ifdef'd out so not usable), so we can add docs for them.
	    And added the docs, pointing to the cairo docs.

	    * src/goocanvasutils.c (goo_canvas_line_dash_get_type): changed the
	    registered type	   name from GooCairoLineDash to GooCanvasLineDash so the
	    docs work. The struct was already called GooCanvasLineDash.



Modified:
   trunk/ChangeLog
   trunk/TODO
   trunk/docs/goocanvas-sections.txt
   trunk/src/goocanvasutils.c
   trunk/src/goocanvasutils.h

Modified: trunk/TODO
==============================================================================
--- trunk/TODO	(original)
+++ trunk/TODO	Tue Nov  4 11:54:24 2008
@@ -14,11 +14,6 @@
    errors. Maybe we should extend any bounds returned from cairo slightly to
    cover the maximum possible errors.
 
- o button press events are generating leave-notify and enter-notify signals.
-   Seems to be a GTK+/X problem.
-
- o The GooCairo* types are used for some properties but aren't documented.
-   Maybe we could point to the cairo docs.
 
 Features definitely needed:
 
@@ -49,7 +44,6 @@
 
  o Caching of rendered items to improve performance. Items would have a cache
    option with choices like Never, Always and WhenVisible.
- o Sticky items that don't move at all as the canvas is scrolled & zoomed.
  o Filters like in SVG, to add graphical effects.
  o Support using the same item in different places, like SVG 'use'.
  o Support using system color names, like SVG, e.g. "ActiveBorder".

Modified: trunk/docs/goocanvas-sections.txt
==============================================================================
--- trunk/docs/goocanvas-sections.txt	(original)
+++ trunk/docs/goocanvas-sections.txt	Tue Nov  4 11:54:24 2008
@@ -732,6 +732,15 @@
 goo_canvas_parse_path_data
 goo_canvas_create_path
 
+<SUBSECTION>
+GooCairoAntialias
+GooCairoFillRule
+GooCairoHintMetrics
+GooCairoLineCap
+GooCairoLineJoin
+GooCairoOperator
+GooCairoMatrix
+GooCairoPattern
 
 <SUBSECTION Private>
 GOO_TYPE_CANVAS_POINTS

Modified: trunk/src/goocanvasutils.c
==============================================================================
--- trunk/src/goocanvasutils.c	(original)
+++ trunk/src/goocanvasutils.c	Tue Nov  4 11:54:24 2008
@@ -366,7 +366,7 @@
   
   if (cairo_line_dash_type == 0)
     cairo_line_dash_type = g_boxed_type_register_static
-      ("GooCairoLineDash",
+      ("GooCanvasLineDash",
        (GBoxedCopyFunc) goo_canvas_line_dash_ref,
        (GBoxedFreeFunc) goo_canvas_line_dash_unref);
 

Modified: trunk/src/goocanvasutils.h
==============================================================================
--- trunk/src/goocanvasutils.h	(original)
+++ trunk/src/goocanvasutils.h	Tue Nov  4 11:54:24 2008
@@ -206,6 +206,92 @@
   double dash_offset;
 };
 
+
+/* These are here so we can document the cairo type wrappers - don't use. */
+#if 0
+typedef cairo_antialias_t	GooCairoAntialias;
+typedef cairo_fill_rule_t	GooCairoFillRule;
+typedef cairo_hint_metrics_t	GooCairoHintMetrics;
+typedef cairo_line_cap_t	GooCairoLineCap;
+typedef cairo_line_join_t	GooCairoLineJoin;
+typedef cairo_operator_t	GooCairoOperator;
+typedef cairo_matrix_t		GooCairoMatrix;
+typedef cairo_pattern_t		GooCairoPattern;
+#endif
+
+/**
+ * GooCairoAntialias
+ *
+ * #GooCairoAntialias is simply a wrapper for the #cairo_antialias_t type,
+ * allowing it to be used for #GObject properties.
+ *
+ * See the #cairo_antialias_t documentation.
+ */
+
+/**
+ * GooCairoFillRule
+ *
+ * #GooCairoFillRule is simply a wrapper for the #cairo_fill_rule_t type,
+ * allowing it to be used for #GObject properties.
+ *
+ * See the #cairo_fill_rule_t documentation.
+ */
+
+/**
+ * GooCairoHintMetrics
+ *
+ * #GooCairoHintMetrics is simply a wrapper for the #cairo_hint_metrics_t type,
+ * allowing it to be used for #GObject properties.
+ *
+ * See the #cairo_hint_metrics_t documentation.
+ */
+
+/**
+ * GooCairoLineCap
+ *
+ * #GooCairoLineCap is simply a wrapper for the #cairo_line_cap_t type,
+ * allowing it to be used for #GObject properties.
+ *
+ * See the #cairo_line_cap_t documentation.
+ */
+
+/**
+ * GooCairoLineJoin
+ *
+ * #GooCairoLineJoin is simply a wrapper for the #cairo_line_join_t type,
+ * allowing it to be used for #GObject properties.
+ *
+ * See the #cairo_line_join_t documentation.
+ */
+
+/**
+ * GooCairoOperator
+ *
+ * #GooCairoOperator is simply a wrapper for the #cairo_operator_t type,
+ * allowing it to be used for #GObject properties.
+ *
+ * See the #cairo_operator_t documentation.
+ */
+
+/**
+ * GooCairoMatrix
+ *
+ * #GooCairoMatrix is simply a wrapper for the #cairo_matrix_t type,
+ * allowing it to be used for #GObject properties.
+ *
+ * See the #cairo_matrix_t documentation.
+ */
+
+/**
+ * GooCairoPattern
+ *
+ * #GooCairoPattern is simply a wrapper for the #cairo_pattern_t type,
+ * allowing it to be used for #GObject properties.
+ *
+ * See the #cairo_pattern_t documentation.
+ */
+
+
 #define GOO_TYPE_CANVAS_LINE_DASH  (goo_canvas_line_dash_get_type ())
 GType              goo_canvas_line_dash_get_type (void) G_GNUC_CONST;
 GooCanvasLineDash* goo_canvas_line_dash_new   (gint               num_dashes,



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