Device.connectToolChanged

gulong connectToolChanged(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.device.Device))) && Parameters!T.length < 3)

Connect to ToolChanged signal.

The ::tool-changed signal is emitted on pen/eraser #GdkDevices whenever tools enter or leave proximity.

Parameters

callbacksignal callback delegate or function to connect void callback(gdk.device_tool.DeviceTool tool, gdk.device.Device device) tool The new current tool (optional) device 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