Home
last modified time | relevance | path

Searched refs:topLeftPoint (Results 1 - 10 of 10) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components/dialog_tween/
H A Drender_dialog_tween.cpp377 Offset topLeftPoint; in ComputeChildPosition() local
381 return topLeftPoint; in ComputeChildPosition()
393 topLeftPoint = in ComputeChildPosition()
395 return topLeftPoint; in ComputeChildPosition()
411 if (SetAlignmentSwitch(maxSize, childSize, topLeftPoint)) { in ComputeChildPosition()
412 return topLeftPoint + dialogOffset; in ComputeChildPosition()
416 topLeftPoint = Offset(maxSize.Width() - childSize.Width(), maxSize.Height() - childSize.Height()) / 2.0; in ComputeChildPosition()
417 return topLeftPoint + dialogOffset; in ComputeChildPosition()
423 topLeftPoint = Offset((maxSize.Width() - childSize.Width()) / 2.0, in ComputeChildPosition()
426 topLeftPoint in ComputeChildPosition()
476 UpdateTouchRegion(const Offset& topLeftPoint, const Size& maxSize, const Size& childSize) UpdateTouchRegion() argument
[all...]
H A Drender_dialog_tween.h49 void UpdateTouchRegion(const Offset& topLeftPoint, const Size& maxSize, const Size& childSize);
67 bool SetAlignmentSwitch(const Size& maxSize, const Size& childSize, Offset& topLeftPoint) const;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_layout_algorithm.cpp640 bool DialogLayoutAlgorithm::IsDialogTouchingBoundary(OffsetF topLeftPoint, SizeF childSize, SizeF selfSize) in IsDialogTouchingBoundary() argument
648 if (topLeftPoint.GetY() + childSize.Height() >= height) { in IsDialogTouchingBoundary()
650 } else if (topLeftPoint.GetX() + childSize.Width() >= width) { in IsDialogTouchingBoundary()
692 OffsetF topLeftPoint; in ComputeChildPosition() local
705 if (!SetAlignmentSwitch(maxSize, childSize, topLeftPoint)) { in ComputeChildPosition()
706 topLeftPoint = OffsetF(maxSize.Width() - childSize.Width(), maxSize.Height() - childSize.Height()) / HALF; in ComputeChildPosition()
709 topLeftPoint += hostWindowRect_.GetOffset(); in ComputeChildPosition()
717 return AdjustChildPosition(topLeftPoint, dialogOffset, childSize, needAvoidKeyboard); in ComputeChildPosition()
757 bool DialogLayoutAlgorithm::SetAlignmentSwitch(SizeF& maxSize, const SizeF& childSize, OffsetF& topLeftPoint) in SetAlignmentSwitch() argument
764 topLeftPoint in SetAlignmentSwitch()
807 SetAlignmentSwitchLessThanAPITwelve(const SizeF& maxSize, const SizeF& childSize, OffsetF& topLeftPoint) SetAlignmentSwitchLessThanAPITwelve() argument
851 AdjustChildPosition( OffsetF& topLeftPoint, const OffsetF& dialogOffset, const SizeF& childSize, bool needAvoidKeyboard) AdjustChildPosition() argument
[all...]
H A Ddialog_layout_algorithm.h70 bool SetAlignmentSwitch(SizeF& maxSize, const SizeF& childSize, OffsetF& topLeftPoint);
71 bool SetAlignmentSwitchLessThanAPITwelve(const SizeF& maxSize, const SizeF& childSize, OffsetF& topLeftPoint);
74 bool IsDialogTouchingBoundary(OffsetF topLeftPoint, SizeF childSize, SizeF selfSize);
87 OffsetF& topLeftPoint, const OffsetF& dialogOffset, const SizeF& childSize, bool needAvoidKeyboard);
/foundation/arkui/ace_engine/frameworks/core/components/slider/
H A Drender_slider.h64 TouchRegion(TouchRegionPoint topLeftPoint, TouchRegionPoint bottomRightPoint) in TouchRegion() argument
65 : bottomRightPoint_(bottomRightPoint), topLeftPoint_(topLeftPoint) in TouchRegion()
/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/
H A Ddialog_model_test_ng.cpp1373 OffsetF topLeftPoint; in HWTEST_F() local
1380 dialogLayoutAlgorithm->SetAlignmentSwitch(maxSize, childSize, topLeftPoint); in HWTEST_F()
1381 dialogLayoutAlgorithm->AdjustChildPosition(topLeftPoint, topLeftPoint, childSize, true); in HWTEST_F()
1382 EXPECT_EQ(topLeftPoint.GetY(), FOLD_CREASE_RECT.Bottom()); in HWTEST_F()
1384 dialogLayoutAlgorithm->SetAlignmentSwitch(maxSize, childSize, topLeftPoint); in HWTEST_F()
1385 dialogLayoutAlgorithm->AdjustChildPosition(topLeftPoint, topLeftPoint, childSize, true); in HWTEST_F()
1386 EXPECT_EQ(topLeftPoint.GetY(), 0); in HWTEST_F()
1448 OffsetF topLeftPoint in HWTEST_F() local
[all...]
H A Ddialog_test_ng.cpp288 OffsetF topLeftPoint = in HWTEST_F() local
296 auto result = dialogLayoutAlgorithm->SetAlignmentSwitch(maxSize, childSize, topLeftPoint); in HWTEST_F()
311 auto result = dialogLayoutAlgorithm->SetAlignmentSwitch(maxSize, childSize, topLeftPoint); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Drect_t.h47 RectT(const OffsetF& topLeftPoint, const OffsetF& bottomRightPoint) in RectT() argument
49 SetOffset(topLeftPoint); in RectT()
50 OffsetF sizeOffset = bottomRightPoint - topLeftPoint; in RectT()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/
H A Dmenu_item_pattern.cpp928 OffsetF topLeftPoint; in AddSelfHoverRegion() local
931 topLeftPoint = targetNode->GetPaintRectOffset(); in AddSelfHoverRegion()
933 AddHoverRegions(topLeftPoint, bottomRightPoint); in AddSelfHoverRegion()
943 void MenuItemPattern::AddHoverRegions(const OffsetF& topLeftPoint, const OffsetF& bottomRightPoint) in AddHoverRegions() argument
946 Offset(topLeftPoint.GetX(), topLeftPoint.GetY()), Offset(bottomRightPoint.GetX(), bottomRightPoint.GetY())); in AddHoverRegions()
H A Dmenu_item_pattern.h131 void AddHoverRegions(const OffsetF& topLeftPoint, const OffsetF& bottomRightPoint);

Completed in 18 milliseconds