Lines Matching defs:point
39 PointInfo point;
40 if (!GetHitPoint(windowId, point)) {
47 sptr<WindowNode> hitWindowNode = GetHitWindow(dragNode->GetDisplayId(), point);
49 WLOGFE("Get point failed %{public}d %{public}d", point.x, point.y);
55 token->UpdateWindowDragInfo(point, DragEvent::DRAG_EVENT_MOVE);
58 token->UpdateWindowDragInfo(point, DragEvent::DRAG_EVENT_IN);
62 oldHitWindow->GetWindowToken()->UpdateWindowDragInfo(point, DragEvent::DRAG_EVENT_OUT);
69 PointInfo point;
70 if (!GetHitPoint(windowId, point)) {
71 WLOGFE("Get hit point failed");
78 sptr<WindowNode> hitWindow = GetHitWindow(dragNode->GetDisplayId(), point);
80 WLOGFE("Get point failed %{public}d %{public}d", point.x, point.y);
84 hitWindow->GetWindowToken()->UpdateWindowDragInfo(point, DragEvent::DRAG_EVENT_IN);
104 PointInfo point = {property->GetWindowRect().posX_ + property->GetHitOffset().x,
107 hitWindow->GetWindowToken()->UpdateWindowDragInfo(point, DragEvent::DRAG_EVENT_END);
113 sptr<WindowNode> DragController::GetHitWindow(DisplayId id, PointInfo point)
115 // Need get display by point
132 if (WindowHelper::IsPointInTargetRect(point.x, point.y, windowNode->GetWindowRect())) {
139 bool DragController::GetHitPoint(uint32_t windowId, PointInfo& point)
143 WLOGFE("Get hit point failed");
147 point.x = property->GetWindowRect().posX_ + property->GetHitOffset().x;
148 point.y = property->GetWindowRect().posY_ + property->GetHitOffset().y;