/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/loading_progress/ |
H A D | loading_progress_utill.h | 50 static float GetRingRadius(float diameter) in GetRingRadius() argument 55 static float GetOrbitRadius(float diameter) in GetOrbitRadius() argument 60 static float GetRingStrokeWidth(float diameter) in GetRingStrokeWidth() argument 62 if (LessOrEqual(diameter, MODE_16.ConvertToPx())) { in GetRingStrokeWidth() 65 return GetMostStrokeWidth(diameter); in GetRingStrokeWidth() 77 static float GetRingDarkRadius(float diameter) in GetRingDarkRadius() argument 79 if (LessOrEqual(diameter, MODE_16.ConvertToPx())) { in GetRingDarkRadius() 108 static float GetCometRadius(float diameter) in GetCometRadius() argument 113 return GetMostCometRadius(diameter); in GetCometRadius() 125 static float GetMostStrokeWidth(float diameter) in GetMostStrokeWidth() argument [all …]
|
H A D | loading_progress_layout_algorithm.cpp | 38 auto diameter = std::min(width_, height_); in MeasureContent() local 39 return SizeF(diameter, diameter); in MeasureContent()
|
H A D | loading_progress_modifier.cpp | 111 auto diameter = std::min(contentSize_->Get().Width(), contentSize_->Get().Height()); in onDraw() local 113 ringParam.strokeWidth = LoadingProgressUtill::GetRingStrokeWidth(diameter) * sizeScale_->Get(); in onDraw() 114 ringParam.radius = LoadingProgressUtill::GetRingRadius(diameter) * sizeScale_->Get(); in onDraw() 117 … ringParam.darkRingRadius = LoadingProgressUtill::GetRingDarkRadius(diameter) * sizeScale_->Get(); in onDraw() 118 …ringParam.darkBackgroundWidth = LoadingProgressUtill::GetRingDarkBackgroundWidth(diameter) * sizeS… in onDraw() 119 …ringParam.darkBackgroundRadius = LoadingProgressUtill::GetRingDarkBackgroundRadius(diameter) * siz… in onDraw() 122 cometParam.radius = LoadingProgressUtill::GetCometRadius(diameter) * sizeScale_->Get(); in onDraw() 127 auto orbitRadius = LoadingProgressUtill::GetOrbitRadius(diameter) * sizeScale_->Get(); in onDraw()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | render_track.cpp | 197 diameter = in Measure() 199 return Size(diameter, diameter); in Measure() 202 return Size(diameter, diameter); in Measure() 214 diameter = in Measure() 216 return Size(diameter, diameter); in Measure() 219 return Size(diameter, diameter); in Measure() 231 diameter = in Measure() 233 return Size(diameter, diameter); in Measure() 236 return Size(diameter, diameter); in Measure() 250 return Size(diameter, diameter); in Measure() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/ |
H A D | gauge_layout_algorithm.cpp | 160 auto diameter = radius * 2.0f; in MeasureLimitValueTextWidth() local 184 auto height = diameter * LIMIT_VALUE_MIN_OR_MAX_HEIGHT_RATIO; in MeasureLimitValueText() 213 auto width = diameter * DESCRIPTION_NODE_WIDTH_RATIO; in MeasureDescription() 214 auto height = diameter * DESCRIPTION_NODE_HEIGHT_RATIO; in MeasureDescription() 221 width = diameter * DESCRIPTION_IMAGE_NODE_WIDTH_RATIO; in MeasureDescription() 222 height = diameter * DESCRIPTION_IMAGE_NODE_HEIGHT_RATIO; in MeasureDescription() 248 childLayoutConstraint.maxSize = { diameter, diameter }; in MeasureTitleChild() 249 childLayoutConstraint.selfIdealSize = { diameter, diameter }; in MeasureTitleChild() 287 …dOffset = circularOffset + OffsetF(DESCRIPTION_IMAGE_X * diameter, DESCRIPTION_IMAGE_Y * diameter); in Layout() 289 … childOffset = circularOffset + OffsetF(DESCRIPTION_X * diameter, DESCRIPTION_Y * diameter); in Layout() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/progress/ |
H A D | bubble_progress_component.h | 31 explicit BubbleProgressComponent(double diameter) : diameter_(diameter) {} in BubbleProgressComponent() argument 42 void SetDiameter(const Dimension& diameter) in SetDiameter() argument 44 diameter_ = diameter; in SetDiameter()
|
H A D | loading_progress_component.h | 39 explicit LoadingProgressComponent(double diameter) : diameter_(diameter) {}; in LoadingProgressComponent() argument 50 void SetDiameter(const Dimension& diameter) in SetDiameter() argument 52 diameter_ = diameter; in SetDiameter()
|
H A D | render_loading_progress.h | 42 void SetDiameter(const Dimension& diameter) in SetDiameter() argument 45 if (!NearEqual(NormalizeToPx(diameter), diameter_)) { in SetDiameter() 46 diameterDimension_ = diameter; in SetDiameter() 88 void UpdateLoadingSize(double diameter);
|
H A D | render_bubble_progress.h | 42 void SetDiameter(double diameter) in SetDiameter() argument 44 diameter_ = diameter; in SetDiameter()
|
H A D | render_loading_progress.cpp | 384 void RenderLoadingProgress::UpdateLoadingSize(double diameter) in UpdateLoadingSize() argument 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_LARGE)) { in UpdateLoadingSize() 393 …(diameter - NormalizeToPx(MODE_MIDDLE)) / (NormalizeToPx(MODE_LARGE) - NormalizeToPx(MODE_MIDDLE))… in UpdateLoadingSize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/data_panel/ |
H A D | rosen_render_data_panel.cpp | 54 center.GetY() - diameter / 2 + thickness / 2, diameter - thickness, diameter - thickness); in PaintTrackBackground() 69 …RSRect rect(center.GetX() - diameter / 2 + thickness / 2, center.GetY() - diameter / 2 + thickness… 70 center.GetX() - diameter / 2 + thickness / 2 + diameter - thickness, 71 center.GetY() - diameter / 2 + thickness / 2 + diameter - thickness); 726 diameter, thickness); in PaintEffectedLoadingProgress() 727 thickness = diameter * 0.1; in PaintEffectedLoadingProgress() 790 diameter, thickness); in PaintLoadingProgress() 791 thickness = diameter * 0.1; in PaintLoadingProgress() 799 center.GetY() - diameter / 2 + thickness / 2, diameter - thickness, diameter - thickness); in PaintLoadingProgress() 822 (center.GetX() - diameter / 2 + thickness / 2) + diameter - thickness, in PaintLoadingProgress() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/slider/ |
H A D | rosen_render_circle_block.cpp | 56 double diameter = radius * 2.0; in SyncGeometryProperties() local 59 SkRect rect = SkRect::MakeXYWH(frame.x_ - radius, frame.y_ - radius, diameter, diameter); in SyncGeometryProperties() 93 diameter + frame.x_ - radius, diameter + frame.y_ - radius); in SyncGeometryProperties() 254 double diameter = radius * 2.0; in PaintShadow() local 256 …SkRect rect = SkRect::MakeXYWH(offset.GetX() - radius, offset.GetY() - radius, diameter, diameter); in PaintShadow() 262 diameter + offset.GetX() - radius, diameter + offset.GetY() - radius); in PaintShadow()
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-animation-smoothing.md | 82 diameter: number = 50; 87 Circle({ width: this.diameter, height: this.diameter }) 97 this.positionX = event.touches[0].windowX - this.diameter / 2; 98 this.positionY = event.touches[0].windowY - this.diameter / 2;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_layout_algorithm.cpp | 65 float diameter = in MeasureContent() local 74 width_ = diameter; in MeasureContent() 112 float diameter = in MeasureContentForApiNine() local 126 width_ = diameter; in MeasureContentForApiNine() 135 height_ = diameter; in MeasureContentForApiNine() 138 width_ = diameter; in MeasureContentForApiNine()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_scroll_bar_painter.cpp | 71 double diameter = rootSize.Width() - scrollBarWidth; in PaintCircleBar() local 73 …Rect::MakeXYWH(scrollBarWidth * SK_ScalarHalf, scrollBarWidth * SK_ScalarHalf, diameter, diameter); in PaintCircleBar() 106 double diameter = rootSize.Width() - scrollBarWidth; in PaintCircleBar() local 110 diameter + scrollBarWidth * FLOAT_HALF, in PaintCircleBar() 111 diameter + scrollBarWidth * FLOAT_HALF); in PaintCircleBar()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-foreground-color.md | 38 // Draw a circle with a diameter of 150 and the default fill color black. 40 // Draw a circle with a diameter of 150. 60 // Draw a circle with a diameter of 150 and the default fill color black. 62 …// Draw a circle with a diameter of 150 and set its foreground color to the inverse of the compone…
|
H A D | ts-drawing-components-circle.md | 233 // Draw a circle whose diameter is 150. 235 …le whose diameter is 150 and stroke color is red. (If the width and height values are different, t…
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-geometric-shape-drawing.md | 32 …e, and the **height** parameter indicates the height of the circle. The diameter of the circle is … 75 …th 75. Fill the viewport with a blue rectangle and draw a circle with a diameter of 75 in the view… 88 … 300. Fill the viewport with a green rectangle and draw a circle with a diameter of 75 in the view… 293 …aw a circle with a diameter of 150 mm and a ring with a diameter of 150 mm and a red dotted line (… 301 // Draw a circle whose diameter is 150. 303 // Draw a ring with a diameter of 150 mm and a red dotted line.
|
H A D | arkts-animation-smoothing.md | 78 diameter: number = 50; 83 Circle({ width: this.diameter, height: this.diameter }) 94 this.positionX = event.touches[0].windowX - this.diameter / 2; 95 this.positionY = event.touches[0].windowY - this.diameter / 2;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | scroll_bar.cpp | 105 double diameter = std::min(size.Width(), size.Height()); in SetRoundTrickRegion() local 106 if (!NearEqual(estimatedHeight, diameter)) { in SetRoundTrickRegion() 108 trickSweepAngle_ = std::max(diameter * maxAngle / estimatedHeight, minAngle_); in SetRoundTrickRegion() 110 …ouble trickStartAngle = (maxAngle - trickSweepAngle_) * lastOffsetY / (estimatedHeight - diameter); in SetRoundTrickRegion()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/button/ |
H A D | button_declaration.h | 39 Dimension diameter; member 168 return style.diameter; in GetProgressDiameter() 398 void SetProgressDiameter(const Dimension& diameter) in SetProgressDiameter() argument 401 style.diameter = diameter; in SetProgressDiameter()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/refresh/ |
H A D | render_refresh.cpp | 482 double diameter = 0.0; in GetLoadingDiameter() local 484 return diameter; in GetLoadingDiameter() 490 … diameter = ((actualDistance * loadingDiameter_ * HALF) / maxDistance) + loadingDiameter_ * HALF; in GetLoadingDiameter() 492 diameter = loadingDiameter_; in GetLoadingDiameter() 494 return diameter; in GetLoadingDiameter()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/input/ |
H A D | dom_radio_util.cpp | 81 auto diameter = boxComponent->GetHeightDimension() > boxComponent->GetWidthDimension() in CreateComponentAndSetChildAttr() local 86 backDecoration->SetBorderRadius(Radius(diameter / 2.0)); in CreateComponentAndSetChildAttr()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/button/ |
H A D | button_component.cpp | 230 void ButtonComponent::SetProgressDiameter(const Dimension& diameter) in SetProgressDiameter() argument 232 declaration_->SetProgressDiameter(diameter); in SetProgressDiameter()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | base_text_select_overlay.cpp | 760 auto diameter = GetHandleDiameter(); in GetHandlePoints() local 762 auto offsetX = handlePaintRect.Left() + (handlePaintRect.Width() - diameter) / 2.0f; in GetHandlePoints() 763 auto offsetY = handleOnTop ? handlePaintRect.Top() - diameter : handlePaintRect.Bottom(); in GetHandlePoints() 765 handlePaintRect.SetSize(SizeF(diameter, diameter)); in GetHandlePoints()
|