summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--cairomm/types.h30
2 files changed, 33 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 14fc375..f1e8da4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-12-12 Jonathon Jongsma <jonathon@quotidian.org>
+ * cairomm/types.h: add cross-reference links to the cairo manual for all types
+ that are just typedefs of C structs
+
+2008-12-12 Jonathon Jongsma <jonathon@quotidian.org>
+
* .gitignore: ignore the new example executable names
* examples/text/Makefile.am: normalize the text-rotate example
executable name
diff --git a/cairomm/types.h b/cairomm/types.h
index aee98ce..5d583cd 100644
--- a/cairomm/types.h
+++ b/cairomm/types.h
@@ -20,13 +20,39 @@
#include <cairo.h>
-namespace Cairo {
+namespace Cairo
+{
+
+/** See the <a
+ * href="http://cairographics.org/manual/cairo-context.html#cairo-rectangle-t">cairo_rectangle_t
+ * reference</a> in the cairo manual for more information
+ */
typedef cairo_rectangle_t Rectangle;
+
+/** See the <a
+ * href="http://cairographics.org/manual/cairo-scaled-font.html#cairo-font-extents-t">cairo_font_extents_t
+ * reference</a> in the cairo manual for more information
+ */
typedef cairo_font_extents_t FontExtents; //A simple struct.
+
+/** See the <a
+ * href="http://cairographics.org/manual/cairo-scaled-font.html#cairo-text-extents-t">cairo_text_extents_t
+ * reference</a> in the cairo manual for more information
+ */
typedef cairo_text_extents_t TextExtents; //A simple struct.
+
+/** See the <a
+ * href="http://cairographics.org/manual/cairo-text.html#cairo-text-cluster-t">cairo_text_cluster_t
+ * reference</a> in the cairo manual for more information
+ */
typedef cairo_text_cluster_t TextCluster;
+
+/** See the <a
+ * href="http://cairographics.org/manual/cairo-text.html#cairo-glyph-t">cairo_glyph_t
+ * reference</a> in the cairo manual for more information
+ */
typedef cairo_glyph_t Glyph; //A simple struct.
-}
+} // namespace Cairo
#endif // __CAIROMM_TYPES_H