Home
last modified time | relevance | path

Searched refs:rootWidth (Results 1 - 25 of 25) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components/plugin/
H A Drender_plugin.cpp23 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 Dplugin_sub_container.cpp120 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 Drender_stage.cpp116 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 Dfull_screen_manager.cpp53 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 Dsub_container.cpp93 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 Dmock_pipeline_context.h35 void SetRootSize(double rootWidth, double rootHeight);
H A Dmock_pipeline_context.cpp167 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 Dvideo_full_screen_pattern.cpp65 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 Drender_tool_bar_item.cpp96 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 Dtoast_pattern.cpp170 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 Dscroll_bar.cpp228 auto rootWidth = context->GetRootWidth(); in GetRootSize() local
229 return Size(rootWidth, rootHeight); in GetRootSize()
/foundation/arkui/ace_engine/frameworks/component_test/core/
H A Dcomponent_test_tester_impl.cpp224 auto rootWidth = context->GetRootWidth(); in FlingImpl() local
225 NG::RectF screenRect(0.0, 0.0, rootWidth * scale, rootHeight * scale); in FlingImpl()
H A Daction.cpp219 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 Dcomponent_test_component_impl.cpp624 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 Dinspector.cpp167 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 Dinspector.cpp398 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 Dframe_node.cpp1945 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 Djs_inspector_manager.cpp121 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 Dtext_field_manager.cpp79 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 Ddialog_layout_algorithm.cpp477 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 Dsheet_presentation_pattern.cpp1558 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 Doverlay_manager.cpp6389 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 Drs_render_thread_visitor.cpp485 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 Dlist_layout_test_ng.cpp989 * @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 Drs_uni_render_visitor.cpp2915 const float rootWidth = property.GetFrameWidth() * property.GetScaleX(); in PrepareRootRenderNode() local
2920 rootWidth, rootHeight, gravityMatrix); in PrepareRootRenderNode()

Completed in 52 milliseconds