Mercurial > MadButterfly
comparison nodejs/shapes.cc @ 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 | 9d430b084a13 |
children | 586e50f82c1f |
comparison
equal
deleted
inserted
replaced
779:8e9481bf1cc0 | 780:16d8a1d48717 |
---|---|
66 V8::LowMemoryNotification(); | 66 V8::LowMemoryNotification(); |
67 count = 0; | 67 count = 0; |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 /*! \brief Set style blocks for a stext object from JS. | |
72 * | |
73 * A style block is style setting of a chip of text. It is a 3-tuple, | |
74 * includes number of charaters, a font face, and font size. This | |
75 * function need a list of 3-tuples to set style of text chips of the | |
76 * stext. | |
77 */ | |
71 static void | 78 static void |
72 xnjsmb_sh_stext_set_style(shape_t *sh, Handle<Object> self, | 79 xnjsmb_sh_stext_set_style(shape_t *sh, Handle<Object> self, |
73 Handle<Value> blks, const char **err) { | 80 Handle<Value> blks, const char **err) { |
74 Array *blksobj; | 81 Array *blksobj; |
75 Array *blkobj; | 82 Array *blkobj; |