changeset 780:16d8a1d48717

Doc for xnjsmb_sh_stext_set_style
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 30 Aug 2010 17:42:15 +0800
parents 8e9481bf1cc0
children 9367508842b2
files nodejs/shapes.cc
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/shapes.cc	Mon Aug 30 13:43:01 2010 +0800
+++ b/nodejs/shapes.cc	Mon Aug 30 17:42:15 2010 +0800
@@ -68,6 +68,13 @@
     }
 }
 
+/*! \brief Set style blocks for a stext object from JS.
+ *
+ * A style block is style setting of a chip of text.  It is a 3-tuple,
+ * includes number of charaters, a font face, and font size.  This
+ * function need a list of 3-tuples to set style of text chips of the
+ * stext.
+ */
 static void
 xnjsmb_sh_stext_set_style(shape_t *sh, Handle<Object> self,
 			  Handle<Value> blks, const char **err) {