get_motion_coords


Description:

[ Version ( since = "1.14" ) ]
public void get_motion_coords (uint point, out float motion_x, out float motion_y)

Retrieves the coordinates, in stage space, dependent on the current state of the PanAction .

If it is inactive, both fields will be set to 0. If it is panning by user action, the values will be equivalent to those returned by get_motion_coords. If it is interpolating with some form of kinetic scrolling, the values will be equivalent to those returned by get_interpolated_coords. This is a convenience method designed to be used in replacement "pan" signal handlers.

Parameters:

this

A PanAction

point

the touch point index, with 0 being the first touch point received by the action

motion_x

return location for the X coordinate

motion_y

return location for the Y coordinate




2022 vala-language.org