drag_progress


Description:

[ Version ( since = "1.12" ) ]
public virtual signal bool drag_progress (Actor actor, float delta_x, float delta_y)

The drag_progress signal is emitted for each motion event after the drag_begin signal has been emitted.

The components of the distance between the press event and the latest motion event are computed in the actor's coordinate space, to take into account eventual transformations. If you want the stage coordinates of the latest motion event you can use get_motion_coords.

The default handler will emit drag_motion, if drag_progress emission returns true.

Parameters:

actor

the Actor attached to the action

delta_x

the X component of the distance between the press event that began the dragging and the current position of the pointer, as of the latest motion event

delta_y

the Y component of the distance between the press event that began the dragging and the current position of the pointer, as of the latest motion event

Returns:

true if the drag should continue, and false if it should be stopped.




2022 vala-language.org