Home
last modified time | relevance | path

Searched refs:menuLayoutAlgorithm (Results 1 – 6 of 6) sorted by relevance

/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
Dmenu_layoutFst_test_ng.cpp360 RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(); variable
364 menuLayoutAlgorithm->wrapperSize_ = size_f;
365 auto result = menuLayoutAlgorithm->HorizontalLayout(size, clickPosition);
376 RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(); variable
380 menuLayoutAlgorithm->wrapperSize_ = size_f;
381 auto result = menuLayoutAlgorithm->HorizontalLayout(size, clickPosition);
392 RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(); variable
396 menuLayoutAlgorithm->wrapperSize_ = size_f;
397 auto result = menuLayoutAlgorithm->HorizontalLayout(size, clickPosition);
398 EXPECT_EQ(result, menuLayoutAlgorithm->wrapperSize_.Width() - size.Width());
[all …]
Dmenu_animation_test_ng.cpp625 …RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(nodeId,… variable
626 ASSERT_NE(menuLayoutAlgorithm, nullptr);
632 menuLayoutAlgorithm->previewSize_ = previewSize;
638 …OffsetF fresult = menuLayoutAlgorithm->FixMenuOriginOffset(SCALE_ANIMATION_FIRST, SCALE_ANIMATION_…
640 menuLayoutAlgorithm->placement_ = Placement::LEFT_BOTTOM;
641 … fresult = menuLayoutAlgorithm->FixMenuOriginOffset(SCALE_ANIMATION_FIRST, SCALE_ANIMATION_SECOND);
644 menuLayoutAlgorithm->placement_ = Placement::TOP_RIGHT;
645 … fresult = menuLayoutAlgorithm->FixMenuOriginOffset(SCALE_ANIMATION_FIRST, SCALE_ANIMATION_SECOND);
647 menuLayoutAlgorithm->placement_ = Placement::RIGHT_TOP;
648 … fresult = menuLayoutAlgorithm->FixMenuOriginOffset(SCALE_ANIMATION_FIRST, SCALE_ANIMATION_SECOND);
[all …]
Dmenu_layoutThi_test_ng.cpp857 MenuLayoutAlgorithm menuLayoutAlgorithm(NODE_ID, MENU_TAG, parentPosition);
858 menuLayoutAlgorithm.canExpandCurrentWindow_ = true;
859 menuLayoutAlgorithm.isExpandDisplay_ = true;
860 menuLayoutAlgorithm.isTargetNodeInSubwindow_ = false;
861 menuLayoutAlgorithm.targetOffset_ = { TARGET_OFFSET_FIRST, TARGET_OFFSET_SECOND };
862menuLayoutAlgorithm.displayWindowRect_ = RectT(RECT_FIRST, RECT_SECOND, RECT_THIRD_NEW, RECT_FORTH…
864 menuLayoutAlgorithm.isUIExtensionSubWindow_ = false;
865 menuLayoutAlgorithm.ModifyTargetOffset();
866 EXPECT_EQ(menuLayoutAlgorithm.targetOffset_.x_, TWENTY);
878 MenuLayoutAlgorithm menuLayoutAlgorithm(NODE_ID, MENU_TAG, parentPosition);
[all …]
Dmenu_layoutScd_test_ng.cpp1644 …RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(nodeId,… variable
1645 ASSERT_NE(menuLayoutAlgorithm, nullptr);
1647 menuLayoutAlgorithm->targetNodeId_ = nodeId;
1648 menuLayoutAlgorithm->targetTag_ = "text";
1670 menuLayoutAlgorithm->InitTargetSizeAndPosition(layoutWrapper, false, menuPattern);
1671 EXPECT_EQ(menuLayoutAlgorithm->targetOffset_, OffsetF(0.0f, 0.0f));
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/preview/
Dmenu_preview_layout_algorithm.cpp47 …auto menuLayoutAlgorithm = DynamicCast<MenuLayoutAlgorithm>(menuLayoutAlgorithmWrapper->GetLayoutA… in Layout() local
48 CHECK_NULL_VOID(menuLayoutAlgorithm); in Layout()
52 menuLayoutAlgorithm->Measure(AceType::RawPtr(menuNode)); in Layout()
53 menuLayoutAlgorithm->Layout(AceType::RawPtr(menuNode)); in Layout()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
Dmenu_pattern.cpp1675 …auto menuLayoutAlgorithm = DynamicCast<MenuLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in UpdateClipPath() local
1676 CHECK_NULL_VOID(menuLayoutAlgorithm); in UpdateClipPath()
1677 auto clipPath = menuLayoutAlgorithm->GetClipPath(); in UpdateClipPath()