SaveDelegate.connectClose
gulong connectClose(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] : panel.save_delegate.SaveDelegate)))
&& Parameters!T.length < 2)Connect to Close signal.
This signal is emitted when the save delegate should close the widget it is related to. This can happen after saving as part of a close request and it is now save for the delegate to close.
Implementations are encouraged to connect to this signal (or implement the virtual method) and call [panel.widget.Widget.forceClose].
Parameters
callback | signal callback delegate or function to connect void callback(panel.save_delegate.SaveDelegate saveDelegate) saveDelegate 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