/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/preview/ |
H A D | menu_preview_layout_algorithm.cpp | 90 auto maxHeight = menuWindowRect.Height(); in UpdateLayoutConstraintForPreview() local 92 …ize = GreatNotEqual(targetSize.Width(), maxWidth) || GreatNotEqual(targetSize.Height(), maxHeight); in UpdateLayoutConstraintForPreview() 95 auto heightDelta = targetSize.Height() - maxHeight; in UpdateLayoutConstraintForPreview() 97 maxHeight = targetSize.Height() * (maxWidth / targetSize.Width()); in UpdateLayoutConstraintForPreview() 99 maxWidth = targetSize.Width() * (maxHeight / targetSize.Height()); in UpdateLayoutConstraintForPreview() 103 layoutConstraint.maxSize.SetHeight(maxHeight); in UpdateLayoutConstraintForPreview() 105 layoutConstraint.selfIdealSize.SetHeight(maxHeight); in UpdateLayoutConstraintForPreview()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_presentation_layout_algorithm.cpp | 185 maxHeight = SheetInSplitWindow() in Measure() 186 … ? maxHeight : std::max(maxHeight, static_cast<float>(SHEET_BIG_WINDOW_MIN_HEIGHT.ConvertToPx())); in Measure() 191 } else if (GreatOrEqual(sheetHeight_, maxHeight)) { in Measure() 192 sheetHeight_ = maxHeight; in Measure() 470 maxHeight = SheetInSplitWindow() in GetHeightBySheetStyle() 471 … ? maxHeight : std::max(maxHeight, static_cast<float>(SHEET_BIG_WINDOW_MIN_HEIGHT.ConvertToPx())); in GetHeightBySheetStyle() 476 } else if (GreatOrEqual(height, maxHeight)) { in GetHeightBySheetStyle() 477 height = maxHeight; in GetHeightBySheetStyle() 495 auto maxHeight = sheetHeight_; in CreateSheetChildConstraint() local 498 maxHeight -= SHEET_OPERATION_AREA_HEIGHT.ConvertToPx(); in CreateSheetChildConstraint() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-size.md | 173 …nWidth: 0,<br/>maxWidth: Infinity,<br/>minHeight: 0,<br/>maxHeight: Infinity<b… 175 **constraintSize(minWidth/maxWidth/minHeight/maxHeight)取值对width/height影响** 179 | \ | width=MAX(minWidth,MIN(maxWidth,width))<br/>height=MAX(minHeight,MIN(maxHeight,height)) | 180 | maxWidth、maxHeight | width=MAX(minWidth,width)<br/>height=MAX(minHeight,height) | 181 | minWidth、minHeight | width=MIN(maxWidth,width)<br/>height=MIN(maxHeight,height) | 182 …nWidth,maxWidth)。<br/>若minHeight<maxHeight,组件自身布局逻辑生效,height取值范围为[minHeight,maxHeight];否则,height=M… 183 | width与maxWidth、height与maxHeight | width=minWidth<br/>height=minHeight | 184 …idth、height与minHeight | 组件自身布局逻辑生效,width取值约束为不大于maxWidth。<br/>组件自身布局逻辑生效,height取值约束为不大于maxHeight。 | 185 | minWidth与maxWidth、minHeight与maxHeight | width以所设值为基础,根据其他布局属性发生可能的拉伸或者压缩。<br/>height以所设值为基础,根据其他布… 187 | height与minHeight与maxHeight | 使用父容器传递的布局限制进行布局。 | [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/ |
H A D | session_utils.h | 47 int32_t& minWidth, int32_t& maxWidth, int32_t& minHeight, int32_t& maxHeight) in CalcFloatWindowRectLimits() argument 52 …maxHeight = (limits.maxHeight_ == 0 || limits.maxHeight_ >= INT32_MAX) ? INT32_MAX : limits.maxHei… in CalcFloatWindowRectLimits() 56 maxHeight = std::min(maxHeight, static_cast<int32_t>(maxFloatingWindowSize * vpr)); in CalcFloatWindowRectLimits()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/focus_animation/ |
H A D | rosen_render_focus_animation.cpp | 89 int32_t maxHeight = sqrt(pow(width_ + MULTIPLE_FACTOR * padding, MULTIPLE_FACTOR) + in PaintGlow() local 132 …SkRect::MakeXYWH(0 - (maxHeight / MULTIPLE_FACTOR + padding), 0 - (maxHeight / MULTIPLE_FACTOR + p… in PaintGlow() 133 maxHeight + MULTIPLE_FACTOR * padding, maxHeight + MULTIPLE_FACTOR * padding), in PaintGlow() 139 int32_t maxHeight = sqrt(pow(width_ + MULTIPLE_FACTOR * padding, MULTIPLE_FACTOR) + in PaintGlow() local 181 …canvas->DrawRect(RSRect(0 - (maxHeight / MULTIPLE_FACTOR + padding), 0 - (maxHeight / MULTIPLE_FAC… in PaintGlow() 182 (maxHeight + MULTIPLE_FACTOR * padding) - (maxHeight / MULTIPLE_FACTOR + padding), in PaintGlow() 183 (maxHeight + MULTIPLE_FACTOR * padding) - (maxHeight / MULTIPLE_FACTOR + padding))); in PaintGlow()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/qrcode/ |
H A D | qrcode_modifier.cpp | 96 int32_t maxHeight = 0; in CreateBitMap() local 102 maxHeight = j > maxHeight ? j : maxHeight; in CreateBitMap() 110 for (int32_t j = 0; j <= maxHeight; j++) { in CreateBitMap()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | shape_container_layout_algorithm.cpp | 76 float maxHeight = 0.0f; in GetChildrenSize() local 108 if (maxHeight < childSize.Height() + offsetY) { in GetChildrenSize() 109 maxHeight = childSize.Height() + offsetY; in GetChildrenSize() 112 childFrame.SetSizeT(SizeF { maxWidth, maxHeight }); in GetChildrenSize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | extension_handler.cpp | 25 auto maxHeight = floor(layoutConstraintF.maxSize.Height()); in Create() local 33 maxHeight = floor(layoutConstraintF.selfIdealSize.Height().value()); in Create() 34 minHeight = maxHeight; in Create() 38 return { maxWidth, minWidth, maxHeight, minHeight, parentIdealWidth, parentIdealHeight }; in Create()
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/codec/ |
H A D | _codec_image_capability_v10.md | 27 | unsigned int [maxHeight](#maxheight) | 最大高度 | 62 ### maxHeight subsection 65 unsigned int CodecImageCapability::maxHeight
|
H A D | _codec_image_capability_v20.md | 27 | unsigned int [maxHeight](#maxheight) | 最大高度 | 62 ### maxHeight subsection 65 unsigned int CodecImageCapability::maxHeight
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | box_layout_algorithm.cpp | 118 float maxHeight = 0.0f; in PerformMeasureSelfWithChildList() local 131 if (maxHeight < childSize.Height()) { in PerformMeasureSelfWithChildList() 132 maxHeight = childSize.Height(); in PerformMeasureSelfWithChildList() 134 childFrame.SetSizeT(SizeF { maxWidth, maxHeight }); in PerformMeasureSelfWithChildList()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/ |
H A D | water_flow_component.cpp | 121 void WaterFlowComponent::SetMaxHeight(const Dimension& maxHeight) in SetMaxHeight() argument 123 if (LessNotEqual(maxHeight.Value(), 0.0)) { in SetMaxHeight() 128 maxHeight_ = maxHeight; in SetMaxHeight()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/badge/ |
H A D | render_badge.cpp | 140 double maxHeight = minSize.Height(); in PerformLayout() local 146 maxHeight = std::max(maxHeight, child->GetLayoutSize().Height() + paddingSize.Height()); in PerformLayout() 152 badgeSize_ = Size(maxWidth, maxHeight); in PerformLayout()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | button_layout_algorithm.cpp | 86 auto maxHeight = selfLayoutConstraint->maxSize.Height(); in HandleChildLayoutConstraint() local 88 layoutConstraint.maxSize.SetHeight(maxHeight); in HandleChildLayoutConstraint() 92 layoutConstraint.maxSize.SetHeight(maxHeight > defaultHeight ? defaultHeight : maxHeight); in HandleChildLayoutConstraint() 229 auto maxHeight = layoutContraint->maxSize.Height(); in PerformMeasureSelf() local 232 actualHeight = std::min(actualHeight, maxHeight); in PerformMeasureSelf() 234 …frameSize.SetHeight(maxHeight > defaultHeight ? std::max(defaultHeight, actualHeight) : maxHeight); in PerformMeasureSelf()
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_font_bitmap.cpp | 364 uint16_t maxHeight = GetHeight(fontId, fontSize); in GetLineMaxHeight() local 366 return maxHeight; in GetLineMaxHeight() 376 maxHeight = tempHeight > maxHeight ? tempHeight : maxHeight; in GetLineMaxHeight() 384 return maxHeight; in GetLineMaxHeight()
|
H A D | ui_font_adaptor.cpp | 29 int16_t& maxHeight, in GetNextLineAndWidth() argument 38 maxHeight, letterIndex, in GetNextLineAndWidth()
|
H A D | ui_font_vector.cpp | 1014 uint16_t maxHeight = GetHeight(fontId, fontSize); in GetLineMaxHeight() local 1023 maxHeight = tempHeight > maxHeight ? tempHeight : maxHeight; in GetLineMaxHeight() 1030 return GetMaxSubLineHeight(textNum, loopNum, maxHeight, emojiNum); in GetLineMaxHeight() 1033 uint16_t UIFontVector::GetMaxSubLineHeight(uint16_t textNum, uint16_t loopNum, uint16_t maxHeight, … in GetMaxSubLineHeight() argument 1040 if (height > maxHeight) { in GetMaxSubLineHeight() 1041 maxHeight = height; in GetMaxSubLineHeight() 1043 return maxHeight; in GetMaxSubLineHeight() 1059 maxHeight = tmpHeight > maxHeight ? tmpHeight : maxHeight; in GetMaxSubLineHeight() 1062 return maxHeight; in GetMaxSubLineHeight()
|
H A D | ui_line_break.h | 119 int16_t& maxHeight, 134 int16_t GetLetterWidth(uint32_t unicode, uint16_t& letterIndex, int16_t& maxHeight,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/navigator/ |
H A D | render_navigator.cpp | 113 double maxHeight = maxSize.Height(); in PerformLayout() local 115 maxHeight = child->GetLayoutSize().Height(); in PerformLayout() 120 SetLayoutSize(Size(maxWidth, maxHeight)); in PerformLayout()
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/dialog/source/ |
H A D | dialog.ets | 133 }).constraintSize({ maxHeight: '100%' }); 332 maxHeight: constraint.maxHeight 347 maxHeight: imageMaxHeight 528 }).constraintSize({ maxHeight: '100%' }); 611 maxHeight: constraint.maxHeight 619 maxHeight: Number(constraint.maxHeight) - height 747 }).constraintSize({ maxHeight: '100%' }); 806 }).constraintSize({ maxHeight: '100%' }); 955 maxHeight: constraint.maxHeight 969 maxHeight: Number(constraint.maxHeight) - height [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/patternlock/ |
H A D | patternlock_layout_algorithm.cpp | 35 …float maxHeight = std::max(contentConstraint.maxSize.Height(), contentConstraint.minSize.Height()); in MeasureContent() local 37 float selfIdealHeight = contentConstraint.selfIdealSize.Height().value_or(maxHeight); in MeasureContent()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-size.md | 173 … value:<br>{<br>minWidth: 0,<br>maxWidth: Infinity,<br>minHeight: 0,<br>maxHeight: Infinity<br>}<b… 175 **Impact of constraintSize(minWidth/maxWidth/minHeight/maxHeight) on width/height** 179 | \ | width=MAX(minWidth,MIN(maxWidth,width))<br>height=MAX(minHeight,MIN(maxHeight,height)) | 180 | maxWidth, maxHeight| width=MAX(minWidth,width)<br>height=MAX(minHeight,height) | 181 | minWidth, minHeight| width=MIN(maxWidth,width)<br>height=MIN(maxHeight,height) | 182 …maxHeight, the layout logic of the component takes effect, and the value range of **height** is [m… 183 | width and maxWidth; height and maxHeight| width = minWidth<br>height = minHeight | 184 … component takes effect, and the value of **height** cannot be greater than that of **maxHeight**.| 185 | minWidth and maxWidth; minHeight and maxHeight| The width of the component is initially determine… 187 | height, minHeight, and maxHeight| The layout restrictions passed by the parent container are used… [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkWaterFlow.ts | 27 this.value.maxWidth, this.value.minHeight, this.value.maxHeight); 34 !isBaseOrResourceEqual(this.stageValue.maxHeight, this.value.maxHeight); 319 arkValue.maxHeight = value.maxHeight;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/ |
H A D | render_navigation_container.cpp | 31 double maxHeight = layoutParam.GetMaxSize().Height(); in PerformLayout() local 33 layoutParam.SetMaxSize(Size(maxWidth, maxHeight - usedHeight)); in PerformLayout()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | render_box_base.cpp | 324 double maxHeight = ConvertVerticalDimensionToPx(maxHeight_, true); in ConvertConstraintsToPx() local 326 LessOrEqual(maxHeight, 0.0)) { in ConvertConstraintsToPx() 332 if (GreatNotEqual(minHeight, 0.0) && NearZero(maxHeight)) { in ConvertConstraintsToPx() 333 maxHeight = Size::INFINITE_SIZE; in ConvertConstraintsToPx() 338 if (LessNotEqual(maxHeight, minHeight)) { in ConvertConstraintsToPx() 339 maxHeight = minHeight; in ConvertConstraintsToPx() 345 Size maxSize = Size(maxWidth, maxHeight); in ConvertConstraintsToPx() 471 auto maxHeight = selfLayout.GetMaxSize().Height(); in AdjustSizeByAspectRatio() local 488 if (selfMaxHeight_ > maxHeight) { in AdjustSizeByAspectRatio() 489 selfMaxHeight_ = maxHeight; in AdjustSizeByAspectRatio() [all …]
|