summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Harvey <chris@basementcode.com>2009-08-07 19:07:46 -0400
committerJonathon Jongsma <jjongsma@gnome.org>2009-08-07 22:29:44 -0500
commit61de1eb019e54c0887ec2751354df3b6ee09daae (patch)
treeddb1c5f9ef0bac30a9c766888cfacd2f8355b225
parentc4f51cb4a260e17e79d0df2697abb889723ddde6 (diff)
Added some documentation to the rel_* functions in the Context class
-rw-r--r--ChangeLog7
-rw-r--r--cairomm/context.h12
2 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0e36261..c35be51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-07-07 Christopher Harvey <chris@basementcode.com>
+
+ * cairomm/context.h
+
+ Added some documentation to the rel_* functions in the Context class
+ about their behavior when there is no current point.
+
2009-07-05 Jānis Rukšāns <thedogfarted@gmail.com>
Reviewed by Jonathon Jongsma
diff --git a/cairomm/context.h b/cairomm/context.h
index 436527e..774b213 100644
--- a/cairomm/context.h
+++ b/cairomm/context.h
@@ -477,6 +477,10 @@ public:
*
* @param dx the X offset
* @param dy the Y offset
+ *
+ * It is an error to call this function with no current point. Doing
+ * so will cause this to shutdown with a status of
+ * CAIRO_STATUS_NO_CURRENT_POINT. Cairomm will then throw an exception.
*/
void rel_move_to(double dx, double dy);
@@ -496,6 +500,10 @@ public:
*
* @param dx the X offset to the end of the new line
* @param dy the Y offset to the end of the new line
+ *
+ * It is an error to call this function with no current point. Doing
+ * so will cause this to shutdown with a status of
+ * CAIRO_STATUS_NO_CURRENT_POINT. Cairomm will then throw an exception.
*/
void rel_line_to(double dx, double dy);
@@ -520,6 +528,10 @@ public:
* @param dy2 the Y offset to the second control point
* @param dx3 the X offset to the end of the curve
* @param dy3 the Y offset to the end of the curve
+ *
+ * It is an error to call this function with no current point. Doing
+ * so will cause this to shutdown with a status of
+ * CAIRO_STATUS_NO_CURRENT_POINT. Cairomm will then throw an exception.
*/
void rel_curve_to(double dx1, double dy1, double dx2, double dy2, double dx3, double dy3);