Widget.connectGrabNotify
gulong connectGrabNotify(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == bool)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.widget.Widget)))
&& Parameters!T.length < 3)Connect to GrabNotify signal.
The ::grab-notify signal is emitted when a widget becomes shadowed by a GTK+ grab (not a pointer or keyboard grab) on another widget, or when it becomes unshadowed due to a grab being removed.
A widget is shadowed by a [gtk.widget.Widget.grabAdd] when the topmost grab widget in the grab stack of its window group is not its ancestor.
Parameters
callback | signal callback delegate or function to connect void callback(bool wasGrabbed, gtk.widget.Widget widget) wasGrabbed false if the widget becomes shadowed, true if it becomes unshadowed (optional) widget the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID