/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/preview/ |
H A D | menu_preview_layout_algorithm.cpp | 81 auto maxHeight = menuWindowRect.Height(); in UpdateLayoutConstraintForPreview() local 83 auto isOversize = GreatNotEqual(targetSize.Width(), maxWidth) || GreatNotEqual(targetSize.Height(), maxHeight); in UpdateLayoutConstraintForPreview() 86 auto heightDelta = targetSize.Height() - maxHeight; in UpdateLayoutConstraintForPreview() 88 maxHeight = targetSize.Height() * (maxWidth / targetSize.Width()); in UpdateLayoutConstraintForPreview() 90 maxWidth = targetSize.Width() * (maxHeight / targetSize.Height()); in UpdateLayoutConstraintForPreview() 94 layoutConstraint.maxSize.SetHeight(maxHeight); in UpdateLayoutConstraintForPreview() 96 layoutConstraint.selfIdealSize.SetHeight(maxHeight); in UpdateLayoutConstraintForPreview()
|
/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() 52 maxHeight = (limits.maxHeight_ == 0 || limits.maxHeight_ >= INT32_MAX) ? INT32_MAX : limits.maxHeight_; in CalcFloatWindowRectLimits() 56 maxHeight = std::min(maxHeight, static_cast<int32_t>(maxFloatingWindowSize * vpr)); in CalcFloatWindowRectLimits() 46 CalcFloatWindowRectLimits(const WindowLimits& limits, uint32_t maxFloatingWindowSize, float vpr, int32_t& minWidth, int32_t& maxWidth, int32_t& minHeight, int32_t& maxHeight) CalcFloatWindowRectLimits() argument
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_presentation_layout_algorithm.cpp | 125 auto maxHeight = std::min(sheetMaxHeight, sheetMaxWidth_) * POPUP_LARGE_SIZE; in Measure() local 126 maxHeight = SheetInSplitWindow() in Measure() 127 ? maxHeight : std::max(maxHeight, static_cast<float>(SHEET_BIG_WINDOW_MIN_HEIGHT.ConvertToPx())); in Measure() 132 } else if (GreatOrEqual(sheetHeight_, maxHeight)) { in Measure() 133 sheetHeight_ = maxHeight; in Measure() 404 auto maxHeight = std::min(sheetMaxHeight, sheetMaxWidth_) * POPUP_LARGE_SIZE; in GetHeightBySheetStyle() local 406 height = sheetStyle_.height->ConvertToPxWithSize(maxHeight); in GetHeightBySheetStyle() 412 maxHeight = SheetInSplitWindow() in GetHeightBySheetStyle() 413 ? maxHeight in GetHeightBySheetStyle() 437 auto maxHeight = sheetHeight_; CreateSheetChildConstraint() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/qrcode/ |
H A D | qrcode_modifier.cpp | 85 int32_t maxHeight = 0; in CreateBitMap() local 91 maxHeight = j > maxHeight ? j : maxHeight; in CreateBitMap() 99 for (int32_t j = 0; j <= maxHeight; j++) { in CreateBitMap()
|
/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()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | shape_container_layout_algorithm.cpp | 73 float maxHeight = 0.0f; in GetChildrenSize() local 105 if (maxHeight < childSize.Height() + offsetY) { in GetChildrenSize() 106 maxHeight = childSize.Height() + offsetY; in GetChildrenSize() 109 childFrame.SetSizeT(SizeF { maxWidth, maxHeight }); in GetChildrenSize()
|
/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() 124 LOGW("Invalid maxHeight, use 0.0px"); in SetMaxHeight() 128 maxHeight_ = maxHeight; in SetMaxHeight()
|
/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_font_adaptor.cpp | 29 int16_t& maxHeight, in GetNextLineAndWidth() 38 maxHeight, letterIndex, in GetNextLineAndWidth() 24 GetNextLineAndWidth(const char* txt, uint16_t fontId, uint8_t fontSize, int16_t letterSpace, int16_t& maxWidth, int16_t& maxHeight, uint16_t& letterIndex, SpannableString* spannableString, bool allBreak, uint16_t len, bool eliminateTrailingSpaces) GetNextLineAndWidth() argument
|
H A D | ui_font_adaptor.h | 30 int16_t& maxHeight,
|
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_line_break.h | 119 int16_t& maxHeight,
134 int16_t GetLetterWidth(uint32_t unicode, uint16_t& letterIndex, int16_t& maxHeight,
|
H A D | ui_font_vector.cpp | 1015 uint16_t maxHeight = GetHeight(fontId, fontSize); in GetLineMaxHeight() local 1024 maxHeight = tempHeight > maxHeight ? tempHeight : maxHeight; in GetLineMaxHeight() 1031 return GetMaxSubLineHeight(textNum, loopNum, maxHeight, emojiNum); in GetLineMaxHeight() 1034 uint16_t UIFontVector::GetMaxSubLineHeight(uint16_t textNum, uint16_t loopNum, uint16_t maxHeight, uint16_t emojiNum) in GetMaxSubLineHeight() argument 1041 if (height > maxHeight) { in GetMaxSubLineHeight() 1042 maxHeight = height; in GetMaxSubLineHeight() 1044 return maxHeight; in GetMaxSubLineHeight() 1060 maxHeight in GetMaxSubLineHeight() [all...] |
H A D | ui_line_break.cpp | 120 int16_t& maxHeight,
in GetNextLineAndWidth() 158 if (height > maxHeight) {
in GetNextLineAndWidth() 159 maxHeight = height;
in GetNextLineAndWidth() 114 GetNextLineAndWidth(const char* text, uint16_t fontId, uint8_t fontSize, int16_t space, bool allBreak, int16_t& maxWidth, int16_t& maxHeight, uint16_t& letterIndex, SpannableString* spannableString, uint16_t len, bool eliminateTrailingSpaces) GetNextLineAndWidth() argument
|
/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()
|
/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 + padding), 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_FACTOR + padding), in PaintGlow() 182 (maxHeight + MULTIPLE_FACTOR * padding) - (maxHeight / MULTIPLE_FACTO in PaintGlow() [all...] |
/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()
|
/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()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | button_layout_algorithm.cpp | 99 auto maxHeight = selfLayoutConstraint->maxSize.Height(); in HandleChildLayoutConstraint() local 101 layoutConstraint.maxSize.SetHeight(maxHeight); in HandleChildLayoutConstraint() 105 layoutConstraint.maxSize.SetHeight(maxHeight > defaultHeight ? defaultHeight : maxHeight); in HandleChildLayoutConstraint() 260 auto maxHeight = layoutContraint->maxSize.Height(); in PerformMeasureSelf() local 263 actualHeight = std::min(actualHeight, maxHeight); in PerformMeasureSelf() 265 frameSize.SetHeight(maxHeight > defaultHeight ? std::max(defaultHeight, actualHeight) : maxHeight); in PerformMeasureSelf() 414 auto maxHeight = layoutContraint->maxSize.Height(); in NeedAgingMeasure() local 417 actualHeight = std::min(actualHeight, maxHeight); in NeedAgingMeasure() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | box_layout_algorithm.cpp | 106 float maxHeight = 0.0f; in PerformMeasureSelfWithChildList() local 119 if (maxHeight < childSize.Height()) { in PerformMeasureSelfWithChildList() 120 maxHeight = childSize.Height(); in PerformMeasureSelfWithChildList() 122 childFrame.SetSizeT(SizeF { maxWidth, maxHeight }); in PerformMeasureSelfWithChildList()
|
/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()
|
/foundation/arkui/ace_engine/frameworks/core/components/flex/ |
H A D | flex_item_component.h | 157 void SetMaxHeight(const Dimension& maxHeight) in SetMaxHeight() argument 159 maxHeight_ = maxHeight; in SetMaxHeight()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | water_flow_model_impl.cpp | 86 void WaterFlowModelImpl::SetItemMaxHeight(const Dimension& maxHeight) in SetItemMaxHeight() argument 88 JSViewSetProperty(&V2::WaterFlowComponent::SetMaxHeight, maxHeight); in SetItemMaxHeight()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | extension_custom_node.cpp | 24 param.maxSize = SizeF(layoutConstraint.maxWidth, layoutConstraint.maxHeight); in OnMeasure()
|
/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | render_box_base.cpp | 324 double maxHeight = ConvertVerticalDimensionToPx(maxHeight_, true); 326 LessOrEqual(maxHeight, 0.0)) { 332 if (GreatNotEqual(minHeight, 0.0) && NearZero(maxHeight)) { 333 maxHeight = Size::INFINITE_SIZE; 338 if (LessNotEqual(maxHeight, minHeight)) { 339 maxHeight = minHeight; 345 Size maxSize = Size(maxWidth, maxHeight); 471 auto maxHeight = selfLayout.GetMaxSize().Height(); 488 if (selfMaxHeight_ > maxHeight) { 489 selfMaxHeight_ = maxHeight; [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/split_container/ |
H A D | render_split_container.cpp | 169 double maxHeight = GetLayoutParam().GetMaxSize().Height(); in PerformLayout() local 171 layoutHeight_ = LessNotEqual(layoutHeight_, maxHeight) ? layoutHeight_ : maxHeight; in PerformLayout()
|