Home
last modified time | relevance | path

Searched refs:frameWidth (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toggle/
H A Dswitch_layout_algorithm.cpp43 float frameWidth = 0.0f; in MeasureContent() local
48 frameWidth = contentConstraint.selfIdealSize.Width().value(); in MeasureContent()
51 frameWidth = static_cast<float>(width) - padding.left.value() - padding.right.value(); in MeasureContent()
52 if (frameWidth > contentConstraint.maxSize.Width()) { in MeasureContent()
53 frameWidth = contentConstraint.maxSize.Width(); in MeasureContent()
67 CalcHeightAndWidth(height, width, frameHeight, frameWidth); in MeasureContent()
114 width = frameWidth; in CalcHeightAndWidth()
118 if (frameWidth < (frameHeight * ratio)) { in CalcHeightAndWidth()
119 width = frameWidth; in CalcHeightAndWidth()
125 } else if (frameWidth > (frameHeight * ratio)) { in CalcHeightAndWidth()
[all …]
H A Dswitch_layout_algorithm.h37 void CalcHeightAndWidth(float& height, float& width, float frameHeight, float frameWidth);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/
H A Dnavigation_layout_algorithm.cpp480 float frameWidth = frameSize.Width(); in SizeCalculationSplit() local
500 realContentWidth_ = frameWidth; in SizeCalculationSplit()
507 realNavBarWidth_ = std::min(realNavBarWidth_, frameWidth); in SizeCalculationSplit()
508 realContentWidth_ = std::min(realContentWidth_, frameWidth); in SizeCalculationSplit()
527 if (minContentWidth >= frameWidth) { in CheckSizeInSplit()
528 realContentWidth_ = frameWidth; in CheckSizeInSplit()
538 realContentWidth_ = frameWidth - realNavBarWidth_ - dividerWidth; in CheckSizeInSplit()
561 float frameWidth = frameSize.Width(); in SizeCalculationStack() local
562 navBarSize_.SetWidth(frameWidth); in SizeCalculationStack()
564 contentSize_.SetWidth(frameWidth); in SizeCalculationStack()
[all …]
H A Dnavigation_layout_algorithm.h72 …void CheckSizeInSplit(const float frameWidth, const float userSetNavBarWidth, const float minNavBa…
H A Dnavigation_pattern.cpp1650 auto frameWidth = frameSize.Width(); in HandleDragUpdate() local
1665 if (maxNavBarWidthPx + dividerWidth + minContentWidthPx > frameWidth) { in HandleDragUpdate()
1666 maxNavBarWidthPx = frameWidth - minContentWidthPx - dividerWidth; in HandleDragUpdate()
1671 if (minContentWidthPx >= frameWidth) { in HandleDragUpdate()
1673 } else if (navBarLine + dividerWidth + minContentWidthPx <= frameWidth) { in HandleDragUpdate()
1676 realNavBarWidth_ = frameWidth - minContentWidthPx - dividerWidth; in HandleDragUpdate()
1680 float remainingSpace = frameWidth - navBarLine - dividerWidth; in HandleDragUpdate()
1684 realNavBarWidth_ = frameWidth - minContentWidthPx - dividerWidth; in HandleDragUpdate()
1689 realNavBarWidth_ = std::min(realNavBarWidth_, frameWidth); in HandleDragUpdate()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/
H A Dweb_layout_algorithm.cpp44 int frameWidth = geometryNode->GetFrameSize().Width(); in Measure() local
47 …if (pattern->GetLayoutMode() == WebLayoutMode::FIT_CONTENT && IsValidRootLayer(frameWidth, renderM… in Measure()
49 auto drawSize = SizeF(frameWidth, rootLayerHeight); in Measure()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libgifplugin/src/
H A Dgif_decoder.cpp401 int32_t frameWidth = savedImage->ImageDesc.Width; in PaddingBgColor() local
403 if (frameLeft + frameWidth > bgWidth) { in PaddingBgColor()
404 frameWidth = bgWidth - frameLeft; in PaddingBgColor()
409 if (frameWidth < 0 || frameHeight < 0) { in PaddingBgColor()
417 uint32_t lineBufferSize = frameWidth * sizeof(uint32_t); in PaddingBgColor()
458 int32_t frameWidth = savedImage->ImageDesc.Width; in PaddingData() local
460 if (frameLeft + frameWidth > bgWidth) { in PaddingData()
461 frameWidth = bgWidth - frameLeft; in PaddingData()
469 CopyLine(srcFrame, dstPixelMapBuffer, frameWidth, transparentColor, colorMap); in PaddingData()
476 … GifDecoder::CopyLine(const GifByteType *srcFrame, uint32_t *dstPixelMapBuffer, int32_t frameWidth, in CopyLine() argument
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_utils.cpp56 inline float GetColumnGap(const RefPtr<GridLayoutProperty>& props, float frameWidth) in GetColumnGap() argument
59 return ConvertToPx(props->GetColumnsGap().value_or(0.0_vp), scale, frameWidth).value_or(0); in GetColumnGap()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/
H A Dindexer_layout_algorithm.cpp65 auto frameWidth = selfIdealSize.Width().has_value() in Measure() local
68 …itemWidth_ = GreatNotEqual(frameWidth - horizontalPadding, 0.0f) ? frameWidth - horizontalPadding … in Measure()
88 layoutWrapper->GetGeometryNode()->SetFrameSize(SizeF(frameWidth, frameHeight)); in Measure()
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avscreen_capture/
H A Davscreen_capture_napi.cpp688 int32_t frameWidth = AVSCREENCAPTURE_DEFAULT_FRAME_WIDTH; in GetVideoInfo() local
708 ret = AVScreenCaptureNapi::GetPropertyInt32(env, args, "frameWidth", frameWidth); in GetVideoInfo()
715 frameWidth, frameHeight); in GetVideoInfo()
716 ret = AVScreenCaptureNapi::CheckVideoFrameFormat(frameWidth, frameHeight, in GetVideoInfo()
758 int32_t AVScreenCaptureNapi::CheckVideoFrameFormat(const int32_t &frameWidth, const int32_t &frameH… in CheckVideoFrameFormat() argument
762 …if (frameWidth == AVSCREENCAPTURE_DEFAULT_FRAME_WIDTH || frameHeight == AVSCREENCAPTURE_DEFAULT_FR… in CheckVideoFrameFormat()
763 … !(frameWidth == 0 && frameHeight == 0)) { // 0 one of width height is zero, use default display in CheckVideoFrameFormat()
770 …if (frameWidth == AVSCREENCAPTURE_DEFAULT_FRAME_WIDTH || frameWidth == 0) { // 0 use default displ… in CheckVideoFrameFormat()
773 videoFrameWidth = frameWidth; in CheckVideoFrameFormat()
781 videoFrameWidth = frameWidth; in CheckVideoFrameFormat()
[all …]
H A Davscreen_capture_napi.h124 static int32_t CheckVideoFrameFormat(const int32_t &frameWidth, const int32_t &frameHeight,
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor_drag/
H A Drich_editor_drag_pattern.cpp53 float frameWidth = dragPattern->GetFrameWidth(); in CreateDragNode() local
55 …Tag::ACE_RICH_TEXT, "CreateDragNode width=%{public}f, height=%{public}f", frameWidth, frameHeight); in CreateDragNode()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/
H A Dtext_drag_pattern.h54 …TextDragData(RectF textRect, float frameWidth, float frameHeight, float lineHeight, float lastLine… in TextDragData()
55 …: textRect_(textRect), frameWidth_(frameWidth), frameHeight_(frameHeight), lineHeight_(lineHeight), in TextDragData()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_composer_adapter.cpp452 const float frameWidth = info.buffer->GetSurfaceBufferWidth(); in DealWithNodeGravity() local
460 (frameWidth == boundsWidth && frameHeight == boundsHeight)) { in DealWithNodeGravity()
471 RectF {0.0f, 0.0f, boundsWidth, boundsHeight}, frameWidth, frameHeight, gravityMatrix); in DealWithNodeGravity()
483 gravityMatrix.MapRect(clipRect, Drawing::Rect(0, 0, frameWidth, frameHeight)); in DealWithNodeGravity()
491 int left = std::clamp<int>(localRect.GetLeft(), 0, frameWidth); in DealWithNodeGravity()
493 int width = std::clamp<int>(localRect.GetWidth(), 0, frameWidth - left); in DealWithNodeGravity()
517 const float frameWidth = info.buffer->GetSurfaceBufferWidth(); in DealWithNodeGravity() local
525 (frameWidth == boundsWidth && frameHeight == boundsHeight)) { in DealWithNodeGravity()
551 gravityMatrix.MapRect(clipRect, Drawing::Rect(0, 0, frameWidth, frameHeight)); in DealWithNodeGravity()
559 int left = std::clamp<int>(localRect.GetLeft(), 0, frameWidth); in DealWithNodeGravity()
[all …]
H A Drs_composer_adapter.cpp199 const auto frameWidth = info.buffer->GetSurfaceBufferWidth(); in DealWithNodeGravity() local
205 …if (frameGravity == Gravity::RESIZE || (frameWidth == boundsWidth && frameHeight == boundsHeight))… in DealWithNodeGravity()
216 RectF {0.0f, 0.0f, boundsWidth, boundsHeight}, frameWidth, frameHeight, gravityMatrix); in DealWithNodeGravity()
228 Drawing::Rect srcRect(0, 0, frameWidth, frameHeight); in DealWithNodeGravity()
237 int left = std::clamp<int>(localRect.GetLeft(), 0, frameWidth); in DealWithNodeGravity()
239 int width = std::clamp<int>(localRect.GetWidth(), 0, frameWidth - left); in DealWithNodeGravity()
H A Drs_uni_render_util.cpp1418 const float frameWidth = buffer->GetSurfaceBufferWidth(); in DealWithNodeGravity() local
1427 (ROSEN_EQ(frameWidth, boundsWidth) && ROSEN_EQ(frameHeight, boundsHeight))) { in DealWithNodeGravity()
1437 RectF {0.0f, 0.0f, boundsWidth, boundsHeight}, frameWidth, frameHeight, gravityMatrix); in DealWithNodeGravity()
1450 gravityMatrix.MapRect(clipRect, Drawing::Rect(0, 0, frameWidth, frameHeight)); in DealWithNodeGravity()
1459 int left = std::clamp<int>(localRect.GetLeft(), 0, frameWidth); in DealWithNodeGravity()
1461 int width = std::clamp<int>(localRect.GetWidth(), 0, frameWidth - left); in DealWithNodeGravity()
H A Drs_base_render_util.cpp1238 auto frameWidth = bufferSize.GetWidth(); in GetGravityMatrix() local
1242 if (ROSEN_EQ(frameWidth, boundsWidth) && ROSEN_EQ(frameHeight, boundsHeight)) { in GetGravityMatrix()
1247 RectF {0.0f, 0.0f, boundsWidth, boundsHeight}, frameWidth, frameHeight, gravityMatrix)) { in GetGravityMatrix()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/
H A Dstepper_layout_algorithm.cpp308 auto frameWidth = layoutWrapper->GetGeometryNode()->GetFrameSize().Width(); in SuitAgeLayoutButton() local
309 …auto offsetX = frameWidth - ButtonWrapper->GetGeometryNode()->GetFrameSize().Width() - buttonOffse… in SuitAgeLayoutButton()
377 auto frameWidth = layoutWrapper->GetGeometryNode()->GetFrameSize().Width(); in LayoutLeftButton() local
378 auto offsetX = frameWidth - geometryNode->GetFrameSize().Width() - buttonOffset.GetX(); in LayoutLeftButton()
/ohos5.0/docs/zh-cn/application-dev/media/media/
H A Dusing-avscreencapture-ArkTs.md109 frameWidth: 768,
168 frameWidth: 768,
/ohos5.0/base/useriam/fingerprint_auth/services_ex/inc/
H A Dsensor_illumination_task.h40 int32_t frameWidth; member
/ohos5.0/base/useriam/fingerprint_auth/services_ex/src/
H A Dsensor_illumination_task.cpp199 .frameWidth = width, in EnableSensorIllumination()
249 auto surfaceFrame = rsSurface_->RequestFrame(canvasParam_.frameWidth, canvasParam_.frameHeight); in DrawSurfaceNode()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libgifplugin/include/
H A Dgif_decoder.h68 …void CopyLine(const GifByteType *srcFrame, uint32_t *dstFrame, int32_t frameWidth, int32_t transpa…
/ohos5.0/docs/en/application-dev/media/media/
H A Dusing-avscreencapture-ArkTs.md109 frameWidth: 768,
168 frameWidth: 768,
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_row_pattern.cpp1076 auto frameWidth = host->GetGeometryNode()->GetFrameSize().Width(); in GetInnerFocusPaintRect() local
1081 auto centerX = (frameWidth / childSize - pickerThemeWidth) / RATE + in GetInnerFocusPaintRect()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Ddrag_event.cpp1774 auto frameWidth = dragFrame.Width(); in HideTextAnimation() local
1786 [context, startDrag, globalX, globalY, frameWidth, frameHeight, scale]() { in HideTextAnimation()
1788 … context->UpdatePosition(OffsetT<Dimension>(Dimension(globalX + frameWidth * PIXELMAP_WIDTH_RATE), in HideTextAnimation()

12