DocumentWorkspace.connectAddWidget

gulong connectAddWidget(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : panel.widget.Widget))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : panel.position.Position))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : panel.document_workspace.DocumentWorkspace))) && Parameters!T.length < 4)

Connect to AddWidget signal.

This signal is used to add a #PanelWidget to the document workspace, generally in the document grid.

Parameters

callbacksignal callback delegate or function to connect bool callback(panel.widget.Widget widget, panel.position.Position position, panel.document_workspace.DocumentWorkspace documentWorkspace) widget a #PanelWidget (optional) position a #PanelPosition (optional) documentWorkspace the instance the signal is connected to (optional) Returns true if the widget was added and no more signal handlers will be notified.
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID