view nodejs/shapes.m4 @ 744:6a988e23ad2a

A dirty implementation of removing subtree
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 25 Aug 2010 14:23:06 +0800
parents dd1f3382d6a4
children 56a5e08cd8af
line wrap: on
line source

define([PROJ_PREFIX], [xnjsmb_auto_])dnl
dnl
STRUCT([shape], [shape_t],
       [ACCESSOR([stroke_width],
		 [xnjsmb_shape_stroke_width_get],
		 [xnjsmb_shape_stroke_width_set])],
       [METHOD([show], [sh_show], (), 0, []),
        METHOD([hide], [sh_hide], (), 0, [])])

STRUCT([path], [shape_t], [], [], (([INHERIT], [shape])))

STRUCT([stext], [shape_t], [],
       [METHOD([set_text], [sh_stext_set_text], (STR([txt])), 1, []),
        METHOD([set_style], [xnjsmb_sh_stext_set_style],
	       (SELF, ARRAY([blks]), ERR), 1, [])],
       (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod])))

STRUCT([image], [shape_t], [], [],
       (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod])))

STRUCT([rect], [shape_t], [],
       [METHOD([set], [xnjsmb_sh_rect_set],
	       (SELF, NUMBER(x), NUMBER(y), NUMBER(w), NUMBER(h),
	        NUMBER(rx), NUMBER(ry)), 6, [])],
       (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod])))