void handleMagnifyGesture (ComponentPeer& peer, Point<float> positionWithinPeer, Time time, const float scaleFactor) { Point<float> screenPos; if (Component* current = getTargetForGesture (peer, positionWithinPeer, time, screenPos)) sendMagnifyGesture (*current, screenPos, time, scaleFactor); }
void handleMagnifyGesture (ComponentPeer* const peer, const Point<int>& positionWithinPeer, const Time& time, const float scaleFactor) { Point<int> screenPos; if (Component* current = getTargetForGesture (peer, positionWithinPeer, time, screenPos)) sendMagnifyGesture (current, screenPos, time, scaleFactor); }