/foundation/arkui/ace_engine/frameworks/core/components/semi_modal/ |
H A D | render_semi_modal.cpp | 185 auto contentHeight = GetScrollContentHeight(); in UpdateMinBlankHeight() local 187 contentHeight += dragBar_->GetLayoutSize().Height(); in UpdateMinBlankHeight() 189 contentHeight += navigationHeight_; in UpdateMinBlankHeight() 190 minBlankHeight_ = GetLayoutParam().GetMaxSize().Height() - contentHeight; in UpdateMinBlankHeight() 201 auto contentHeight = GetScrollContentHeight(); in UpdateDefaultBlankHeight() local 203 contentHeight += dragBar_->GetLayoutSize().Height(); in UpdateDefaultBlankHeight() 205 contentHeight += navigationHeight_; in UpdateDefaultBlankHeight() 209 maxSize.Height() - std::min(contentHeight, GetLayoutParam().GetMaxSize().Height() * CONTENT_DEFAULT_RATIO); in UpdateDefaultBlankHeight() 211 defaultBlankHeight_ = maxSize.Height() - std::min(contentHeight, inputHeight_); in UpdateDefaultBlankHeight() 288 auto contentHeight in FirstLayout() local 539 auto contentHeight = GetScrollContentHeight(); HandleDragEnd() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/rich_text/ |
H A D | rich_text_component.cpp | 50 [renderRichText, weak = WeakClaim(this)](int32_t width, int32_t height, int32_t contentHeight) { in CreateRenderNode() 64 [weakRender, width, height, contentHeight] { in CreateRenderNode() 67 renderRichText->UpdateLayoutParams(width, height, contentHeight); in CreateRenderNode()
|
H A D | render_rich_text.cpp | 166 void RenderRichText::UpdateLayoutParams(const int32_t width, const int32_t height, const int32_t contentHeight) in UpdateLayoutParams() argument 183 auto diff = contentHeight - height; in UpdateLayoutParams() 184 LOGI("richtext update layout h:%{public}d c-h:%{public}d", height, contentHeight); in UpdateLayoutParams()
|
H A D | render_rich_text.h | 40 void UpdateLayoutParams(const int32_t width, const int32_t height, const int32_t contentHeight);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/ |
H A D | indexer_layout_algorithm.cpp | 57 auto contentHeight = childCount * itemSize_; in Measure() local 61 contentHeight = GreatNotEqual(contentHeight, maxContentHeight_) ? maxContentHeight_ : contentHeight; in Measure() 62 itemHeight_ = GreatNotEqual(contentHeight, 0.0f) && childCount > 0 ? contentHeight / childCount : 0.0f; in Measure() 65 : std::clamp(contentHeight + verticalPadding, 0.0f, layoutConstraint.maxSize.Height()); in Measure()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_area/ |
H A D | text_area_layout_algorithm.cpp | 101 float contentHeight = 0.0f; in Measure() local 105 contentHeight = contentSize.Height(); in Measure() 111 contentHeight += counterSize.Height(); in Measure() 118 frameSize.SetHeight(contentHeight + pattern->GetVerticalPaddingAndBorderSum() + PARAGRAPH_SAVE_BOUNDARY); in Measure() 123 ConstraintHeight(layoutWrapper, frameSize, contentHeight); in Measure() 129 float contentHeight) in ConstraintHeight() 143 frameSize.SetHeight(contentHeight + pattern->GetVerticalPaddingAndBorderSum()); in ConstraintHeight() 128 ConstraintHeight(LayoutWrapper* layoutWrapper, OptionalSizeF& frameSize, float contentHeight) ConstraintHeight() argument
|
H A D | text_area_layout_algorithm.h | 30 float contentHeight);
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | image_analyzer_manager.cpp | 43 analyzerUIConfig_.contentHeight = pixelMap->GetHeight(); in CreateAnalyzerOverlay() 93 analyzerUIConfig_.contentHeight = info.contentHeight; in CreateMovingPhotoAnalyzerOverlay() 151 analyzerUIConfig_.contentHeight = pixelMap->GetHeight(); in UpdateAnalyzerOverlay() 183 analyzerUIConfig_.contentHeight = info.contentHeight; in UpdateMovingPhotoAnalyzerOverlay() 312 analyzerUIConfig_.contentHeight != frameSize.Height() - paddingHeight; in UpdateAnalyzerUIConfig() 315 analyzerUIConfig_.contentHeight = frameSize.Height()- paddingHeight; in UpdateAnalyzerUIConfig() 347 analyzerUIConfig_.contentHeight != info.height || in UpdateVideoConfig() 408 analyzerUIConfig_.contentHeight in UpdatePressOverlay() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/image/ |
H A D | image_event.h | 28 int32_t loadingStatus = 1, double contentWidth = 0.0, double contentHeight = 0.0, double contentOffsetX = 0.0, in LoadImageSuccessEvent() 31 contentWidth_(contentWidth), contentHeight_(contentHeight), contentOffsetX_(contentOffsetX), in LoadImageSuccessEvent()
|
/foundation/arkui/ace_engine/interfaces/inner_api/ace/ai/ |
H A D | image_analyzer.h | 98 float contentHeight = 0.0f; member 118 contentHeight = info.height; in UpdateFromInfo()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | multi_menu_layout_algorithm.cpp | 177 float contentHeight = 0.0f; in UpdateSelfSize() local 182 contentHeight += childSize.Height(); in UpdateSelfSize() 184 layoutWrapper->GetGeometryNode()->SetContentSize(SizeF(contentWidth, contentHeight)); in UpdateSelfSize() 197 auto idealHeight = GreatNotEqual(userHeight_, 0.0f) ? userHeight_ : contentHeight; in UpdateSelfSize()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_layout_algorithm.cpp | 108 auto contentHeight = defaultCaretHeight; in MeasureEmptyContentSize() local 111 contentHeight = presetParagraph->GetHeight(); in MeasureEmptyContentSize() 113 return SizeF(width, static_cast<float>(contentHeight)); in MeasureEmptyContentSize() 143 auto contentHeight = std::min(res.Height(), maxHeight); in MeasureContent() local 144 return SizeF(res.Width(), contentHeight); in MeasureContent()
|
/foundation/window/window_manager/wm/src/ |
H A D | picture_in_picture_controller.cpp | 602 uint32_t contentHeight = 0; in UpdateWinRectByComponent() local 603 pipOption_->GetContentSize(contentWidth, contentHeight); in UpdateWinRectByComponent() 604 if (contentWidth == 0 || contentHeight == 0) { in UpdateWinRectByComponent() 606 contentHeight = DEFAULT_ASPECT_RATIO[1]; in UpdateWinRectByComponent() 611 windowRect_.height_ = contentHeight; in UpdateWinRectByComponent() 628 uint32_t contentHeight = 0; in UpdateWinRectByComponent() local 629 pipOption_->GetContentSize(contentWidth, contentHeight); in UpdateWinRectByComponent() 631 windowRect_.height_ = contentHeight; in UpdateWinRectByComponent()
|
/foundation/arkui/ace_engine/frameworks/core/common/ai/ |
H A D | image_analyzer_manager.h | 32 float contentHeight = 0.0f; member
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll/ |
H A D | scroll_inner_layout_test_ng.cpp | 108 const float contentHeight = SCROLL_HEIGHT - 10.f; in HWTEST_F() local 109 ViewAbstract::SetHeight(AceType::RawPtr(frameNode_), CalcLength(contentHeight)); in HWTEST_F() 111 float ratio = contentHeight / CONTENT_MAIN_SIZE; in HWTEST_F() 112 float activeBarHeight = contentHeight * ratio; in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_input/ |
H A D | text_input_layout_algorithm.cpp | 92 float contentHeight = 0.0f; in Measure() local 96 contentHeight = contentSize.Height(); in Measure() 122 auto actualHeight = contentHeight + pattern->GetVerticalPaddingAndBorderSum(); in Measure()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | image_painter.cpp | 209 float contentHeight = contentRect.Height(); in DrawImageWithRepeat() local 219 static_cast<uint32_t>((ceil((contentHeight - config.dstRect_.GetY()) / singleImageHeight))) - 1, in DrawImageWithRepeat() 225 static_cast<float>(offset.GetY() + contentHeight)); in DrawImageWithRepeat()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_layout_algorithm.cpp | 184 auto contentHeight = GreatNotEqual(paragraph_->GetLongestLine(), 0.0) in InlineMeasureContent() local 188 return SizeF(contentWidth, std::min(inlineIdealHeight, contentHeight)); in InlineMeasureContent() 325 auto contentHeight = std::min(contentConstraint.maxSize.Height(), height); in PlaceHolderMeasureContent() local 329 return SizeF(contentWidth, contentHeight); in PlaceHolderMeasureContent() 354 auto contentHeight = std::min(contentConstraint.maxSize.Height() - counterNodeHeight, height); in TextAreaMeasureContent() local 357 return SizeF(contentWidth, contentHeight); in TextAreaMeasureContent() 367 float contentHeight = CalculateContentHeight(contentConstraint); in TextInputMeasureContent() local 369 return SizeF(contentWidth, contentHeight); in TextInputMeasureContent()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navrouter/ |
H A D | navdestination_layout_algorithm.cpp | 182 float contentHeight = size.Height() - titleBarAndToolBarHeight; in MeasureContentChild() local 188 constraint.selfIdealSize = OptionalSizeF(size.Width(), contentHeight); in MeasureContentChild()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | nav_bar_layout_algorithm.cpp | 229 float contentHeight = navigationSize.Height() - titleBarHeight - toolBarHeight - toolBarDividerHeight; in MeasureContentChild() local 235 constraint.selfIdealSize = OptionalSizeF(navigationSize.Width(), contentHeight); in MeasureContentChild()
|
/foundation/arkui/ace_engine/frameworks/core/components/rich_text/resource/ |
H A D | rich_text_delegate.cpp | 54 constexpr char NTC_PARAM_CONTENT_HEIGHT[] = "contentHeight"; 405 int32_t contentHeight = GetIntParam(param, NTC_PARAM_CONTENT_HEIGHT); in OnGotLayoutParam() local 408 webviewLayoutCallback_(layoutWidth, layoutHeight, contentHeight); in OnGotLayoutParam()
|
/foundation/arkui/ace_engine/frameworks/core/components/panel/ |
H A D | render_sliding_panel.cpp | 275 auto contentHeight = maxSize.Height() - blankHeight_; in InnerLayout() local 277 innerLayout.SetMaxSize(Size(maxWidth, contentHeight)); in InnerLayout()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_pattern.cpp | 1582 float contentHeight = info.lastMainSize_ - info.contentEndPadding_; 1587 if (GetAlwaysEnabled() && info.HeightSumSmaller(contentHeight, mainGap)) { 1588 // overScroll with contentHeight < viewport 1597 return contentHeight - heightInView; 1599 float disToBot = gridLayoutInfo_.GetDistanceToBottom(contentHeight, heightInView, mainGap); 1658 float contentHeight = std::max(GetMainContentSize(), info.totalHeightOfItemsInView_); 1660 info.lastMainSize_ - info.contentEndPadding_, contentHeight, GetMainGap());
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/ |
H A D | dot_indicator_paint_method.cpp | 291 auto contentHeight = indicatorPadding + itemHeight + indicatorPadding; in CalculateNormalMargin() local 293 contentHeight = indicatorPadding + selectedItemHeight + indicatorPadding; in CalculateNormalMargin() 296 float marginY = ((axis_ == Axis::HORIZONTAL ? frameSize.Height() : frameSize.Width()) - contentHeight) * 0.5; in CalculateNormalMargin()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/ |
H A D | refresh_pattern.cpp | 488 auto contentHeight = geometryNode->GetPaddingSize().Height(); in CalculatePullDownRatio() local 489 if (NearZero(contentHeight)) { in CalculatePullDownRatio() 499 auto gamma = scrollOffset_ / contentHeight; in CalculatePullDownRatio()
|