DocumentWorkspace.connectAddWidget

Connect to AddWidget signal.

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

class DocumentWorkspace
ulong
connectAddWidget
(
T
)
(,
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 &&
)
)
&&
Parameters!T.length < 4
)

Parameters

callback T

signal 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.

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID