/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | rosen_render_capsule_track.cpp | 39 double progressWidth = canvasSize.Width(); in DrawShape() local 40 Size progressSize = Size(progressWidth, progressHeight); in DrawShape() 89 double progressWidth = progressSize.Width()*GetTotalRatio(); in DrawCapsuleProgressAnimation() local 94 if (LessNotEqual(progressWidth, radius)) { in DrawCapsuleProgressAnimation() 95 path.addArc({ progressWidth + offsetX, offsetY, progressSize.Height() - progressWidth + offsetX, in DrawCapsuleProgressAnimation() 98 } else if (GreatNotEqual(progressWidth, progressSize.Width() - radius)) { in DrawCapsuleProgressAnimation() 101 path.addArc({ (progressSize.Width() - radius) * 2.0 - progressWidth + offsetX, offsetY, progressWidth + offsetX, in DrawCapsuleProgressAnimation() 105 path.addRect({ radius + offsetX, offsetY, progressWidth in DrawCapsuleProgressAnimation() 157 double progressWidth = progressSize.Height()*GetTotalRatio(); DrawCapsuleProgressVerticalAnimation() local [all...] |
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_box_progress.cpp | 242 int16_t progressWidth; in DrawBackground() local 245 GetBackgroundParam(startPoint, progressWidth, progressHeight, radius, *backgroundStyle_); in DrawBackground() 247 Rect coords(startPoint.x, startPoint.y, startPoint.x + progressWidth - 1, startPoint.y + progressHeight - 1); in DrawBackground() 255 int16_t progressWidth; in DrawForeground() local 258 GetBackgroundParam(startPoint, progressWidth, progressHeight, radius, *foregroundStyle_); in DrawForeground() 263 length = GetCurrentPos(progressWidth - 1); in DrawForeground() 268 length = GetCurrentPos(progressWidth - 1); in DrawForeground() 269 coords.SetRect(startPoint.x + progressWidth - 1 - length, in DrawForeground() 270 startPoint.y, startPoint.x + progressWidth - 1, startPoint.y + progressHeight - 1); in DrawForeground() 275 coords.SetRect(startPoint.x, startPoint.y, startPoint.x + progressWidth in DrawForeground() [all...] |
H A D | ui_slider.cpp | 188 int16_t progressWidth; in DrawForeground() local 191 GetBackgroundParam(startPoint, progressWidth, progressHeight, radius, *foregroundStyle_); in DrawForeground() 203 foregroundRect.SetRect(startPoint.x, startPoint.y, startPoint.x + progressWidth - 1, in DrawForeground() 213 foregroundRect.SetRect(startPoint.x, startPoint.y, startPoint.x + progressWidth - 1, in DrawForeground() 216 right = startPoint.x + progressWidth + radius + 1; in DrawForeground()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_indicator/ |
H A D | linear_indicator_pattern.cpp | 81 float progressWidth = .0f; in IsChangeLayoutPropertyAndUpdate() local 82 if (CalcProgressWidth(progressWidth) && GreatNotEqual(strokeWidth.ConvertToPx(), progressWidth)) { in IsChangeLayoutPropertyAndUpdate() 83 strokeWidth = Dimension(progressWidth, DimensionUnit::PX); in IsChangeLayoutPropertyAndUpdate() 192 bool LinearIndicatorPattern::CalcProgressWidth(float& progressWidth) in CalcProgressWidth() argument 216 progressWidth = std::clamp(ret, .0f, width); in CalcProgressWidth()
|
H A D | linear_indicator_pattern.h | 78 bool CalcProgressWidth(float& progressWidth);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_modifier.cpp | 1451 double progressWidth = in PaintCapsule() local 1488 if (LessNotEqual(progressWidth, radius)) { in PaintCapsule() 1491 path.AddArc({ offsetX + progressWidth, offsetY, INT32_TWO * radius - progressWidth + offsetX, in PaintCapsule() 1495 path.AddArc({ offsetX + contentSize.Width() - INT32_TWO * radius + progressWidth, offsetY, in PaintCapsule() 1496 offsetX + contentSize.Width() - progressWidth, contentSize.Height() + offsetY }, in PaintCapsule() 1499 } else if (GreatNotEqual(progressWidth, contentSize.Width() - radius)) { in PaintCapsule() 1504 path.AddArc({ offsetX + (contentSize.Width() - radius) * FLOAT_TWO_ZERO - progressWidth, offsetY, in PaintCapsule() 1505 offsetX + progressWidth, contentSize.Height() + offsetY }, in PaintCapsule() 1508 path.AddArc({ offsetX + contentSize.Width() - progressWidth, offset in PaintCapsule() 1542 double progressWidth = PaintVerticalCapsule() local 1762 double progressWidth = (value_->Get() / maxValue_->Get()) * frameSize.Width(); PaintCapsuleForApiNine() local 1798 double progressWidth = (value_->Get() / maxValue_->Get()) * frameSize.Height(); PaintVerticalCapsuleForApiNine() local [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/linear_indicator/ |
H A D | linear_indicator_pattern_test_ng.cpp | 32 float progressWidth = 0.5f; in HWTEST_F() local 33 auto ret = pattern_->CalcProgressWidth(progressWidth); in HWTEST_F()
|