Home
last modified time | relevance | path

Searched refs:pinchGestureEvent (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_gesture_judge_function.cpp142 auto pinchGestureEvent = TypeInfoHelper::DynamicCast<PinchGestureEvent>(info.get()); in SetUniqueAttributes() local
143 if (pinchGestureEvent) { in SetUniqueAttributes()
144 obj->SetProperty<double>("scale", pinchGestureEvent->GetScale()); in SetUniqueAttributes()
146 …"pinchCenterX", PipelineBase::Px2VpWithCurrentDensity(pinchGestureEvent->GetPinchCenter().GetX())); in SetUniqueAttributes()
148 …"pinchCenterY", PipelineBase::Px2VpWithCurrentDensity(pinchGestureEvent->GetPinchCenter().GetY())); in SetUniqueAttributes()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_gesture_modifier.cpp336 auto pinchGestureEvent = TypeInfoHelper::DynamicCast<PinchGestureEvent>(info.get()); in GetUniqueGestureEvent() local
337 if (pinchGestureEvent) { in GetUniqueGestureEvent()
338 ret->scale = pinchGestureEvent->GetScale(); in GetUniqueGestureEvent()
339 ret->pinchCenterX = pinchGestureEvent->GetPinchCenter().GetX(); in GetUniqueGestureEvent()
340 ret->pinchCenterY = pinchGestureEvent->GetPinchCenter().GetY(); in GetUniqueGestureEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_common_bridge.cpp6148 auto* pinchGestureEvent = TypeInfoHelper::DynamicCast<PinchGestureEvent>(info.get()); in SetUniqueAttributes() local
6149 if (pinchGestureEvent) { in SetUniqueAttributes()
6151 … Local<JSValueRef> values[] = { panda::NumberRef::New(vm, pinchGestureEvent->GetScale()), in SetUniqueAttributes()
6152 panda::NumberRef::New(vm, pinchGestureEvent->GetPinchCenter().GetX() / density), in SetUniqueAttributes()
6153 … panda::NumberRef::New(vm, pinchGestureEvent->GetPinchCenter().GetY() / density) }; in SetUniqueAttributes()