[PATCH 20/25] doc/xlib/xcb: document get/set_precision API

Nis Martensen nis.martensen at web.de
Sun Mar 4 07:52:22 PST 2012


---
 src/cairo-xcb-connection.c |   21 ++++++++++++++++++++-
 src/cairo-xlib-display.c   |   20 ++++++++++++++++++++
 2 files changed, 40 insertions(+), 1 deletions(-)

diff --git a/src/cairo-xcb-connection.c b/src/cairo-xcb-connection.c
index 661cdb3..95d6b8f 100644
--- a/src/cairo-xcb-connection.c
+++ b/src/cairo-xcb-connection.c
@@ -903,7 +903,16 @@ cairo_xcb_device_debug_cap_xrender_version (cairo_device_t *device,
 slim_hidden_def (cairo_xcb_device_debug_cap_xrender_version);
 #endif
 
-
+/**
+ * cairo_xcb_device_debug_set_precision:
+ * @device: a #cairo_device_t for the XCB backend
+ * @precision: the precision to use
+ *
+ * Render supports two modes of precision when rendering trapezoids. Set
+ * the precision to the desired mode.
+ *
+ * Since: 1.12
+ **/
 void
 cairo_xcb_device_debug_set_precision (cairo_device_t *device,
 				      int precision)
@@ -924,6 +933,16 @@ cairo_xcb_device_debug_set_precision (cairo_device_t *device,
 slim_hidden_def (cairo_xcb_device_debug_set_precision);
 #endif
 
+/**
+ * cairo_xcb_device_debug_get_precision:
+ * @device: a #cairo_device_t for the XCB backend
+ *
+ * Get the Xrender precision mode.
+ *
+ * Returns: the render precision mode
+ *
+ * Since: 1.12
+ **/
 int
 cairo_xcb_device_debug_get_precision (cairo_device_t *device)
 {
diff --git a/src/cairo-xlib-display.c b/src/cairo-xlib-display.c
index fd1575e..e2fa8f5 100644
--- a/src/cairo-xlib-display.c
+++ b/src/cairo-xlib-display.c
@@ -595,6 +595,16 @@ cairo_xlib_device_debug_cap_xrender_version (cairo_device_t *device,
     _cairo_xlib_display_select_compositor (display);
 }
 
+/**
+ * cairo_xlib_device_debug_set_precision:
+ * @device: a #cairo_device_t for the Xlib backend
+ * @precision: the precision to use
+ *
+ * Render supports two modes of precision when rendering trapezoids. Set
+ * the precision to the desired mode.
+ *
+ * Since: 1.12
+ **/
 void
 cairo_xlib_device_debug_set_precision (cairo_device_t *device,
 				       int precision)
@@ -612,6 +622,16 @@ cairo_xlib_device_debug_set_precision (cairo_device_t *device,
     ((cairo_xlib_display_t *) device)->force_precision = precision;
 }
 
+/**
+ * cairo_xlib_device_debug_get_precision:
+ * @device: a #cairo_device_t for the Xlib backend
+ *
+ * Get the Xrender precision mode.
+ *
+ * Returns: the render precision mode
+ *
+ * Since: 1.12
+ **/
 int
 cairo_xlib_device_debug_get_precision (cairo_device_t *device)
 {
-- 
1.7.2.5


--------------090104080009020304000505
Content-Type: text/plain;
 name="0021-doc-xcb-document-cairo_xcb_device_get_connection.patch.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0021-doc-xcb-document-cairo_xcb_device_get_connection.patch.";
 filename*1="txt"



More information about the cairo mailing list