Home
last modified time | relevance | path

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

12345678910>>...31

/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/
H A Dsvg_utils.cpp23 if (LessOrEqual(viewBox.Width(), 0.0) || LessOrEqual(viewBox.Height(), 0.0)) { in CalculateSvgConentSize()
25 svgContentSize.SetHeight(LessNotEqual(svgSize.Height(), 0.0) ? svgContainerSize.Height() : svgSize.Height()); in CalculateSvgConentSize()
28 if (LessNotEqual(svgSize.Width(), 0.0) && LessNotEqual(svgSize.Height(), 0.0)) { in CalculateSvgConentSize()
30 svgContentSize.SetHeight(svgContainerSize.Height()); in CalculateSvgConentSize()
34 svgContentSize.SetWidth(viewBox.Width() / viewBox.Height() * svgSize.Height()); in CalculateSvgConentSize()
35 svgContentSize.SetHeight(svgSize.Height()); in CalculateSvgConentSize()
38 if (LessNotEqual(svgSize.Height(), 0. in CalculateSvgConentSize()
[all...]
H A Dsvg_fit_convertor.cpp45 if (NearZero(svgSize.Width()) || NearZero(svgSize.Height())) { in ApplyFit()
56 canvas.Scale(layoutSize.Width() / svgSize.Width(), layoutSize.Height() / svgSize.Height());
62 std::min(layoutSize.Width() / svgSize.Width(), layoutSize.Height() / svgSize.Height()), Alignment::CENTER);
68 std::max(layoutSize.Width() / svgSize.Width(), layoutSize.Height() / svgSize.Height()), Alignment::CENTER);
78 AdjustContentFit(canvas, layoutSize, svgSize, layoutSize.Height() / svgSize.Height(), Alignment::CENTER);
88 auto scale = std::min(layoutSize.Width() / svgSize.Width(), layoutSize.Height() / svgSiz
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/video/
H A Drender_texture.cpp72 controlsHeight_ += NormalizeToPx(Dimension(videoTheme->GetBtnSize().Height(), DimensionUnit::VP)); in InitControlsHeight()
94 textureSizeChangeEvent_(textureId_, drawSize_.Width(), drawSize_.Height()); in PerformLayout()
106 double height = GetLayoutParam().GetMinSize().Height(); in Measure()
110 height = std::max(height, item->GetLayoutSize().Height()); in Measure()
155 alignmentY_ = imagePosition_.GetSizeValueY() * (layoutSize.Height() - drawSize_.Height()) / PERCENT_TRANSLATE; in ApplyObjectPosition()
162 double layoutRatio = NearZero(layoutSize.Height()) ? 0.0 : layoutSize.Width() / layoutSize.Height(); in CalculateFitContain()
163 double sourceRatio = NearZero(sourceSize_.Height()) ? layoutRatio : sourceSize_.Width() / sourceSize_.Height(); in CalculateFitContain()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_svg.cpp59 if (LessOrEqual(viewBox.Width(), 0.0) || LessOrEqual(viewBox.Height(), 0.0)) { in AdjustContentAreaByViewBox()
61 LessNotEqual(svgSize.Height(), 0.0) ? viewPort.Height() : svgSize.Height()); in AdjustContentAreaByViewBox()
65 if (LessNotEqual(svgSize.Width(), 0.0) && LessNotEqual(svgSize.Height(), 0.0)) { in AdjustContentAreaByViewBox()
66 RSRect clipRect(0.0f, 0.0f, viewPort.Width(), viewPort.Height()); in AdjustContentAreaByViewBox()
68 auto scale = std::min(viewPort.Width() / viewBox.Width(), viewPort.Height() / viewBox.Height()); in AdjustContentAreaByViewBox()
70 auto translateY = (viewPort.Height() - viewBox.Height() * scal in AdjustContentAreaByViewBox()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/track/
H A Drosen_render_capsule_track.cpp38 double progressHeight = canvasSize.Height(); in DrawShape()
41 double rrectRadius = progressSize.Height() / 2.0; in DrawShape()
50 rRect.setRectXY(SkRect::MakeIWH(progressSize.Width(), progressSize.Height()), rrectRadius, rrectRadius); in DrawShape()
60 static_cast<RSScalar>(progressSize.Height())), in DrawShape()
83 double capsuleHeight = canvasSize.Height(); in DrawCapsuleProgressAnimation()
87 double radius = progressSize.Height() / 2.0; in DrawCapsuleProgressAnimation()
93 path.addArc({ offsetX, offsetY, progressSize.Height() + offsetX, progressSize.Height() + offsetY }, 90, 180); in DrawCapsuleProgressAnimation()
95 path.addArc({ progressWidth + offsetX, offsetY, progressSize.Height() - progressWidth + offsetX, in DrawCapsuleProgressAnimation()
96 progressSize.Height() in DrawCapsuleProgressAnimation()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/stack/
H A Drender_stack.cpp98 offset.GetY() + positionedItem->GetLayoutSize().Height() > GetLayoutSize().Height()) { in PerformLayout()
112 maxSize.SetHeight(viewPort_.Height()); in DetermineStackSize()
120 double height = GetLayoutParam().GetMinSize().Height(); in DetermineStackSize()
130 double constrainedHeight = std::clamp(item->GetLayoutSize().Height(), GetLayoutParam().GetMinSize().Height(), in DetermineStackSize()
131 GetLayoutParam().GetMaxSize().Height()); in DetermineStackSize()
136 maxY = std::max(maxY, item->GetLayoutSize().Height() + NormalizePercentToPx(item->GetTop(), true)); in DetermineStackSize()
143 double constrainedHeight = std::clamp(item->GetLayoutSize().Height(), in DetermineStackSize()
144 GetLayoutParam().GetMinSize().Height(), GetLayoutPara in DetermineStackSize()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddebug_boundary_painter.cpp40 frameMarginSize_.Height() - HALF_STROKE_WIDTH_OFFSET - marginOffset.GetY()); in PaintDebugBoundary()
51 auto verticalRectHeight = contentSize_.Height(); in PaintDebugMargin()
53 auto marginBottom = frameMarginSize_.Height() - contentSize_.Height() - marginTop; in PaintDebugMargin()
62 layoutRect = RSRect(startPointX, startPointY + frameMarginSize_.Height() - marginBottom, in PaintDebugMargin()
63 frameMarginSize_.Width() + startPointX, startPointY + frameMarginSize_.Height()); in PaintDebugMargin()
91 canvas.DrawLine(RSPoint(startPointX, startPointY + frameMarginSize_.Height() - HALF_STROKE_WIDTH_OFFSET), in PaintDebugCorner()
93 startPointX + BOUNDARY_CORNER_LENGTH, startPointY + frameMarginSize_.Height() - HALF_STROKE_WIDTH_OFFSET)); in PaintDebugCorner()
95 startPointY + frameMarginSize_.Height() - BOUNDARY_CORNER_LENGTH - HALF_STROKE_WIDTH_OFFSET), in PaintDebugCorner()
96 RSPoint(startPointX, startPointY + frameMarginSize_.Height() in PaintDebugCorner()
[all...]
H A Dimage_painter.cpp37 dstRect.SetSize(rawPicSize * (dstSize.Height() / rawPicSize.Height())); in ApplyContain()
45 srcRect.SetSize(dstSize * (rawPicSize.Height() / dstSize.Height())); in ApplyCover()
71 srcRect.SetSize(dstSize * (rawPicSize.Height() / dstSize.Height())); in ApplyFitHeight()
74 dstRect.SetSize(rawPicSize * (dstSize.Height() / rawPicSize.Height())); in ApplyFitHeight()
81 SizeF srcSize(std::min(dstSize.Width(), rawPicSize.Width()), std::min(dstSize.Height(), rawPicSize.Height())); in ApplyNone()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Ddebug_boundary_painter.cpp42 layoutSize.Width() - HALF_STROKE_WIDTH_OFFSET, layoutSize.Height() - HALF_STROKE_WIDTH_OFFSET); in PaintDebugBoundary()
55 layoutSize.Height() - HALF_STROKE_WIDTH_OFFSET + offset.GetY());
71 auto verticalRectHeight = layoutSize.Height() - margin.TopPx() - margin.BottomPx(); in PaintDebugMargin()
79 layoutRect = SkRect::MakeXYWH(startPointX, startPointY + layoutSize.Height() - margin.BottomPx(), in PaintDebugMargin()
98 auto verticalRectHeight = layoutSize.Height() - margin.TopPx() - margin.BottomPx(); in PaintDebugMargin()
106 layoutRect = RSRect(startPointX, startPointY + layoutSize.Height() - margin.BottomPx(), in PaintDebugMargin()
107 layoutSize.Width() + startPointX, startPointY + layoutSize.Height()); in PaintDebugMargin()
140 canvas->drawLine(startPointX, startPointY + layoutSize.Height() - HALF_STROKE_WIDTH_OFFSET, in PaintDebugCorner()
142 startPointY + layoutSize.Height() - HALF_STROKE_WIDTH_OFFSET, skpaint); in PaintDebugCorner()
144 startPointY + layoutSize.Height() in PaintDebugCorner()
[all...]
H A Drosen_scroll_fade_painter.cpp35 double baseGlowScale = size.Width() > size.Height() ? size.Height() / size.Width() : 1.0; in Paint()
37 double height = std::min(size.Height(), size.Width() * WIDTH_TO_HEIGHT_FACTOR); in Paint()
60 double baseGlowScale = size.Width() > size.Height() ? size.Height() / size.Width() : 1.0;
62 double height = std::min(size.Height(), size.Width() * WIDTH_TO_HEIGHT_FACTOR);
105 canvas->translate(0.0, size.Height()); in PaintSide()
115 Paint(canvas, Size(size.Height(), size.Width()), offset); in PaintSide()
123 Paint(canvas, Size(size.Height(), size.Width()), offset); in PaintSide()
140 canvas->Translate(0.0, size.Height()); in PaintSide()
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dsize_t.h59 T Height() const in Height() function in OHOS::Ace::NG::SizeT
97 height_ = SizeT.Height(); in SetSizeT()
274 height_ = height_ > minSize.Height() ? height_ : minSize.Height();
284 height_ = height_ < maxSize.Height() ? height_ : maxSize.Height(); in UpdateMax()
316 return SizeT(width_ + size.Width(), height_ + size.Height());
322 height_ += size.Height();
328 return SizeT(width_ - size.Width(), height_ - size.Height());
334 height_ -= size.Height();
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dlayout_param.h77 return (minSize_.Width() >= maxSize_.Width()) && (minSize_.Height() >= maxSize_.Height()); in IsTight()
87 return (maxSize_.Height() >= minSize_.Height()) && (maxSize_.Height() > 0.0); in IsHeightValid()
98 if (size.Height() < 0) { in Constrain()
99 constrainSize.SetHeight(size.Height()); in Constrain()
101 constrainSize.SetHeight(std::clamp(size.Height(), minSize_.Height(), maxSize_.Height())); in Constrain()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_tip_modifier.cpp117 textOffset_.SetY(vertex_.GetY() + (bubbleSize_.Height() - textSize.Height() + arrowSizeHeight) * HALF); in PaintText()
119 textOffset_.SetY(vertex_.GetY() - (bubbleSize_.Height() + textSize.Height() + arrowSizeHeight) * HALF); in PaintText()
122 textOffset_.SetY(vertex_.GetY() - textSize.Height() * HALF); in PaintText()
143 float circularRadius = (bubbleSize_.Height() - arrowSizeHeight) * HALF; in PaintHorizontalBubble()
144 if (sliderGlobalOffset_->Get().GetY() + vertex_.GetY() < bubbleSize_.Height()) { in PaintHorizontalBubble()
152 vertex_.GetX() + arrowSizeWidth * HALF, vertex_.GetY() + bubbleSize_.Height()); in PaintHorizontalBubble()
153 path.LineTo(vertex_.GetX() - arrowSizeWidth * HALF, vertex_.GetY() + bubbleSize_.Height()); in PaintHorizontalBubble()
164 vertex_.GetX() - arrowSizeWidth * HALF, vertex_.GetY() - bubbleSize_.Height()); in PaintHorizontalBubble()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drosen_render_svg.cpp40 if (GreatNotEqual(viewBox_.Width(), 0.0) && GreatNotEqual(viewBox_.Height(), 0.0)) { in UpdateTransformByGlobalOffset()
42 std::min(GetLayoutSize().Width() / viewBox_.Width(), GetLayoutSize().Height() / viewBox_.Height()); in UpdateTransformByGlobalOffset()
44 double ty = GetLayoutSize().Height() * 0.5 - (viewBox_.Height() * 0.5 + viewBox_.Top()) * scale; in UpdateTransformByGlobalOffset()
49 double pivotY = ConvertDimensionToPx(transformOrigin_.second, LengthType::VERTICAL, true) / viewBox_.Height(); in UpdateTransformByGlobalOffset()
/foundation/arkui/ace_engine/frameworks/core/components/image/
H A Drender_image.cpp430 double pictureSizeRatio = pictureSize.Width() / pictureSize.Height(); in CalculateBackupImageSize()
440 backupImageSize.SetWidth(imageComponentSize_.Height() * pictureSizeRatio); in CalculateBackupImageSize()
461 double heightEnlargedBy = resizeTarget_.Height() / previousResizeTarget_.Height(); in NeedResize()
479 double heightScale = dstRect_.Height() / srcRect_.Height() * scale_; in CalculateResizeTarget()
485 resizeTarget_ = Size(rawImageSize_.Width() * resizeScale_.Width(), rawImageSize_.Height() * resizeScale_.Height()); in CalculateResizeTarget()
531 dstRect.SetSize(rawPicSize * (layoutSize.Height() / rawPicSize.Height())); in ApplyContain()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/
H A Dcheckboxgroup_layout_algorithm.cpp27 if (contentConstraint.selfIdealSize.Width().has_value() && contentConstraint.selfIdealSize.Height().has_value() && in MeasureContent()
29 auto height = contentConstraint.selfIdealSize.Height().value(); in MeasureContent()
41 // 2.2 Height is set to a value in MeasureContent()
42 if (contentConstraint.selfIdealSize.Height().has_value() && in MeasureContent()
43 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent()
44 auto height = contentConstraint.selfIdealSize.Height().value(); in MeasureContent()
52 if (!NearEqual(size.Width(), size.Height())) { in MeasureContent()
53 auto length = std::min(size.Width(), size.Height()); in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_layout_algorithm.cpp47 if (GreaterOrEqualToInfinity(maxSize.Width()) || GreaterOrEqualToInfinity(maxSize.Height())) { in MeasureContent()
50 std::max(maxSize.Width(), calendarMinSize.Width()), std::max(minSize.Height(), calendarMinSize.Height())); in MeasureContent()
53 std::max(maxSize.Width(), calendarMinSize.Width()), std::max(maxSize.Height(), calendarMinSize.Height())); in MeasureContent()
55 if (GreaterOrEqualToInfinity(maxSize.Width()) || GreaterOrEqualToInfinity(maxSize.Height())) { in MeasureContent()
66 maxHeight_ = constrainSize.Height(); in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/
H A Drender_dialog_modal.cpp55 double dialogHeight = maxSize.Height() * MAX_HEIGHT_PERCENT + NormalizeToPx(BG_MARGIN) * 2; in PerformLayout()
56 if (dialogHeight + statusBarPx + navigationBarPx > maxSize.Height()) { in PerformLayout()
59 dialogHeight = maxSize.Height() - navigationBarPx - NormalizeToPx(BG_MARGIN); in PerformLayout()
64 innerLayoutParam.SetMinSize(Size(maxSize.Width(), innerLayoutParam.GetMinSize().Height())); in PerformLayout()
65 viewPort_.SetHeight(maxSize.Height() - NormalizeToPx(BG_MARGIN) * 2); in PerformLayout()
68 auto childY = GetLayoutParam().GetMaxSize().Height() - navigationBarPx - maxSize.Height(); in PerformLayout()
73 GetLayoutParam().GetMaxSize().Height() - statusBarPx - navigationBarPx); in PerformLayout()
126 LOGE("Height less than zero, do not animate it."); in AnimateTo()
200 if (!NearEqual(GetTopPageLayoutSize().Height(), animateTargetHeight in PerformClip()
[all...]
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/
H A Ddcamera_capture_info_cmd_test.cpp38 {"Width": 1920, "Height": 1080, "Format": 1, "DataSpace": 1,
49 {"Width": 1920, "Height": 1080, "Format": 1, "DataSpace": 1,
59 {"Width": 1920, "Height": 1080, "Format": 1, "DataSpace": 1,
70 {"Width": 1920, "Height": 1080, "Format": 1, "DataSpace": 1,
80 {"Width": 1920, "Height": 1080, "Format": 1, "DataSpace": 1,
91 {"Width": 1920, "Height": 1080, "Format": 1, "DataSpace": 1,
108 {"Width": 1920, "Height": 1080, "Format": 1, "DataSpace": 1,
119 {"Width": 1920, "Height": 1080, "Format": 1, "DataSpace": 1,
130 {"Height": 1080, "Format": 1, "DataSpace": 1,
141 {"Width": "1920", "Height"
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/button/
H A Drosen_render_button.cpp69 ? GetLayoutSize().Height() * (INIT_SCALE - scale_) * 2 in UpdateLayer()
70 : GetLayoutSize().Height() / 2 * (1.0 - scale_); in UpdateLayer()
157 rrectRadius_ = buttonSize_.Height() / 2.0; in Measure()
192 if (GreatNotEqual(rrectRadius_, buttonSize_.Height() / 2.0)) { in MeasureCapsule()
195 rrectRadius_ = buttonSize_.Height() / 2.0; in MeasureCapsule()
203 double minSize = std::min(GetLayoutParam().GetMaxSize().Width(), GetLayoutParam().GetMaxSize().Height()); in MeasureCircle()
205 minSize = widthDefined_ ? std::min(buttonSize_.Width(), buttonSize_.Height()) : buttonSize_.Height(); in MeasureCircle()
212 rrectRadius_ = (std::min(constrainedSize.Width(), constrainedSize.Height()) - widthDelta_) / 2.0; in MeasureCircle()
253 static_cast<RSScalar>(buttonSize_.Height())), radii in DrawShape()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/box/
H A Drender_box_base.cpp80 parentLimit = GetLayoutParam().GetMaxSize().Height(); in ConvertMarginToPx()
94 parentLimit = vertical ? viewPort_.Height() : viewPort_.Width(); in ConvertMarginToPx()
119 parentLimit = GetLayoutParam().GetMaxSize().Height(); in ConvertDimensionToPx()
125 parentLimit = vertical ? viewPort_.Height() : viewPort_.Width(); in ConvertDimensionToPx()
188 selfMaxHeight_ = constraints_.GetMaxSize().Height();
189 selfMinHeight_ = constraints_.GetMinSize().Height();
200 std::clamp(selfMaxHeight_, constraints_.GetMinSize().Height(), constraints_.GetMaxSize().Height());
202 std::clamp(selfMinHeight_, constraints_.GetMinSize().Height(), constraints_.GetMaxSize().Height());
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toggle/
H A Dswitch_paint_method.h47 auto pointOffset = isSelect_ ^ isRtl ? size.Width() - size.Height() : 0.0f;
70 auto actualGap = radiusGap_.ConvertToPx() * size.Height() / in UpdateBoundsRect()
74 auto actualPointRadius = pointRadius == SWITCH_ERROR_RADIUS ? size.Height() / NUM_TWO - actualGap : pointRadius; in UpdateBoundsRect()
75 if (GreatOrEqual(size.Width(), size.Height())) { in UpdateBoundsRect()
77 (actualPointRadius * NUM_TWO > size.Height()) ? (actualPointRadius - size.Height() / NUM_TWO) : 0.0; in UpdateBoundsRect()
79 (actualPointRadius * NUM_TWO > size.Height()) ? (actualPointRadius - size.Height() / NUM_TWO) : 0.0; in UpdateBoundsRect()
84 (actualPointRadius * NUM_TWO > size.Height()) ? (actualPointRadius - size.Height() / NUM_TW in UpdateBoundsRect()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dlayout_constraint.h47 if (first.Height().has_value() ^ second.Height().has_value()) { in CompareWithInfinityCheck()
50 auto heightBothInf = GreaterOrEqualToInfinity(first.Height().value_or(0.0f)) && in CompareWithInfinityCheck()
51 GreaterOrEqualToInfinity(second.Height().value_or(0.0f)); in CompareWithInfinityCheck()
52 if (!heightBothInf && !NearEqual(first.Height().value_or(0), second.Height().value_or(0))) { in CompareWithInfinityCheck()
61 auto heightBothInf = GreaterOrEqualToInfinity(first.Height()) && GreaterOrEqualToInfinity(second.Height()); in CompareWithInfinityCheck()
65 return NearEqual(first.Width(), second.Width()) && NearEqual(first.Height(), second.Height()); in CompareWithInfinityCheck()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dbackground_modifier.h39 auto curHeight = curSize.Height();
52 SkRect srcSKRect = SkRect::MakeXYWH(offset1.GetX(), offset1.GetY(), srcSize.Width(), srcSize.Height());
55 srcSize.Height() * curHeight / initialNodeHeight_);
60 if (srcSize.Height() > desSize.Height()) {
61 srcSKRect.fBottom = offset1.GetY() + desSize.Height();
73 auto curHeight = curSize.Height();
86 srcSize.Height() + offset1.GetY());
90 srcSize.Height() * curHeight / initialNodeHeight_ +
96 if (srcSize.Height() > desSiz
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_layout_algorithm.cpp123 dialogMaxHeight_ = childLayoutConstraint.maxSize.Height(); in Measure()
160 dialogHeight.ConvertToPxWithSize(childLayoutConstraint.maxSize.Height()))); in UpdateChildLayoutConstraint()
173 restHeight = children->GetLayoutProperty()->GetContentLayoutConstraint()->maxSize.Height(); in AnalysisHeightOfChild()
177 scrollHeight = grandson->GetGeometryNode()->GetMarginFrameSize().Height(); in AnalysisHeightOfChild()
180 listHeight = grandson->GetGeometryNode()->GetMarginFrameSize().Height(); in AnalysisHeightOfChild()
182 restHeight -= grandson->GetGeometryNode()->GetMarginFrameSize().Height(); in AnalysisHeightOfChild()
295 auto defaultMaxHeight = IsGetExpandDisplayValidHeight() ? expandDisplayValidHeight_ : maxSize.Height(); in ComputeInnerLayoutSizeParam()
329 auto expandDisplayValidHeight = pipelineContext->GetDisplayAvailableRect().Height(); in IsGetExpandDisplayValidHeight()
377 innerLayout.maxSize = SizeF(width, maxSize.Height()); in ComputeInnerLayoutParam()
381 innerLayout.maxSize = SizeF(width, maxSize.Height() * DIALOG_HEIGHT_RATIO_FOR_LANDSCAP in ComputeInnerLayoutParam()
[all...]

Completed in 17 milliseconds

12345678910>>...31