drop


Description:

public signal bool drop (Drop drop, double x, double y)

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 must ensure that [[email protected]] is called to let the source know that the drop is done. The call to [[email protected]] must only be done when all data has been received.

To receive the data, use one of the read functions provided by [[email protected]] such as [[email protected]_async] or [ [email protected]_value_async].

Parameters:

drop

the `GdkDrop`

x

the x coordinate of the current pointer position

y

the y coordinate of the current pointer position

Returns:

whether the drop is accepted at the given pointer position




2022 vala-language.org