Mercurial > MadButterfly
diff tools/mb_c_source.m4 @ 81:13fdf205047b
Hide shapes and groups
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 21 Aug 2008 13:52:23 +0800 |
parents | e548221c04eb |
children | ea758bb3bbe2 |
line wrap: on
line diff
--- a/tools/mb_c_source.m4 Thu Aug 21 00:27:36 2008 +0800 +++ b/tools/mb_c_source.m4 Thu Aug 21 13:52:23 2008 +0800 @@ -42,6 +42,9 @@ define([FILL_SHAPE_WITH_PAINT]) define([STROKE_SHAPE_WITH_PAINT]) define([STROKE_WIDTH]) +define([GROUP_HIDE],) +define([RECT_HIDE],) +define([PATH_HIDE],) divert[]]) define([S_ADD_LINEAR_PAINT],[ @@ -112,6 +115,18 @@ [ obj->$1->stroke_width = $2; ]]) +define([S_GROUP_HIDE],[dnl +[ coord_hide(obj->$1); +]]) + +define([S_RECT_HIDE],[dnl +[ sh_hide(obj->$1); +]]) + +define([S_PATH_HIDE],[dnl +[ sh_hide(obj->$1); +]]) + define([SETUP_VARS],[divert([-1]) define([SIMPORT],[IMPORT(]QUOTE($[]1)[,[S_])]) SIMPORT([ADD_LINEAR_PAINT]) @@ -126,7 +141,10 @@ SIMPORT([STROKE_SHAPE]) SIMPORT([FILL_SHAPE_WITH_PAINT]) SIMPORT([STROKE_SHAPE_WITH_PAINT]) -SIMPORT([STROKE_WIDTH],) +SIMPORT([STROKE_WIDTH]) +SIMPORT([GROUP_HIDE]) +SIMPORT([RECT_HIDE]) +SIMPORT([PATH_HIDE]) divert[]]) define([F_ADD_LINEAR_PAINT],[[ @@ -172,6 +190,9 @@ define([FILL_SHAPE_WITH_PAINT]) define([STROKE_SHAPE_WITH_PAINT]) define([STROKE_WIDTH]) +define([GROUP_HIDE],) +define([RECT_HIDE],) +define([PATH_HIDE],) divert[]]) define([MADBUTTERFLY],[dnl