Home
last modified time | relevance | path

Searched refs:NormalizeToPx (Results 1 - 25 of 174) sorted by relevance

1234567

/foundation/arkui/ace_engine/frameworks/core/components/tip/
H A Drosen_render_tip.cpp91 double bubbleSpacing = NormalizeToPx(TIP_SPACING); in PaintTopTip()
94 double arrowOffset = NormalizeToPx(arrowOffset_); in PaintTopTip()
99 path_.quadTo(globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_FIRST) + arrowOffset, in PaintTopTip()
100 globalArrowPosition.GetY() + NormalizeToPx(BEZIER_VERTICAL_OFFSET_FIRST), in PaintTopTip()
101 globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_SECOND) + arrowOffset, in PaintTopTip()
102 globalArrowPosition.GetY() - NormalizeToPx(BEZIER_VERTICAL_OFFSET_SECOND)); in PaintTopTip()
103 path_.quadTo(globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_THIRD) + arrowOffset, in PaintTopTip()
104 globalArrowPosition.GetY() - NormalizeToPx(BEZIER_VERTICAL_OFFSET_THIRD), in PaintTopTip()
105 globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_FOURTH) + arrowOffset, in PaintTopTip()
106 globalArrowPosition.GetY() - NormalizeToPx(BEZIER_VERTICAL_OFFSET_THIR in PaintTopTip()
[all...]
H A Drender_tip.cpp60 double paddingLeft = NormalizeToPx(padding_.Left()); in PerformLayout()
61 double paddingTop = NormalizeToPx(padding_.Top()); in PerformLayout()
73 double widthChange = std::max(0.0, NormalizeToPx(TEXT_MIN_WIDTH) - childSize.Height()); in AdaptChildPadding()
76 padding_.SetTop(Dimension(NormalizeToPx(padding_.Top()), DimensionUnit::PX)); in AdaptChildPadding()
77 padding_.SetBottom(Dimension(NormalizeToPx(padding_.Bottom()), DimensionUnit::PX)); in AdaptChildPadding()
83 double paddingTopBottom = (selfSize.Width() - NormalizeToPx(TIP_SPACING) - childSize.Width()) * HALF; in AdaptChildPadding()
87 double widthChange = std::max(0.0, NormalizeToPx(TEXT_MIN_WIDTH) - childSize.Width()); in AdaptChildPadding()
90 padding_.SetLeft(Dimension(NormalizeToPx(padding_.Left()), DimensionUnit::PX)); in AdaptChildPadding()
91 padding_.SetRight(Dimension(NormalizeToPx(padding_.Right()), DimensionUnit::PX)); in AdaptChildPadding()
97 double paddingTopBottom = (selfSize.Height() - NormalizeToPx(TIP_SPACIN in AdaptChildPadding()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/bubble/
H A Drosen_render_bubble.cpp53 SkPoint::Make(NormalizeToPx(border_.TopLeftRadius().GetX()), NormalizeToPx(border_.TopLeftRadius().GetY())); in MakeRRect()
55 SkPoint::Make(NormalizeToPx(border_.TopRightRadius().GetX()), NormalizeToPx(border_.TopRightRadius().GetY())); in MakeRRect()
57 NormalizeToPx(border_.BottomRightRadius().GetX()), NormalizeToPx(border_.BottomRightRadius().GetY())); in MakeRRect()
59 NormalizeToPx(border_.BottomLeftRadius().GetX()), NormalizeToPx(border_.BottomLeftRadius().GetY())); in MakeRRect()
71 RSPoint(NormalizeToPx(border_.TopLeftRadius().GetX()), NormalizeToPx(border in MakeRRect()
[all...]
H A Drender_bubble.cpp196 innerLayout.SetMaxSize(Size(innerLayout.GetMaxSize().Width() - NormalizeToPx(GRID_MARGIN_PORTRAIT), in PerformLayout()
201 (innerLayout.GetMaxSize().Width() - NormalizeToPx(GRID_SPACING_TOTAL)) / GRID_NUMBER_LANDSCAPE; in PerformLayout()
202 innerLayout.SetMaxSize(Size(colWidth * BUBBLR_GRID_MAX_LANDSCAPE + NormalizeToPx(GRID_SPACING) * gridGaps, in PerformLayout()
222 double arrowWidth = NormalizeToPx(ARROW_WIDTH); in UpdateCustomChildPosition()
223 double twoRadiusPx = NormalizeToPx(BUBBLE_RADIUS) * 2.0; in UpdateCustomChildPosition()
232 childOffset_ += Offset(0.0, NormalizeToPx(ARROW_HEIGHT)); in UpdateCustomChildPosition()
242 childOffset_ += Offset(0.0, -NormalizeToPx(ARROW_HEIGHT)); in UpdateCustomChildPosition()
250 childOffset_ += Offset(NormalizeToPx(ARROW_HEIGHT), 0.0); in UpdateCustomChildPosition()
258 childOffset_ += Offset(-NormalizeToPx(ARROW_HEIGHT), 0.0); in UpdateCustomChildPosition()
275 bottomRight = Offset(0.0, NormalizeToPx(targetSpace in UpdateTouchRegion()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/watch_slider/
H A Drosen_render_watch_slider.cpp48 double topX = offset.GetX() + GetLayoutSize().Width() / 2.0 - NormalizeToPx(THICKNESS) / 2.0; in Paint()
49 double topY = offset.GetY() + NormalizeToPx(DEFAULT_PADDING); in Paint()
51 SkRect bottomClipRect = { topX, topY, topX + NormalizeToPx(THICKNESS), in Paint()
52 topY + GetLayoutSize().Height() - 2.0 * NormalizeToPx(DEFAULT_PADDING) }; in Paint()
54 SkRRect::MakeRectXY(bottomClipRect, NormalizeToPx(THICKNESS) / 2.0, NormalizeToPx(THICKNESS) / 2.0); in Paint()
58 canvas->drawRect({ topX, topY, topX + NormalizeToPx(THICKNESS), in Paint()
59 topY + GetLayoutSize().Height() - 2.0 * NormalizeToPx(DEFAULT_PADDING) }, in Paint()
63 RSRect bottomClipRect(topX, topY, topX + NormalizeToPx(THICKNESS), in Paint()
64 topY + GetLayoutSize().Height() - 2.0 * NormalizeToPx(DEFAULT_PADDIN in Paint()
[all...]
H A Drender_watch_slider.cpp139 double iconSizeInPx = NormalizeToPx(ICON_SIZE); in PerformLayout()
278 double deltaPx = context->NormalizeToPx(Dimension(ROTATION_BASE_DELTA_DP, DimensionUnit::VP)); in OnRotation()
316 double iconSizeInPx = NormalizeToPx(ICON_SIZE); in UpdatePosition()
319 Offset(iconCenterX - (iconSizeInPx / 2.0), offset.GetY() + NormalizeToPx(PADDING_SIZE + PADDING_ICON)); in UpdatePosition()
321 offset.GetY() + GetLayoutSize().Height() - NormalizeToPx(PADDING_SIZE + PADDING_ICON + ICON_SIZE)); in UpdatePosition()
324 Offset(iconCenterX - NormalizeToPx(HOT_REGION) / 2.0, offset.GetY() + NormalizeToPx(PADDING_SIZE))); in UpdatePosition()
325 topIconRect_.SetSize(Size(NormalizeToPx(HOT_REGION), NormalizeToPx(HOT_REGION))); in UpdatePosition()
326 bottomIconRect_.SetOffset(Offset(iconCenterX - NormalizeToPx(HOT_REGIO in UpdatePosition()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/
H A Drosen_render_text_overlay.cpp76 Offset centerOffset = Offset(0.0, NormalizeToPx(handleRadius_)); in PaintHandles()
88 startHandleOffset_ + Offset(0.0, -startHandleHeight_.value_or(lineHeight_) - NormalizeToPx(handleRadius_)), in PaintHandles()
111 skCanvas->drawCircle(0.0, 0.0, NormalizeToPx(handleRadius_), paint); in PaintHandle()
114 skCanvas->drawCircle(0.0, 0.0, NormalizeToPx(handleRadiusInner_), paint); in PaintHandle()
118 paint.setStrokeWidth(NormalizeToPx(HANDLE_LINE_WIDTH)); in PaintHandle()
121 Offset startPoint(Offset(0.0, NormalizeToPx(-handleRadius_) + 1.0)); in PaintHandle()
124 Offset(0.0, NormalizeToPx(-handleRadius_) - endHandleHeight_.value_or(lineHeight_) - NormalizeToPx(1.0_vp))); in PaintHandle()
126 startPoint.SetY(NormalizeToPx(handleRadius_) - 1.0); in PaintHandle()
127 endPoint.SetY(NormalizeToPx(handleRadius in PaintHandle()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dscroll_bar.cpp43 double normalWidth = NormalizeToPx(normalWidth_); in SetBarRegion()
45 double height = std::max(size.Height() - NormalizeToPx(reservedHeight_), 0.0); in SetBarRegion()
49 barRect_ = Rect(size.Width() - normalWidth - NormalizeToPx(padding_.Right()), 0.0, in SetBarRegion()
52 auto scrollBarWidth = std::max(size.Width() - NormalizeToPx(reservedHeight_), 0.0); in SetBarRegion()
53 barRect_ = Rect(0.0, size.Height() - normalWidth - NormalizeToPx(padding_.Bottom()), in SetBarRegion()
63 double barRegionSize = std::max(mainSize - NormalizeToPx(reservedHeight_), 0.0); in SetRectTrickRegion()
68 std::max(activeSize, NormalizeToPx(minHeight_) - outBoundary_), NormalizeToPx(minDynamicHeight_)); in SetRectTrickRegion()
70 activeSize = std::max(activeSize, NormalizeToPx(minHeight_)); in SetRectTrickRegion()
76 double normalWidth = NormalizeToPx(normalWidth in SetRectTrickRegion()
155 double ScrollBar::NormalizeToPx(const Dimension& dimension) const NormalizeToPx() function in OHOS::Ace::ScrollBar
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_universal_painter.cpp63 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
64 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground()
66 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
67 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground()
70 std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
72 std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground()
74 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomLeftRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
76 std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomLeftRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground()
92 std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
94 std::max(RosenUniversalPainter::NormalizeToPx(corne in DrawRRectBackground()
117 double RosenUniversalPainter::NormalizeToPx(const Dimension& dimension, double scale) NormalizeToPx() function in OHOS::Ace::RosenUniversalPainter
[all...]
H A Drosen_decoration_painter.cpp1152 cornerRadius.SetValues(NormalizeToPx(border.TopLeftRadius().GetX()), in PaintDecoration()
1153 NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetX()), in PaintDecoration()
1154 NormalizeToPx(border.BottomLeftRadius().GetX())); in PaintDecoration()
1348 leftWidth_ = NormalizeToPx(border.Left().GetWidth()); in CheckWidth()
1351 topWidth_ = NormalizeToPx(border.Top().GetWidth()); in CheckWidth()
1354 rightWidth_ = NormalizeToPx(border.Right().GetWidth()); in CheckWidth()
1357 bottomWidth_ = NormalizeToPx(border.Bottom().GetWidth()); in CheckWidth()
1865 auto radius = ConvertRadiusToSigma(NormalizeToPx(blurRadius)); in PaintBlur()
1987 float topLeftRadiusX = NormalizeToPx(borde in GetOuterRRect()
3179 double RosenDecorationPainter::NormalizeToPx(const Dimension& dimension) const PaintShadow() function in OHOS::Ace::RosenDecorationPainter
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/piece/
H A Drosen_render_piece.cpp93 SkPoint::Make(NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().GetY())); in MakeRRect()
95 SkPoint::Make(NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius().GetY())); in MakeRRect()
97 NormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetY())); in MakeRRect()
99 SkPoint::Make(NormalizeToPx(border.BottomLeftRadius().GetX()), NormalizeToPx(border.BottomLeftRadius().GetY())); in MakeRRect()
113 NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(borde in MakeRRect()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/search/
H A Drosen_render_search.cpp50 double dividerVerticalOffset = (GetLayoutSize().Height() - NormalizeToPx(ICON_HEIGHT)) / 2.0; in Paint()
57 Rect rect(dividerOffset, Size(SEARCH_DIVIDER_WIDTH, NormalizeToPx(ICON_HEIGHT))); in Paint()
66 double dividerVerticalOffset = (GetLayoutSize().Height() - NormalizeToPx(ICON_HEIGHT)) / 2.0; in Paint()
73 Rect rect(dividerOffset, Size(SEARCH_DIVIDER_WIDTH, NormalizeToPx(ICON_HEIGHT))); in Paint()
85 searchTextRect_.GetOffset() + Offset(NormalizeToPx(SEARCH_SPACING) + SEARCH_DIVIDER_WIDTH, 0.0); in Paint()
87 searchBoxOffset_ = searchTextRect_.GetOffset() + Offset(NormalizeToPx(SEARCH_SPACING), 0.0); in Paint()
127 double offsetForFocus = NormalizeToPx(OFFSET_FOR_FOCUS); in Paint()
167 double searchSpacing = NormalizeToPx(SEARCH_SPACING); in Paint()
196 SkPoint::Make(NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(borde in Paint()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/shadow/
H A Drosen_render_shadow.cpp52 canvas->clipRect(SkRect::MakeXYWH(clipRect_.GetOffset().GetX() - NormalizeToPx(SHADOW_OFFSET) / 2, in Paint()
53 clipRect_.GetOffset().GetY(), clipRect_.Width() + NormalizeToPx(SHADOW_OFFSET), in Paint()
54 clipRect_.Height() + NormalizeToPx(SHADOW_OFFSET)), true); in Paint()
57 clipRect_.GetOffset().GetX() - NormalizeToPx(SHADOW_OFFSET) / 2, in Paint()
59 clipRect_.Width() + NormalizeToPx(SHADOW_OFFSET) / 2 + clipRect_.GetOffset().GetX(), in Paint()
60 clipRect_.Height() + NormalizeToPx(SHADOW_OFFSET) + clipRect_.GetOffset().GetY()), in Paint()
65 double radiusX = NormalizeToPx(rrect_.GetCorner().bottomLeftRadius.GetX()); in Paint()
66 double radiusY = NormalizeToPx(rrect_.GetCorner().bottomLeftRadius.GetY()); in Paint()
76 offset_.GetX(), offset_.GetY() + NormalizeToPx(SHADOW_OFFSET), rrect_.Width(), rrect_.Height()); in Paint()
91 rect = RSRect(offset_.GetX(), offset_.GetY() + NormalizeToPx(SHADOW_OFFSE in Paint()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/button/
H A Drosen_render_button.cpp142 widthDelta_ = NormalizeToPx(buttonComponent_->GetBorderEdge().GetWidth()); in Measure()
182 progressDiameter_ = rrectRadius_ * 2 - NormalizeToPx(WATCH_DOWNLOAD_SIZE_DELTA); in MeasureButtonSize()
184 buttonSize_ = Size(progressDiameter_ + NormalizeToPx(WATCH_DOWNLOAD_SIZE_DELTA), in MeasureButtonSize()
185 progressDiameter_ + NormalizeToPx(WATCH_DOWNLOAD_SIZE_DELTA)); in MeasureButtonSize()
233 backDecoration->SetBorderRadius(Radius(rrectRadius_ + NormalizeToPx(border.Top().GetWidth()))); in ResetBoxRadius()
247 pen.SetWidth(NormalizeToPx(borderEdge_.GetWidth())); in DrawShape()
288 double offsetDelta = NormalizeToPx((OVAL_WIDTH - CIRCLE_DIAMETER)) / 2; in DrawArc()
291 RSRect(0, NormalizeToPx(OFFSET_Y), NormalizeToPx(OVAL_WIDTH), NormalizeToPx(OVAL_HEIGH in DrawArc()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/focus_animation/
H A Drosen_render_focus_animation.cpp191 offset += (NormalizeToPx(blurMaskRadius_) * DOUBLE_FACTOR); in PaintClipRect()
200 offset += (NormalizeToPx(blurMaskRadius_) * DOUBLE_FACTOR); in PaintClipRect()
216 double offsetValue = NormalizeToPx(Dimension(FOCUS_ANIMATION_OFFSET, DimensionUnit::VP)) * MULTIPLE_FACTOR; in PaintTVFocus()
217 double radiusX = NormalizeToPx(rrect_.GetCorner().bottomLeftRadius.GetX()); in PaintTVFocus()
218 double radiusY = NormalizeToPx(rrect_.GetCorner().bottomLeftRadius.GetY()); in PaintTVFocus()
219 radiusX = NearZero(radiusX) ? 0.0 : radiusX + NormalizeToPx(Dimension(FOCUS_ANIMATION_OFFSET, DimensionUnit::VP)); in PaintTVFocus()
220 radiusY = NearZero(radiusX) ? 0.0 : radiusY + NormalizeToPx(Dimension(FOCUS_ANIMATION_OFFSET, DimensionUnit::VP)); in PaintTVFocus()
223 int32_t padding = NormalizeToPx(blurMaskRadius_); in PaintTVFocus()
241 paint.setStrokeWidth(NormalizeToPx(Dimension(BOUNDARY_WIDTH, DimensionUnit::VP))); in PaintTVFocus()
243 paint.setMaskFilter(SkMaskFilter::MakeBlur(kSolid_SkBlurStyle, NormalizeToPx(blurMaskRadius in PaintTVFocus()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/slider/
H A Drosen_render_slider.cpp75 double dyOffset = isReverse_ ? GetLayoutSize().Height() - NormalizeToPx(SLIDER_PADDING_DP) - in PerformLayout()
76 trackLength_ * totalRatio_ : NormalizeToPx(SLIDER_PADDING_DP) + trackLength_ * totalRatio_; in PerformLayout()
84 dxOffset = NormalizeToPx(SLIDER_PADDING_DP) + trackLength_ * totalRatio_; in PerformLayout()
87 dxOffset = GetLayoutSize().Width() - NormalizeToPx(SLIDER_PADDING_DP) - trackLength_ * totalRatio_; in PerformLayout()
108 auto padding = NormalizeToPx(theme->GetTipTextPadding()); in AddTipChild()
154 double hotRegionWidth = NormalizeToPx(blockHotWidth_); in ProcessBlock()
155 double hotRegionHeight = NormalizeToPx(blockHotHeight_); in ProcessBlock()
173 double trackPositionHorizontal = NormalizeToPx(SLIDER_PADDING_DP); in ProcessTrack()
174 double hotRegionWidth = NormalizeToPx(blockHotWidth_); in ProcessTrack()
187 double trackPositionHorizontal = NormalizeToPx(SLIDER_PADDING_D in ProcessTrack()
[all...]
H A Drender_slider.cpp70 thickness_ = NormalizeToPx(slider->GetThickness()); in Update()
72 thickness_ = mode_ == SliderMode::INSET ? NormalizeToPx(DEFAULT_INSET_TRACK_THICKNESS) : in Update()
73 NormalizeToPx(DEFAULT_OUTSET_TRACK_THICKNESS); in Update()
75 scaleValue_ = mode_ == SliderMode::INSET ? thickness_ / NormalizeToPx(DEFAULT_INSET_TRACK_THICKNESS) : in Update()
76 thickness_ / NormalizeToPx(DEFAULT_OUTSET_TRACK_THICKNESS); in Update()
139 const double focusPadding = NormalizeToPx(FOCUS_PADDING); in HandleFocus()
146 const double blockSize = NormalizeToPx(block->GetBlockSize()); in HandleFocus()
237 trackLength_ = NormalizeToPx(DEFAULT_SLIDER_WIDTH_DP) - 2 * NormalizeToPx(SLIDER_PADDING_DP); in Measure()
239 Size(NormalizeToPx(DEFAULT_SLIDER_HEIGHT_D in Measure()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/
H A Drosen_render_pattern_lock.cpp59 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadiusAnimatorToIncrease_), skPaintFill); in PaintLockCircle()
62 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadiusAnimatorToDecrease_), skPaintFill); in PaintLockCircle()
67 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadiusAnimatorToDecrease_), skPaintFill); in PaintLockCircle()
71 offsetX, offsetY, NormalizeToPx(circleRadius_ * SCALE_ACTIVE_CIRCLE_RADIUS), skPaintFill); in PaintLockCircle()
76 offsetX, offsetY, NormalizeToPx(circleRadius_ * SCALE_ACTIVE_CIRCLE_RADIUS), skPaintFill); in PaintLockCircle()
79 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadius_), skPaintFill); in PaintLockCircle()
99 RSPoint(offsetX, offsetY), NormalizeToPx(circleRadiusAnimatorToIncrease_)); in PaintLockCircle()
104 RSPoint(offsetX, offsetY), NormalizeToPx(circleRadiusAnimatorToDecrease_)); in PaintLockCircle()
112 RSPoint(offsetX, offsetY), NormalizeToPx(circleRadiusAnimatorToDecrease_)); in PaintLockCircle()
117 RSPoint(offsetX, offsetY), NormalizeToPx(circleRadius in PaintLockCircle()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/
H A Drosen_render_tool_bar_item.cpp58 DrawShape(*canvas, Rect(offset, GetLayoutSize()), GetEventEffectColor(), NormalizeToPx(rrectRadius_)); in Paint()
64 DrawShape(*canvas, Rect(offset, GetLayoutSize()), hoverColor_, NormalizeToPx(rrectRadius_)); in Paint()
73 GetPosition() + Offset(NormalizeToPx(TOOL_BAR_FOCUS_DEL_OFFSET), NormalizeToPx(TOOL_BAR_FOCUS_DEL_OFFSET)); in DrawFocus()
75 GetLayoutSize() - Size(NormalizeToPx(TOOL_BAR_FOCUS_DEL_SIZE), NormalizeToPx(TOOL_BAR_FOCUS_DEL_SIZE)); in DrawFocus()
77 GetGlobalOffset() + Offset(NormalizeToPx(TOOL_BAR_FOCUS_DEL_OFFSET), NormalizeToPx(TOOL_BAR_FOCUS_DEL_OFFSET)); in DrawFocus()
/foundation/arkui/ace_engine/frameworks/core/components/progress/
H A Drender_loading_progress.cpp351 diameter_ = NormalizeToPx(diameterDimension_); in PerformLayout()
352 ringRadius_ = NormalizeToPx(ringRadiusDimension_); in PerformLayout()
353 orbitRadius_ = NormalizeToPx(orbitRadiusDimension_); in PerformLayout()
362 defaultDiameter = NormalizeToPx(theme->GetLoadingDiameter()); in PerformLayout()
386 if (diameter <= NormalizeToPx(MODE_SMALL)) { in UpdateLoadingSize()
388 } else if (diameter <= NormalizeToPx(MODE_MIDDLE)) { in UpdateLoadingSize()
390 (diameter - NormalizeToPx(MODE_SMALL)) / (NormalizeToPx(MODE_MIDDLE) - NormalizeToPx(MODE_SMALL))); in UpdateLoadingSize()
391 } else if (diameter <= NormalizeToPx(MODE_LARG in UpdateLoadingSize()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Drosen_render_calendar.cpp163 topPadding_ = type_ == CalendarType::SIMPLE ? 0.0 : NormalizeToPx(calendarTheme_.topPadding); in PerformLayout()
164 weekFontSize_ = NormalizeToPx(calendarTheme_.weekFontSize); in PerformLayout()
165 dayFontSize_ = NormalizeToPx(calendarTheme_.dayFontSize); in PerformLayout()
166 lunarDayFontSize_ = NormalizeToPx(calendarTheme_.lunarDayFontSize); in PerformLayout()
167 workDayMarkSize_ = NormalizeToPx(calendarTheme_.workDayMarkSize); in PerformLayout()
168 offDayMarkSize_ = NormalizeToPx(calendarTheme_.offDayMarkSize); in PerformLayout()
169 focusedAreaRadius_ = NormalizeToPx(calendarTheme_.focusedAreaRadius); in PerformLayout()
170 weekHeight_ = NormalizeToPx(calendarTheme_.weekHeight); in PerformLayout()
171 dayHeight_ = NormalizeToPx(calendarTheme_.dayHeight); in PerformLayout()
172 weekWidth_ = NormalizeToPx(calendarTheme in PerformLayout()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/multimodal/
H A Drosen_render_multimodal.cpp66 auto width = NormalizeToPx(Dimension(DEFAULT_SIZE, DimensionUnit::VP)); in Paint()
67 auto height = NormalizeToPx(Dimension(DEFAULT_SIZE, DimensionUnit::VP)); in Paint()
68 auto corner = NormalizeToPx(Dimension(CORNER_RADIUS, DimensionUnit::VP)); in Paint()
83 if (paragraph_->GetLongestLine() > NormalizeToPx(Dimension(LIMIT_WIDTH, DimensionUnit::VP))) { in Paint()
84 width = height + (paragraph_->GetLongestLine() - NormalizeToPx(Dimension(LIMIT_WIDTH, DimensionUnit::VP))); in Paint()
87 if (paragraph_->GetActualWidth() > NormalizeToPx(Dimension(LIMIT_WIDTH, DimensionUnit::VP))) { in Paint()
88 width = height + (paragraph_->GetActualWidth() - NormalizeToPx(Dimension(LIMIT_WIDTH, DimensionUnit::VP))); in Paint()
135 txtStyle.font_size = NormalizeToPx(Dimension(FONT_SIZE, DimensionUnit::FP)); in UpdateParagraph()
139 txtStyle.fontSize = NormalizeToPx(Dimension(FONT_SIZE, DimensionUnit::FP)); in UpdateParagraph()
/foundation/arkui/ace_engine/test/unittest/base/
H A Ddimension_test.cpp129 * @tc.desc: Test the function NormalizeToPx of the class Dimension with -DEFAULT_DOUBLE.
135 * @tc.steps1: Test the function NormalizeToPx of the class Dimension with DIMENSION_PX. in HWTEST_F()
139 EXPECT_TRUE(DIMENSION_PX.NormalizeToPx(-DEFAULT_DOUBLE, -DEFAULT_DOUBLE, -DEFAULT_DOUBLE, -DEFAULT_DOUBLE, result)); in HWTEST_F()
143 * @tc.steps2: Test the function NormalizeToPx of the class Dimension with DIMENSION_VP. in HWTEST_F()
148 DIMENSION_VP.NormalizeToPx(-DEFAULT_DOUBLE, -DEFAULT_DOUBLE, -DEFAULT_DOUBLE, -DEFAULT_DOUBLE, result)); in HWTEST_F()
152 * @tc.steps3: Test the function NormalizeToPx of the class Dimension with DIMENSION_FP. in HWTEST_F()
157 DIMENSION_FP.NormalizeToPx(-DEFAULT_DOUBLE, -DEFAULT_DOUBLE, -DEFAULT_DOUBLE, -DEFAULT_DOUBLE, result)); in HWTEST_F()
161 * @tc.steps4: Test the function NormalizeToPx of the class Dimension with DIMENSION_LPX. in HWTEST_F()
166 DIMENSION_LPX.NormalizeToPx(-DEFAULT_DOUBLE, -DEFAULT_DOUBLE, -DEFAULT_DOUBLE, -DEFAULT_DOUBLE, result)); in HWTEST_F()
170 * @tc.steps5: Test the function NormalizeToPx o in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drosen_render_list.cpp247 strokeGeometry.setStrokeWidth(NormalizeToPx(1.0_vp)); in PaintSelectedZone()
262 strokeGeometry.SetWidth(NormalizeToPx(1.0_vp)); in PaintSelectedZone()
289 SkPoint::Make(NormalizeToPx(item->GetBorderRadius()), NormalizeToPx(item->GetBorderRadius())); in PaintItemZone()
291 SkPoint::Make(NormalizeToPx(item->GetBorderRadius()), NormalizeToPx(item->GetBorderRadius())); in PaintItemZone()
293 SkPoint::Make(NormalizeToPx(item->GetBorderRadius()), NormalizeToPx(item->GetBorderRadius())); in PaintItemZone()
295 SkPoint::Make(NormalizeToPx(item->GetBorderRadius()), NormalizeToPx(ite in PaintItemZone()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/
H A Dscroll_bar.cpp175 std::max(size.Height() - NormalizeToPx(startReservedHeight_) - NormalizeToPx(endReservedHeight_), 0.0); in SetBarRegion()
177 barRect_ = Rect(NormalizeToPx(padding_.Left()), 0.0, barWidth_, height) + offset; in SetBarRegion()
180 Rect(size.Width() - barWidth_ - NormalizeToPx(padding_.Right()), 0.0, barWidth_, height) + offset; in SetBarRegion()
183 std::max(size.Width() - NormalizeToPx(startReservedHeight_) - NormalizeToPx(endReservedHeight_), 0.0); in SetBarRegion()
185 Rect(0.0, size.Height() - barWidth_ - NormalizeToPx(padding_.Bottom()), trackWidth, barWidth_) + in SetBarRegion()
195 barRegionSize_ = std::max(mainSize - NormalizeToPx(endReservedHeight_) - NormalizeToPx(startReservedHeight_), 0.0); in SetRectTrickRegion()
203 std::max(std::max(activeSize, NormalizeToPx(minHeight in SetRectTrickRegion()
344 double ScrollBar::NormalizeToPx(const Dimension& dimension) const NormalizeToPx() function in OHOS::Ace::NG::ScrollBar
[all...]

Completed in 17 milliseconds

1234567