MenuShell.connectMoveSelected

Connect to MoveSelected signal.

The ::move-selected signal is emitted to move the selection to another item.

class MenuShell
gulong
connectMoveSelected
(
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] == int)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : gtk.menu_shell.MenuShell)
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(int distance, gtk.menu_shell.MenuShell menuShell)

distance +1 to move to the next item, -1 to move to the previous (optional)

menuShell the instance the signal is connected to (optional)

Returns true to stop the signal emission, false to continue

after Flag!"After"

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

Return Value

Type: gulong

Signal ID