/foundation/arkui/ace_engine/frameworks/core/components/plugin/ |
H A D | render_plugin.cpp | 23 Dimension rootWidth = 0.0_vp; in Update() local 26 rootWidth = plugin->GetWidth(); in Update() 30 if (rootWidth_ == rootWidth && rootHeight_ == rootHeight) { in Update() 33 rootWidth_ = rootWidth; in Update()
|
H A D | plugin_sub_container.cpp | 120 Dimension rootWidth = 0.0_vp; in UpdateRootElementSize() local 129 rootWidth = pluginInfo->width; in UpdateRootElementSize() 135 rootWidth = pluginComponent->GetWidth(); in UpdateRootElementSize() 140 if (rootWidth_ == rootWidth && rootHeight_ == rootHeight) { in UpdateRootElementSize() 143 surfaceWidth_ = outSidePipelineContext_.Upgrade()->NormalizeToPx(rootWidth); in UpdateRootElementSize() 146 pipelineContext_->SetRootSize(density_, rootWidth.Value(), rootHeight.Value()); in UpdateRootElementSize()
|
/foundation/arkui/ace_engine/frameworks/core/components/stage/ |
H A D | render_stage.cpp | 116 double rootWidth = pipelineContext->GetRootWidth(); in HandleDragUpdate() local 117 if (NearZero(rootWidth)) { in HandleDragUpdate() 122 dragOffsetX_ = std::clamp(dragOffsetX_ + deltaX, -rootWidth, 0.0); in HandleDragUpdate() 124 dragOffsetX_ = std::clamp(dragOffsetX_ + deltaX, 0.0, rootWidth); in HandleDragUpdate() 128 tickTime_ = (rootWidth - fabs(dragOffsetX_)) / rootWidth * TRANSITION_WATCH_DURATION; in HandleDragUpdate()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/full_screen/ |
H A D | full_screen_manager.cpp | 53 auto rootWidth = PipelineContext::GetCurrentRootWidth(); in RequestFullScreen() local 55 auto calcRootWidth = CalcLength(rootWidth); in RequestFullScreen() 58 parentLayoutConstraint.maxSize.SetWidth(static_cast<float>(rootWidth)); in RequestFullScreen()
|
/foundation/arkui/ace_engine/frameworks/core/components/form/ |
H A D | sub_container.cpp | 93 Dimension rootWidth = 0.0_vp; in UpdateRootElementSize() local 102 rootWidth = formInfo->width; in UpdateRootElementSize() 108 rootWidth = formComponent->GetWidth(); in UpdateRootElementSize() 113 if (rootWidht_ == rootWidth && rootHeight_ == rootHeight) { in UpdateRootElementSize() 118 surfaceWidth_ = outSidePipelineContext_.Upgrade()->NormalizeToPx(rootWidth); in UpdateRootElementSize() 121 pipelineContext_->SetRootSize(density_, rootWidth.Value(), rootHeight.Value()); in UpdateRootElementSize()
|
/foundation/arkui/ace_engine/test/mock/core/pipeline/ |
H A D | mock_pipeline_context.h | 35 void SetRootSize(double rootWidth, double rootHeight);
|
H A D | mock_pipeline_context.cpp | 167 void MockPipelineContext::SetRootSize(double rootWidth, double rootHeight) in SetRootSize() argument 169 rootWidth_ = rootWidth; in SetRootSize()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/ |
H A D | video_full_screen_pattern.cpp | 65 float rootWidth = PipelineContext::GetCurrentRootWidth(); in RequestFullScreen() local 67 parentConstraint.maxSize.SetWidth(rootWidth); in RequestFullScreen()
|
/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/ |
H A D | render_tool_bar_item.cpp | 96 double rootWidth = GetContext().Upgrade()->GetRootWidth(); in ShowMenu() local 97 if (leftTop.GetX() + menuWidth > rootWidth) { in ShowMenu() 98 leftTop.SetX(rootWidth - menuWidth); in ShowMenu()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/ |
H A D | toast_pattern.cpp | 170 auto rootWidth = wrapperRect_.Width(); in GetOffsetX() local 181 offsetX = Dimension(rootWidth - textWidth); in GetOffsetX() 183 offsetX = Dimension((rootWidth - textWidth) / 2.0f); in GetOffsetX() 283 auto rootWidth = Dimension(wrapperRect_.Width()); in UpdateToastSize() local 288 toastProperty->UpdateUserDefinedIdealSize(CalcSize(NG::CalcLength(rootWidth), std::nullopt)); in UpdateToastSize()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | scroll_bar.cpp | 228 auto rootWidth = context->GetRootWidth(); in GetRootSize() local 229 return Size(rootWidth, rootHeight); in GetRootSize()
|
/foundation/arkui/ace_engine/frameworks/component_test/core/ |
H A D | component_test_tester_impl.cpp | 224 auto rootWidth = context->GetRootWidth(); in FlingImpl() local 225 NG::RectF screenRect(0.0, 0.0, rootWidth * scale, rootHeight * scale); in FlingImpl()
|
H A D | action.cpp | 219 auto rootWidth = context->GetRootWidth(); in Decompose() local 220 NG::RectF screenRect(0, 0, rootWidth * scale, rootHeight * scale); in Decompose() 273 auto rootWidth = context->GetRootWidth(); in Decompose() local 274 NG::RectF screenRect(0, 0, rootWidth * scale, rootHeight * scale); in Decompose()
|
H A D | component_test_component_impl.cpp | 624 auto rootWidth = context->GetRootWidth(); in GetContextInfo() local 625 deviceRect.SetRect(0, 0, rootWidth * scale, rootHeight * scale); in GetContextInfo() 626 jsonRoot->Put(INSPECTOR_WIDTH, std::to_string(rootWidth * scale).c_str()); in GetContextInfo()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | inspector.cpp | 167 double rootWidth = context->GetRootWidth(); in GetInspectorTree() local 168 jsonRoot->Put(INSPECTOR_WIDTH, std::to_string(rootWidth * scale).c_str()); in GetInspectorTree()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | inspector.cpp | 398 auto rootWidth = context->GetRootWidth(); in GetContextInfo() local 399 deviceRect.SetRect(0, 0, rootWidth * scale, rootHeight * scale); in GetContextInfo() 400 jsonRoot->Put(INSPECTOR_WIDTH, std::to_string(rootWidth * scale).c_str()); in GetContextInfo() 740 auto rootWidth = context->GetRootWidth(); in GetSimplifiedInspector() local 741 deviceRect.SetRect(0, 0, rootWidth * scale, rootHeight * scale); in GetSimplifiedInspector() 742 jsonRoot->Put(INSPECTOR_WIDTH, std::to_string(rootWidth * scale).c_str()); in GetSimplifiedInspector()
|
H A D | frame_node.cpp | 1945 auto rootWidth = PipelineContext::GetCurrentRootWidth(); in GetLayoutConstraint() local 1947 layoutConstraint.percentReference.SetWidth(rootWidth); in GetLayoutConstraint() 1949 layoutConstraint.maxSize.SetWidth(rootWidth); in GetLayoutConstraint()
|
/foundation/arkui/ace_engine/adapter/preview/inspector/ |
H A D | js_inspector_manager.cpp | 121 double rootWidth = context->GetRootWidth(); in AssembleJSONTree() local 122 deviceRect_ = Rect(0, 0, rootWidth * scale, rootHeight * scale); in AssembleJSONTree() 123 jsonNode->Put(INSPECTOR_WIDTH, std::to_string(rootWidth * scale).c_str()); in AssembleJSONTree()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_manager.cpp | 79 auto rootWidth = pipeline->GetRootWidth(); in SetClickPosition() local 80 if (GreatOrEqual(position.GetX(), rootWidth) || LessNotEqual(position.GetX(), 0.0f)) { in SetClickPosition()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/ |
H A D | dialog_layout_algorithm.cpp | 477 auto rootWidth = PipelineContext::GetCurrentRootWidth(); in ProcessMaskRect() local 479 RectF rect = RectF(offset.GetX().ConvertToPxWithSize(rootWidth), offset.GetY().ConvertToPxWithSize(rootHeight), in ProcessMaskRect() 480 width.ConvertToPxWithSize(rootWidth), height.ConvertToPxWithSize(rootHeight)); in ProcessMaskRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_presentation_pattern.cpp | 1558 auto rootWidth = PipelineContext::GetCurrentRootWidth(); in GetSheetTypeWithAuto() local 1579 if (LessNotEqual(rootHeight, rootWidth)) { in GetSheetTypeWithAuto() 1590 auto rootWidth = PipelineContext::GetCurrentRootWidth(); in GetSheetTypeWithAuto() local 1595 rootWidth = pipelineContext->GetDisplayWindowRectInfo().Width(); in GetSheetTypeWithAuto() 1597 if (GreatOrEqual(rootWidth, SHEET_PC_DEVICE_WIDTH_BREAKPOINT.ConvertToPx())) { in GetSheetTypeWithAuto() 1603 } else if (GreatOrEqual(rootWidth, SHEET_DEVICE_WIDTH_BREAKPOINT.ConvertToPx()) && in GetSheetTypeWithAuto() 1604 LessNotEqual(rootWidth, SHEET_PC_DEVICE_WIDTH_BREAKPOINT.ConvertToPx())) { in GetSheetTypeWithAuto()
|
H A D | overlay_manager.cpp | 6389 auto rootWidth = rootGeometryNode->GetFrameSize().Width(); in GetRootWidth() local 6390 return rootWidth; in GetRootWidth()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/ |
H A D | rs_render_thread_visitor.cpp | 485 const float rootWidth = property.GetFrameWidth() * property.GetScaleX(); in ProcessRootRenderNode() local 489 Gravity::RESIZE, RectF { 0.0f, 0.0f, bufferWidth, bufferHeight }, rootWidth, rootHeight, gravityMatrix); in ProcessRootRenderNode()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/list/ |
H A D | list_layout_test_ng.cpp | 989 * @tc.expected: List with is rootWidth in HWTEST_F() 991 const float rootWidth = MockPipelineContext::GetCurrent()->rootWidth_; in HWTEST_F() local 996 EXPECT_EQ(frameNode_->GetGeometryNode()->GetFrameSize().Width(), rootWidth); in HWTEST_F() 1000 * @tc.expected: List with is rootWidth in HWTEST_F() 1006 EXPECT_EQ(frameNode_->GetGeometryNode()->GetFrameSize().Width(), rootWidth); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_uni_render_visitor.cpp | 2915 const float rootWidth = property.GetFrameWidth() * property.GetScaleX();
in PrepareRootRenderNode() local 2920 rootWidth, rootHeight, gravityMatrix);
in PrepareRootRenderNode()
|