/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/ |
H A D | bubble_layout_algorithm.cpp | 230 targetSize_ = targetSize.value(); in BubbleLayoutAlgorithm() 1069 targetSize_.SetHeight(caretMetrics.height); in InitCaretTargetSizeAndPosition() 1070 targetSize_.SetWidth(0.0f); in InitCaretTargetSizeAndPosition() 1084 targetSize_ = rect.GetSize(); in InitTargetSizeAndPosition() 1089 targetSize_ = geometryNode->GetFrameSize(); in InitTargetSizeAndPosition() 1095 targetOffset_.ToString().c_str(), targetSize_.ToString().c_str()); in InitTargetSizeAndPosition() 1131 auto y = std::max(targetOffsetY + targetSize_.Height(), marginTop_); in CheckPosition() 1161 auto x = std::max(targetOffsetX + targetSize_.Width(), marginStart_); in CheckPosition() 1488 targetSizeWidthOrHeight = targetSize_.Width(); in GetArrowOffset() 1493 targetSizeWidthOrHeight = targetSize_.Height(); in GetArrowOffset() [all …]
|
H A D | bubble_pattern.h | 88 … return MakeRefPtr<BubbleLayoutAlgorithm>(targetNodeId_, targetTag_, targetOffset_, targetSize_); in CreateLayoutAlgorithm() 292 std::optional<SizeF> targetSize_; variable
|
H A D | bubble_layout_algorithm.h | 51 return targetSize_; in GetTargetSize() 220 SizeF targetSize_; variable
|
H A D | bubble_pattern.cpp | 68 targetSize_ = bubbleLayoutAlgorithm->GetTargetSize(); in OnDirtyLayoutWrapperSwap()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/bubble/ |
H A D | render_bubble.cpp | 90 targetSize_ = bubble->GetPopupParam()->GetTargetSize(); in Update() 332 targetSize_ = targetRender->GetLayoutSize(); in InitTargetSizeAndPosition() 337 targetSize_ -= targetMargin.GetLayoutSizeInPx(context->GetDipScale()); in InitTargetSizeAndPosition() 379 topArrowPosition = Offset(targetOffset_.GetX() + targetSize_.Width() / 2.0, in InitArrowTopAndBottomPosition() 381 bottomArrowPosition = Offset(targetOffset_.GetX() + targetSize_.Width() / 2.0, in InitArrowTopAndBottomPosition() 394 …Offset topPosition = Offset(targetOffset_.GetX() + (targetSize_.Width() - childSize.Width()) / 2.0, in GetChildPosition() 467 … targetOffset_.GetY() + targetSize_.Height() + targetSpace + bubbleSpacing + marginTop); in GetPositionWithPlacement() 477 targetOffset_.GetY() + targetSize_.Height() / 2.0 - childSize.Height() / 2.0); in GetPositionWithPlacement() 487 targetOffset_.GetY() + targetSize_.Height() - childSize.Height() - marginTop); in GetPositionWithPlacement() 493 targetOffset_.GetY() + targetSize_.Height() / 2.0 - childSize.Height() / 2.0); in GetPositionWithPlacement() [all …]
|
H A D | render_bubble.h | 111 Size targetSize_; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | menu_layout_algorithm.cpp | 950 …targetOffset_.GetX() + targetSize_.Width() / HALF, targetOffset_.GetY() + targetSize_.Height() / H… in LayoutNormalTopPreviewBottomMenuLessThan() 972 …OffsetF center(targetOffset_.GetX() + targetSize_.Width() / 2, targetOffset_.GetY() + targetSize_.… in LayoutNormalTopPreviewBottomMenuGreateThan() 1043 …OffsetF center(targetOffset_.GetX() + targetSize_.Width() / 2, targetOffset_.GetY() + targetSize_.… in LayoutNormalBottomPreviewTopMenuLessThan() 1064 …OffsetF center(targetOffset_.GetX() + targetSize_.Width() / 2, targetOffset_.GetY() + targetSize_.… in LayoutNormalBottomPreviewTopMenuGreateThan() 1237 … targetOffset_.GetX() + targetSize_.Width() / 2, targetOffset_.GetY() + targetSize_.Height() / 2); in LayoutOtherDeviceLeftPreviewRightMenuLessThan() 1274 … targetOffset_.GetX() + targetSize_.Width() / 2, targetOffset_.GetY() + targetSize_.Height() / 2); in LayoutOtherDeviceLeftPreviewRightMenuGreateThan() 1383 targetSize_ = previewSize * previewScale_; in UpdatePreviewPositionAndOffset() 1820 …if (menuProp->GetMenuPlacement().has_value() && (targetSize_.Width() > 0.0 || targetSize_.Height()… in MenuLayoutAvoidAlgorithm() 2162 dumpInfo_.targetSize = targetSize_; in InitTargetSizeAndPosition() 2164 menuPattern->SetTargetSize(targetSize_); in InitTargetSizeAndPosition() [all …]
|
H A D | menu_pattern.h | 414 targetSize_ = size; in SetTargetSize() 419 return targetSize_; in GetTargetSize() 627 SizeF targetSize_; variable
|
H A D | menu_layout_algorithm.h | 237 SizeF targetSize_; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/popup/ |
H A D | popup_element_v2.cpp | 69 auto targetSize_ = targetRender->GetLayoutSize(); in HandleDeclarativePerformBuild() local 71 popup_->GetPopupParam()->SetTargetSize(targetSize_); in HandleDeclarativePerformBuild()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | popup_param.h | 286 targetSize_ = targetSize; in SetTargetSize() 291 return targetSize_; in GetTargetSize() 524 Size targetSize_; variable
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/ |
H A D | menu_layoutScd_test_ng.cpp | 281 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 355 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 417 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 486 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 548 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 620 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 833 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 892 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 949 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 1018 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); [all …]
|
H A D | menu_layoutFst_test_ng.cpp | 812 menuLayoutAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 824 menuLayoutAlgorithm->targetSize_ = SizeF(0.0f, 0.0f); 1066 menuLayoutAlgorithm->targetSize_ = size; 1111 menuLayoutAlgorithm->targetSize_ = size; 1137 menuLayoutAlgorithm->targetSize_ = size; 1163 menuLayoutAlgorithm->targetSize_ = size; 1189 menuLayoutAlgorithm->targetSize_ = size; 1215 menuLayoutAlgorithm->targetSize_ = size; 1241 menuLayoutAlgorithm->targetSize_ = size; 1267 menuLayoutAlgorithm->targetSize_ = size; [all …]
|
H A D | menu_origin_test_ng.cpp | 2097 menuAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT);
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/bubble/ |
H A D | bubble_test_ng.cpp | 1894 bubbleLayoutAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT); 2024 auto targetSize = bubbleLayoutAlgorithm->targetSize_; 2051 bubblePattern->targetSize_ = SizeF(0.0f, 0.0f); 2150 auto targetSize = layoutAlgorithm->targetSize_ = SizeF(TARGET_SIZE_WIDTH, TARGET_SIZE_HEIGHT);
|