Seat.connectToolAdded

gulong connectToolAdded(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] : gdk.device_tool.DeviceTool))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gdk.seat.Seat))) && Parameters!T.length < 3)

Connect to ToolAdded signal.

Emitted whenever a new tool is made known to the seat.

The tool may later be assigned to a device (i.e. on proximity with a tablet). The device will emit the signalGdk.Device::tool-changed signal accordingly.

A same tool may be used by several devices.

Parameters

callbacksignal callback delegate or function to connect void callback(gdk.device_tool.DeviceTool tool, gdk.seat.Seat seat) tool the new [gdk.device_tool.DeviceTool] known to the seat (optional) seat the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID