Home
last modified time | relevance | path

Searched refs:posX_ (Results 1 - 25 of 165) sorted by relevance

1234567

/foundation/window/window_manager/test/systemtest/wms/
H A Dwindow_test_utils.cpp156 resRect.posX_ = limitDisplayRect_.posX_ + static_cast<int32_t>((limitDisplayRect_.width_ - defaultW) / half); in GetDefaultFloatingRect()
170 std::min(std::max(rect.posX_, maxPosRemain - static_cast<int32_t>(rect.width_)), in CalcLimitedRect()
184 rect.posX_, in GetFloatingLimitedRect()
198 resRect.posX_ = rect.posX_; in GetDecorateRect()
272 int x = limitDisplayRect_.posX_ + ((limitDisplayRect_.width_ - w) / half); in InitTileWindowRects()
294 bool res = ((l.posX_ == r.posX_) && (l.posY_ == r.posY_) && (l.width_ == r.width_) && (l.height_ == r.height_)); in RectEqualTo()
297 "Expect: %{public}d %{public}d %{public}d %{public}d", l.posX_, in RectEqualTo()
[all...]
H A Dwindow_move_drag_test.cpp157 startPointX_ = startPointRect_.posX_ - static_cast<int32_t>(hotZone_ * POINT_HOTZONE_RATIO); in HWTEST_F()
178 startPointX_ = startPointRect_.posX_ - static_cast<int32_t>(hotZone_ * POINT_HOTZONE_RATIO); in HWTEST_F()
199 startPointX_ = startPointRect_.posX_ - static_cast<int32_t>(hotZone_ * POINT_HOTZONE_RATIO); in HWTEST_F()
221 startPointX_ = startPointRect_.posX_ + in HWTEST_F()
243 startPointX_ = startPointRect_.posX_ + in HWTEST_F()
264 startPointX_ = startPointRect_.posX_ + in HWTEST_F()
286 startPointX_ = startPointRect_.posX_ + static_cast<int32_t>(startPointRect_.width_ * POINT_HOTZONE_RATIO); in HWTEST_F()
306 startPointX_ = startPointRect_.posX_ + static_cast<int32_t>(startPointRect_.width_ * POINT_HOTZONE_RATIO); in HWTEST_F()
327 startPointX_ = startPointRect_.posX_ + static_cast<int32_t>(startPointRect_.width_ * POINT_HOTZONE_RATIO); in HWTEST_F()
348 startPointX_ = startPointRect_.posX_ in HWTEST_F()
[all...]
/foundation/window/window_manager/wmserver/src/
H A Dwindow_layout_policy_cascade.cpp90 node->GetWindowId(), rect.posX_, rect.posY_, rect.width_, rect.height_); in Reorder()
175 requestRect.posX_, requestRect.posY_, requestRect.width_, requestRect.height_); in PerformWindowLayout()
219 if (rect.posX_ < limitRect.posX_) { in LimitDividerInDisplayRegion()
220 rect.posX_ = limitRect.posX_; in LimitDividerInDisplayRegion()
221 } else if (rect.posX_ + static_cast<int32_t>(rect.width_) > in LimitDividerInDisplayRegion()
222 limitRect.posX_ + static_cast<int32_t>(limitRect.width_)) { in LimitDividerInDisplayRegion()
223 rect.posX_ = limitRect.posX_ in LimitDividerInDisplayRegion()
[all...]
H A Dwindow_layout_policy.cpp57 windowRect.posX_ = std::max(windowRect.posX_, displayRect.posX_); in LimitWindowToBottomRightCorner()
62 if (windowRect.posX_ + static_cast<int32_t>(windowRect.width_) > in LimitWindowToBottomRightCorner()
63 displayRect.posX_ + static_cast<int32_t>(displayRect.width_)) { in LimitWindowToBottomRightCorner()
64 windowRect.posX_ = displayRect.posX_ + static_cast<int32_t>(displayRect.width_) - in LimitWindowToBottomRightCorner()
76 node->GetWindowId(), windowRect.posX_, windowRect.posY_, windowRect.width_, windowRect.height_); in LimitWindowToBottomRightCorner()
88 newDisplayGroupRect.posX_ = std::min(displayGroupRect_.posX_, ele in UpdateDisplayGroupRect()
[all...]
H A Ddisplay_group_controller.cpp157 if (((winRect.posX_ + static_cast<int32_t>(winRect.width_)) > curDisplayRect.posX_) && in UpdateWindowShowingDisplays()
158 (winRect.posX_ < (curDisplayRect.posX_ + static_cast<int32_t>(curDisplayRect.width_)))) { in UpdateWindowShowingDisplays()
165 if (((winRect.posX_ + static_cast<int32_t>(winRect.width_)) <= in UpdateWindowShowingDisplays()
166 displayRectMap[leftDisplayId].posX_)) { in UpdateWindowShowingDisplays()
169 if (winRect.posX_ >= in UpdateWindowShowingDisplays()
170 (displayRectMap[rightDisplayId].posX_ + static_cast<int32_t>(displayRectMap[rightDisplayId].width_))) { in UpdateWindowShowingDisplays()
202 if ((winRect.posX_ < displayRect.posX_) in UpdateWindowDisplayIdIfNeeded()
[all...]
H A Ddrag_controller.cpp104 PointInfo point = {property->GetWindowRect().posX_ + property->GetHitOffset().x, in FinishDrag()
147 point.x = property->GetWindowRect().posX_ + property->GetHitOffset().x; in GetHitPoint()
265 posX += displayRect.posX_; in ConvertPointerPosToDisplayGroupPos()
317 if ((startPointPosX > startRectExceptCorner.posX_ && in GetHotZoneRect()
318 (startPointPosX < startRectExceptCorner.posX_ + in GetHotZoneRect()
342 if ((rect.posX_ > static_cast<int32_t>(limitRect.posX_ + limitRect.width_ - titleBarHeight)) || in CheckWindowRect()
343 (rect.posX_ + static_cast<int32_t>(rect.width_) < in CheckWindowRect()
344 static_cast<int32_t>(limitRect.posX_ + titleBarHeight)) || in CheckWindowRect()
348 windowProperty_->GetWindowId(), rect.posX_, rec in CheckWindowRect()
[all...]
H A Ddisplay_zoom_controller.cpp52 zoomInfo_.pivotX = rect.posX_ + zoomTrans.pivotX_ * rect.width_; in SetAnchorAndScale()
200 int32_t deltaXMax = displayInfo->GetOffsetX() - zoomRect.posX_; in UpdateZoomTranslateInfo()
201 int32_t deltaXMin = displayInfo->GetOffsetX() + displayInfo->GetWidth() - zoomRect.posX_ in UpdateZoomTranslateInfo()
223 TransformHelper::Vector3 lastPivotPos = { rect.posX_ + lastZoomTrans.pivotX_ * rect.width_, in CalcuAnimateZoomTrans()
233 TransformHelper::Vector3 animatePivotPos = { rect.posX_ + animateTrans.pivotX_ * rect.width_, in CalcuAnimateZoomTrans()
241 finalZoomTrans.pivotX_ = (0 - rect.posX_) * 1.0 / rect.width_; in CalcuAnimateZoomTrans()
264 zoomTrans.pivotX_ = (zoomInfo_.pivotX - rect.posX_) * 1.0 / rect.width_; in CalcuZoomTransByZoomInfo()
279 TransformHelper::Vector3 lastPivotPos = { rect.posX_ + lastZoomTrans.pivotX_ * rect.width_, in CalcuZoomTrans()
296 finalZoomTrans.pivotX_ = (0 - rect.posX_) * 1.0 / rect.width_; in CalcuZoomTrans()
H A Ddisplay_group_info.cpp60 if (curDisplayRect.posX_ < displayRectMap[leftDisplayId_].posX_) { in UpdateLeftAndRightDisplayId()
63 if ((curDisplayRect.posX_ + static_cast<int32_t>(curDisplayRect.width_)) > in UpdateLeftAndRightDisplayId()
64 (displayRectMap[rightDisplayId_].posX_ + static_cast<int32_t>(displayRectMap[rightDisplayId_].width_))) { in UpdateLeftAndRightDisplayId()
115 displayInfo->SetOffsetX(displayRect.posX_); in SetDisplayRect()
/foundation/window/window_manager/window_scene/common/include/
H A Dsession_helper.h33 int32_t x_begin = std::max(rect1.posX_, rect2.posX_); in GetOverlap()
34 int32_t x_end = std::min(rect1.posX_ + static_cast<int32_t>(rect1.width_), in GetOverlap()
35 rect2.posX_ + static_cast<int32_t>(rect2.width_)); in GetOverlap()
48 return (r.posX_ == 0 && r.posY_ == 0 && r.width_ == 0 && r.height_ == 0); in IsEmptyRect()
53 if ((pointPosX > rect.posX_) && in IsPointInRect()
54 (pointPosX < (rect.posX_ + static_cast<int32_t>(rect.width_)) - 1) && in IsPointInRect()
67 r.posX_ = rect.posX_; in TransferToWSRect()
77 r.posX_ in TransferToRect()
[all...]
/foundation/window/window_manager/utils/src/
H A Dcutout_info.cpp27 return parcel.WriteInt32(waterfallDisplayAreaRects_.left.posX_) && in Marshalling()
31 parcel.WriteInt32(waterfallDisplayAreaRects_.top.posX_) && in Marshalling()
35 parcel.WriteInt32(waterfallDisplayAreaRects_.right.posX_) && in Marshalling()
39 parcel.WriteInt32(waterfallDisplayAreaRects_.bottom.posX_) && in Marshalling()
66 if (!(parcel.WriteInt32(rect.posX_) && parcel.WriteInt32(rect.posY_) && in WriteBoundingRectsVector()
100 if (!(parcel.ReadInt32(waterfallDisplayAreaRects.left.posX_) && in ReadWaterfallDisplayAreaRects()
104 parcel.ReadInt32(waterfallDisplayAreaRects.top.posX_) && in ReadWaterfallDisplayAreaRects()
108 parcel.ReadInt32(waterfallDisplayAreaRects.right.posX_) && in ReadWaterfallDisplayAreaRects()
112 parcel.ReadInt32(waterfallDisplayAreaRects.bottom.posX_) && in ReadWaterfallDisplayAreaRects()
H A Daccessibility_window_info.cpp30 parcel.WriteUint32(windowRect_.height_) && parcel.WriteInt32(windowRect_.posX_) && in Marshalling()
41 res = parcel.WriteInt32(rect.posX_) && parcel.WriteInt32(rect.posY_) && in Marshalling()
58 parcel.ReadUint32(info->windowRect_.height_) && parcel.ReadInt32(info->windowRect_.posX_) && in Unmarshalling()
74 info->touchHotAreas_.push_back({.posX_ = parcel.ReadInt32(), .posY_ = parcel.ReadInt32(), in Unmarshalling()
/foundation/window/window_manager/utils/include/
H A Dwindow_helper.h178 return (r.posX_ == 0 && r.posY_ == 0 && r.width_ == 0 && r.height_ == 0); in IsEmptyRect()
193 int32_t x_begin = std::max(rect1.posX_, rect2.posX_); in GetOverlap()
194 int32_t x_end = std::min(rect1.posX_ + static_cast<int32_t>(rect1.width_), in GetOverlap()
195 rect2.posX_ + static_cast<int32_t>(rect2.width_)); in GetOverlap()
265 if ((pointPosX > targetRect.posX_) && in IsPointInTargetRect()
266 (pointPosX < (targetRect.posX_ + static_cast<int32_t>(targetRect.width_)) - 1) && in IsPointInTargetRect()
276 if ((pointPosX >= targetRect.posX_) && in IsPointInTargetRectWithBound()
277 (pointPosX < (targetRect.posX_ + static_cast<int32_t>(targetRect.width_))) && in IsPointInTargetRectWithBound()
287 if ((pointPosX > rectExceptCorner.posX_ in IsPointInWindowExceptCorner()
[all...]
/foundation/window/window_manager/interfaces/innerkits/dm/
H A Ddm_common.h387 int32_t posX_; member
389 Point() : posX_(0), posY_(0) {}; in Point()
390 Point(int32_t posX, int32_t posY) : posX_(posX), posY_(posY) {}; in Point()
433 int32_t posX_; member
440 return (posX_ == a.posX_ && posY_ == a.posY_ && width_ == a.width_ && height_ == a.height_); in operator ==()
450 return (posX_ == 0 && posY_ == 0 && width_ == 0 && height_ == 0); in IsUninitializedRect()
455 return (posX_ >= a.posX_ && posY_ >= a.posY_ && in IsInsideOf()
456 posX_ in IsInsideOf()
[all...]
/foundation/arkui/ace_engine/interfaces/inner_api/ace/
H A Dviewport_config.h39 posX_ = x; in SetPosition()
55 return posX_; in Left()
97 posX_ == other.Left() && in operator ==()
115 config.append(" position: (" + std::to_string(posX_) + ", " + std::to_string(posY_) + ")"); in ToString()
123 int32_t posX_ = 0; member in OHOS::Ace::ViewportConfig
/foundation/window/window_manager/previewer/include/
H A Dwm_common.h488 int32_t posX_; member
495 return (posX_ == a.posX_ && posY_ == a.posY_ && width_ == a.width_ && height_ == a.height_); in operator ==()
505 return (posX_ >= a.posX_ && posY_ >= a.posY_ && in IsInsideOf()
506 posX_ + width_ <= a.posX_ + a.width_ && posY_ + height_ <= a.posY_ + a.height_); in IsInsideOf()
511 return (posX_ == 0 && posY_ == 0 && width_ == 0 && height_ == 0); in IsUninitializedRect()
616 return parcel.ReadInt32(rect.posX_) && parcel.ReadInt32(rect.posY_) && in ReadParcel()
622 return parcel.WriteInt32(rect.posX_) in WriteParcel()
685 int32_t posX_; global() member
[all...]
H A Ddm_common.h324 int32_t posX_; member
331 return (posX_ == a.posX_ && posY_ == a.posY_ && width_ == a.width_ && height_ == a.height_); in operator ==()
341 return (posX_ == 0 && posY_ == 0 && width_ == 0 && height_ == 0); in IsUninitializedRect()
346 return (posX_ >= a.posX_ && posY_ >= a.posY_ && in IsInsideOf()
347 posX_ + width_ <= a.posX_ + a.width_ && posY_ + height_ <= a.posY_ + a.height_); in IsInsideOf()
/foundation/window/window_manager/interfaces/innerkits/wm/
H A Dwm_common.h695 int32_t posX_; member
702 return (posX_ == a.posX_ && posY_ == a.posY_ && width_ == a.width_ && height_ == a.height_); in operator ==()
712 return (posX_ == 0 && posY_ == 0 && width_ == 0 && height_ == 0); in IsUninitializedRect()
717 return (posX_ >= a.posX_ && posY_ >= a.posY_ && in IsInsideOf()
718 posX_ + width_ <= a.posX_ + a.width_ && posY_ + height_ <= a.posY_ + a.height_); in IsInsideOf()
724 ss << "[" << posX_ << " " << posY_ << " " << width_ << " " << height_ << "]"; in ToString()
769 return parcel.WriteInt32(rect_.posX_) in Marshalling()
1089 int32_t posX_; global() member
[all...]
/foundation/window/window_manager/extension/window_extension/src/
H A Dwindow_extension_stub_impl.cpp71 WLOGD("oriRect, x = %{public}d, y = %{public}d, w = %{public}d, h = %{public}d", orgRect.posX_, in SetBounds()
73 WLOGD("newRect, x = %{public}d, y = %{public}d, w = %{public}d, h = %{public}d", rect.posX_, in SetBounds()
78 if (rect.posX_ != orgRect.posX_ || rect.posY_ != orgRect.posY_) { in SetBounds()
79 window->MoveTo(rect.posX_, rect.posY_); in SetBounds()
/foundation/window/window_manager/wmserver/test/unittest/
H A Dwindow_layout_policy_test.cpp149 displayInfo->SetOffsetX(displayRect.posX_); in CreateDisplayInfo()
253 .posX_ = static_cast<int32_t>(displayRect.posX_ + displayRect.width_ * 0.5), // ratio: 0.5 in HWTEST_F()
263 .posX_ = displayRect.posX_, in HWTEST_F()
282 .posX_ = static_cast<int32_t>(displayRect.posX_ + displayRect.width_ * 0.5), // ratio: 0.5 in HWTEST_F()
292 .posX_ = displayRect.posX_, in HWTEST_F()
312 .posX_ in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_irregular_filler.cpp27 posX_ = -1; in InitPos()
51 MeasureItem(params, idx, posX_, posY_, false); in Fill()
75 MeasureItem(params, idx, posX_, posY_, false); in FillToTarget()
137 posX_ = col; in FillOne()
144 if (mat.at(posY_).at(posX_) == target) { in FindNextItem()
154 posX_ = col; in FindNextItem()
165 ++posX_; in AdvancePos()
166 if (posX_ == info_->crossCount_) { in AdvancePos()
169 posX_ = 0; in AdvancePos()
178 return row.find(posX_) ! in AdvancePos()
[all...]
/foundation/window/window_manager/window_scene/interfaces/include/
H A Dws_common.h456 T posX_ = 0; member
463 return (NearEqual(posX_, a.posX_) && NearEqual(posY_, a.posY_) && in operator ==()
474 if (NearZero(posX_) && NearZero(posY_) && NearZero(width_) && NearZero(height_)) { in IsEmpty()
482 return GreatOrEqual(pointX, posX_) && LessOrEqual(pointX, posX_ + width_) && in IsInRegion()
488 int32_t xStart = std::max(posX_, rect.posX_); in IsOverlap()
489 int32_t xEnd = std::min(posX_ + static_cast<int32_t>(width_), in IsOverlap()
490 rect.posX_ in IsOverlap()
[all...]
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dutils.cpp131 return NG::SafeAreaInsets({ avoidArea.leftRect_.posX_, avoidArea.leftRect_.posX_ + avoidArea.leftRect_.width_ }, in ConvertAvoidArea()
133 { avoidArea.rightRect_.posX_, avoidArea.rightRect_.posX_ + avoidArea.rightRect_.width_ }, in ConvertAvoidArea()
139 return Rect(displayAvailableRect.posX_, displayAvailableRect.posY_, displayAvailableRect.width_, in ConvertDMRect2Rect()
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/
H A Dgrid_irregular_filler_test.cpp37 filler.posX_ = 1; in HWTEST_F()
40 EXPECT_EQ(filler.posX_, 0); in HWTEST_F()
48 EXPECT_EQ(filler.posX_, 1); in HWTEST_F()
52 filler.posX_ = 0; in HWTEST_F()
82 EXPECT_EQ(filler.posX_, 0); in HWTEST_F()
86 EXPECT_EQ(filler.posX_, 1); in HWTEST_F()
90 EXPECT_EQ(filler.posX_, 0); in HWTEST_F()
103 EXPECT_EQ(filler.posX_, 0); in HWTEST_F()
107 EXPECT_EQ(filler.posX_, 0); in HWTEST_F()
111 EXPECT_EQ(filler.posX_, in HWTEST_F()
[all...]
/foundation/window/window_manager/window_scene/session/host/src/
H A Dmove_drag_controller.cpp168 moveDragProperty_.targetRect_.posX_ + originalDisplayOffsetX_, in GetTargetRect()
190 moveDragProperty_.targetRect_.posX_ + originalDisplayOffsetX_ - currentDisplayOffsetX, in GetTargetRect()
274 TLOGI(WmsLogTag::WMS_LAYOUT, "original rect [%{public}d,%{public}d,%{public}u,%{public}u]", targetRect.posX_, in GetFullScreenToFloatingRect()
567 moveDragProperty_.originalRect_.posX_ = pointerDisplayX - pointerWindowX; in CalcMoveTargetRect()
574 moveDragProperty_.originalRect_.posX_ + trans.first, in CalcMoveTargetRect()
620 moveDragProperty_.originalRect_.posX_ = pointerItem.GetDisplayX() - pointerItem.GetWindowX(); in EventDownInit()
633 targetRect.posX_ += tranX; in CalcFreeformTargetRect()
669 int32_t posX = originalRect.posX_; in CalcFixedAspectRatioTargetRect()
855 if (startPointPosX > rectExceptCorner_.posX_ && in UpdateDragType()
856 (startPointPosX < rectExceptCorner_.posX_ in UpdateDragType()
[all...]
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessibility_window_manager.cpp217 if ((rect.posX_ > 0) && (static_cast<int32_t>(rect.width_) > 0)) { in CheckIntegerOverflow()
218 int32_t leftX = INT32_MAX - rect.posX_; in CheckIntegerOverflow()
220 HILOG_ERROR("input parameter invalid posX %{public}d, width_ %{public}u", rect.posX_, in CheckIntegerOverflow()
226 if ((rect.posX_ < 0) && (static_cast<int32_t>(rect.width_) < 0)) { in CheckIntegerOverflow()
227 int32_t leftX = INT32_MIN - rect.posX_; in CheckIntegerOverflow()
229 HILOG_ERROR("input parameter invalid posX %{public}d, width_ %{public}u", rect.posX_, in CheckIntegerOverflow()
271 windowInfo->wid_, windowInfo->windowRect_.posX_, windowInfo->windowRect_.posY_); in UpdateAccessibilityWindowInfo()
274 bound.SetLeftTopScreenPostion(windowInfo->windowRect_.posX_, windowInfo->windowRect_.posY_); in UpdateAccessibilityWindowInfo()
276 bound.SetRightBottomScreenPostion(windowInfo->windowRect_.posX_, windowInfo->windowRect_.posY_); in UpdateAccessibilityWindowInfo()
279 windowInfo->windowRect_.posX_ in UpdateAccessibilityWindowInfo()
[all...]

Completed in 22 milliseconds

1234567