Home
last modified time | relevance | path

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

/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
Dmenu_layoutFst_test_ng.cpp359 RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(); variable
363 menuLayoutAlgorithm->wrapperSize_ = size_f;
364 auto result = menuLayoutAlgorithm->HorizontalLayout(size, clickPosition);
375 RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(); variable
379 menuLayoutAlgorithm->wrapperSize_ = size_f;
380 auto result = menuLayoutAlgorithm->HorizontalLayout(size, clickPosition);
391 RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(); variable
395 menuLayoutAlgorithm->wrapperSize_ = size_f;
396 auto result = menuLayoutAlgorithm->HorizontalLayout(size, clickPosition);
397 EXPECT_EQ(result, menuLayoutAlgorithm->wrapperSize_.Width() - size.Width());
[all …]
Dmenu_layoutScd_test_ng.cpp1735 …RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(nodeId,… variable
1736 ASSERT_NE(menuLayoutAlgorithm, nullptr);
1738 menuLayoutAlgorithm->targetNodeId_ = nodeId;
1739 menuLayoutAlgorithm->targetTag_ = "text";
1761 menuLayoutAlgorithm->InitTargetSizeAndPosition(layoutWrapper, false, menuPattern);
1762 EXPECT_EQ(menuLayoutAlgorithm->targetOffset_, OffsetF(0.0f, 0.0f));
1777 …RefPtr<MenuLayoutAlgorithm> menuLayoutAlgorithm = AceType::MakeRefPtr<MenuLayoutAlgorithm>(nodeId,… variable
1778 ASSERT_NE(menuLayoutAlgorithm, nullptr);
1784 menuLayoutAlgorithm->previewSize_ = previewSize;
1790 …OffsetF fresult = menuLayoutAlgorithm->FixMenuOriginOffset(SCALE_ANIMATION_FISRT, SCALE_ANIMATION_…
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/preview/
Dmenu_preview_layout_algorithm.cpp56 …auto menuLayoutAlgorithm = DynamicCast<MenuLayoutAlgorithm>(menuLayoutAlgorithmWrapper->GetLayoutA… in Layout() local
57 CHECK_NULL_VOID(menuLayoutAlgorithm); in Layout()
61 menuLayoutAlgorithm->Measure(AceType::RawPtr(menuNode)); in Layout()
62 menuLayoutAlgorithm->Layout(AceType::RawPtr(menuNode)); in Layout()