zoom


Description:

public virtual signal bool zoom (Actor actor, Point focal_point, double factor)

The zoom signal is emitted for each series of touch events that change the distance and focal point between the touch points.

The default handler of the signal will call set_scale on actor using the ratio of the first distance between the touch points and the current distance. To override the default behaviour, connect to this signal and return false.

Parameters:

actor

the Actor attached to the action

focal_point

the focal point of the zoom

factor

the initial distance between the 2 touch points

Returns:

true if the zoom should continue, and false if the zoom should be cancelled.




2022 vala-language.org