comparison nodejs/shapes.m4 @ 683:7685c57e29d0

Migrate JS shapes binding to gen_v8_binding.m4
author Thinker K.F. Li <thinker@branda.to>
date Sat, 07 Aug 2010 18:27:53 +0800
parents
children a05a4a27ff46
comparison
equal deleted inserted replaced
682:4a38e571cfce 683:7685c57e29d0
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], [sh_show], (), 0, []),
8 METHOD([hide], [sh_hide], (), 0, [])])
9
10 STRUCT([path], [shape_t], [], [], (([INHERIT], [shape])))
11
12 STRUCT([stext], [shape_t], [],
13 [METHOD([set_text], [sh_stext_set_text], (STR([txt])), 1, []),
14 METHOD([set_style], [xnjsmb_sh_stext_set_style],
15 (ARRAY([blks]), ERR), 1, [])],
16 (([INHERIT], [shape])))
17
18 STRUCT([image], [shape_t], [], [], (([INHERIT], [shape])))