comparison nodejs/shapes.m4 @ 1067:7b4e80ab671a openvg

merge from default branch
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 01 Dec 2010 12:25:56 +0800
parents 2b492008ce26
children
comparison
equal deleted inserted replaced
630:bd18951b51d5 1067:7b4e80ab671a
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl
2 dnl
3 STRUCT([shape], [shape_t],
4 [ACCESSOR([stroke_width],
5 [xnjsmb_shape_stroke_width_get],
6 [xnjsmb_shape_stroke_width_set])],
7 [METHOD([show], [xnjsmb_shape_show], (SELF), 0, []),
8 METHOD([hide], [xnjsmb_shape_hide], (SELF), 0, []),
9 METHOD([remove], [xnjsmb_shape_remove], (SELF), 0, [])])
10
11 STRUCT([path], [shape_t], [], [],
12 (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod])))
13
14 STRUCT([stext], [shape_t], [],
15 [METHOD([set_text], [xnjsmb_sh_stext_set_text],
16 (SELF, STR([txt])), 1, []),
17 METHOD([set_style], [xnjsmb_sh_stext_set_style],
18 (SELF, ARRAY([blks]), ERR), 1, [])],
19 (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod])))
20
21 STRUCT([image], [shape_t], [], [],
22 (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod])))
23
24 STRUCT([rect], [shape_t], [],
25 [METHOD([set], [xnjsmb_sh_rect_set],
26 (SELF, NUMBER(x), NUMBER(y), NUMBER(w), NUMBER(h),
27 NUMBER(rx), NUMBER(ry)), 6, [])],
28 (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod])))