aboutsummaryrefslogtreecommitdiff
path: root/generic/Curve.c
diff options
context:
space:
mode:
authorlecoanet2006-08-28 08:47:59 +0000
committerlecoanet2006-08-28 08:47:59 +0000
commit9c8413684e589ae90c416e08e0419b91db6f7cc3 (patch)
treec124a5ba60df98602cc82529851d476ac6def996 /generic/Curve.c
parent8f3027c2d68fb19be642bb41315391056d90bd1d (diff)
downloadtkzinc-9c8413684e589ae90c416e08e0419b91db6f7cc3.zip
tkzinc-9c8413684e589ae90c416e08e0419b91db6f7cc3.tar.gz
tkzinc-9c8413684e589ae90c416e08e0419b91db6f7cc3.tar.bz2
tkzinc-9c8413684e589ae90c416e08e0419b91db6f7cc3.tar.xz
Added a -catchevent attribute that specifies whether an item should handle
events or act as a decorating object. Groups can be controlled too, there catching state propagates to their children.
Diffstat (limited to 'generic/Curve.c')
-rw-r--r--generic/Curve.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/Curve.c b/generic/Curve.c
index c73d467..832b125 100644
--- a/generic/Curve.c
+++ b/generic/Curve.c
@@ -85,6 +85,9 @@ static ZnAttrConfig cv_attrs[] = {
{ ZN_CONFIG_CAP_STYLE, "-capstyle", NULL,
Tk_Offset(CurveItemStruct, cap_style), 0,
ZN_COORDS_FLAG, False },
+ { ZN_CONFIG_BOOL, "-catchevent", NULL,
+ Tk_Offset(CurveItemStruct, header.flags), ZN_CATCH_EVENT_BIT,
+ ZN_REPICK_FLAG, False },
{ ZN_CONFIG_BOOL, "-closed", NULL,
Tk_Offset(CurveItemStruct, flags), CLOSED_BIT, ZN_COORDS_FLAG, False },
{ ZN_CONFIG_BOOL, "-composealpha", NULL,
@@ -132,7 +135,7 @@ static ZnAttrConfig cv_attrs[] = {
ZN_COORDS_FLAG, False },
{ ZN_CONFIG_BOOL, "-sensitive", NULL,
Tk_Offset(CurveItemStruct, header.flags), ZN_SENSITIVE_BIT,
- ZN_DRAW_FLAG, False },
+ ZN_REPICK_FLAG, False },
{ ZN_CONFIG_BOOL, "-smoothrelief", NULL,
Tk_Offset(CurveItemStruct, flags), SMOOTH_RELIEF_BIT,
ZN_REPICK_FLAG, False },
@@ -176,6 +179,7 @@ Init(ZnItem item,
/* Init attributes */
SET(item->flags, ZN_VISIBLE_BIT);
SET(item->flags, ZN_SENSITIVE_BIT);
+ SET(item->flags, ZN_CATCH_EVENT_BIT);
SET(item->flags, ZN_COMPOSE_ALPHA_BIT);
SET(item->flags, ZN_COMPOSE_ROTATION_BIT);
SET(item->flags, ZN_COMPOSE_SCALE_BIT);