diff options
author | lecoanet | 2006-08-28 08:47:59 +0000 |
---|---|---|
committer | lecoanet | 2006-08-28 08:47:59 +0000 |
commit | 9c8413684e589ae90c416e08e0419b91db6f7cc3 (patch) | |
tree | c124a5ba60df98602cc82529851d476ac6def996 /generic/Reticle.c | |
parent | 8f3027c2d68fb19be642bb41315391056d90bd1d (diff) | |
download | tkzinc-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/Reticle.c')
-rw-r--r-- | generic/Reticle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/Reticle.c b/generic/Reticle.c index cebeb98..59e3cdc 100644 --- a/generic/Reticle.c +++ b/generic/Reticle.c @@ -74,6 +74,9 @@ static ZnAttrConfig reticle_attrs[] = { Tk_Offset(ReticleItemStruct, bright_line_color), 0, ZN_DRAW_FLAG, False }, { ZN_CONFIG_LINE_STYLE, "-brightlinestyle", NULL, Tk_Offset(ReticleItemStruct, bright_line_style), 0, ZN_DRAW_FLAG, False }, + { ZN_CONFIG_BOOL, "-catchevent", NULL, + Tk_Offset(ReticleItemStruct, header.flags), ZN_CATCH_EVENT_BIT, + ZN_REPICK_FLAG, False }, { ZN_CONFIG_BOOL, "-composealpha", NULL, Tk_Offset(ReticleItemStruct, header.flags), ZN_COMPOSE_ALPHA_BIT, ZN_DRAW_FLAG, False }, @@ -134,6 +137,7 @@ Init(ZnItem item, SET(item->flags, ZN_VISIBLE_BIT); CLEAR(item->flags, ZN_SENSITIVE_BIT); + CLEAR(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); |