TankOs/SFGUI — Issue #38: Multiple hooks
Author: TankOs
Created: 2011-10-13 14:06:42+00:00
State: open
Labels: @Feedback, Widgets

Currently before OnMouseEnter or OnMouseLeave is called, a hook for mouse move events is registered/unregistered.

This can overwrite previously registered hooks installed by the user/a child widget.

To prevent this behaviour, create a hooking mechanism that returns a connection object. As long as that object is alive, the hook is registered.

What's not decided yet are the facts

* in what order the hooks are called (first come, first serve?) and
* if other hooks are cancelled if one event handler returns a stop signal.

Discussion welcome.