DocumentWorkspace.connectCreateFrame

Connect to CreateFrame signal.

Creates a new #PanelFrame to be added to the document grid.

class DocumentWorkspace
ulong
connectCreateFrame
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T : panel.frame.Frame)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
is(Parameters!T[0] : panel.position.Position)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

panel.frame.Frame callback(panel.position.Position position, panel.document_workspace.DocumentWorkspace documentWorkspace)

position the position of the frame (optional)

documentWorkspace the instance the signal is connected to (optional)

Returns a #PanelFrame

after Flag!"After"

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

Return Value

Type: ulong

Signal ID