Home
last modified time | relevance | path

Searched refs:mouseEventPoint (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/
H A Drender_xcomponent.cpp455 OH_NativeXComponent_MouseEvent mouseEventPoint; in HandleMouseEvent() local
456 mouseEventPoint.x = event.GetOffset().GetX() - GetCoordinatePoint().GetX(); in HandleMouseEvent()
457 mouseEventPoint.y = event.GetOffset().GetY() - GetCoordinatePoint().GetY(); in HandleMouseEvent()
458 mouseEventPoint.screenX = event.GetOffset().GetX(); in HandleMouseEvent()
459 mouseEventPoint.screenY = event.GetOffset().GetY(); in HandleMouseEvent()
462mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_PRESS; in HandleMouseEvent()
468mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_MOVE; in HandleMouseEvent()
471mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE; in HandleMouseEvent()
476mouseEventPoint.button = OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_LEFT_BUTTON; in HandleMouseEvent()
494 mouseEventPoint.timestamp = event.time.time_since_epoch().count(); in HandleMouseEvent()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/xcomponent/
H A Dxcomponent_pattern.cpp1125 OH_NativeXComponent_MouseEvent mouseEventPoint; in HandleMouseEvent() local
1126 mouseEventPoint.x = static_cast<float>(info.GetLocalLocation().GetX()); in HandleMouseEvent()
1127 mouseEventPoint.y = static_cast<float>(info.GetLocalLocation().GetY()); in HandleMouseEvent()
1128 mouseEventPoint.screenX = static_cast<float>(info.GetScreenLocation().GetX()); in HandleMouseEvent()
1129 mouseEventPoint.screenY = static_cast<float>(info.GetScreenLocation().GetY()); in HandleMouseEvent()
1132mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_PRESS; in HandleMouseEvent()
1138mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_MOVE; in HandleMouseEvent()
1141mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE; in HandleMouseEvent()
1146mouseEventPoint.button = OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_LEFT_BUTTON; in HandleMouseEvent()
1164 mouseEventPoint.timestamp = info.GetTimeStamp().time_since_epoch().count(); in HandleMouseEvent()
[all …]