示例#1
0
 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);
 }
示例#2
0
 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);
 }