on_drop


Description:

[ CCode ( cname = "drop" ) ]
[ Version ( deprecated_since = "vala-0.58" , replacement = "DropTarget.drop" ) ]
public signal bool on_drop (Value value, double x, double y)

Warning: on_drop is deprecated since vala-0.58. Use DropTarget.drop.

Emitted on the drop site when the user drops the data onto the widget.

The signal handler must determine whether the pointer position is in a drop zone or not. If it is not in a drop zone, it returns false and no further processing is necessary.

Otherwise, the handler returns true. In this case, this handler will accept the drop. The handler is responsible for using the given value and performing the drop operation.

Parameters:

value

the `GValue` being dropped

x

the x coordinate of the current pointer position

y

the y coordinate of the current pointer position

Returns:

whether the drop was accepted at the given pointer position