Home
last modified time | relevance | path

Searched refs:endAngle (Results 1 – 25 of 99) sorted by relevance

1234

/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_arc_scroll_bar.cpp78 int16_t endAngle; in DrawForeground() local
85 endAngle = startAngle + foregoundAngleRange; in DrawForeground()
89 endAngle = maxAngle - static_cast<int16_t>(scrollProgress_ * (maxAngle - minAngle)); in DrawForeground()
90 startAngle = endAngle - foregoundAngleRange; in DrawForeground()
92 if ((startAngle > endAngle_) || (endAngle < startAngle_)) { in DrawForeground()
99 arcInfo.endAngle = MATH_MIN(endAngle, endAngle_); in DrawForeground()
110 arcInfo.endAngle = endAngle_; in DrawBackground()
H A Dui_circle_progress.cpp43 void UICircleProgress::SetEndAngle(int16_t endAngle) in SetEndAngle() argument
45 endAngle_ = endAngle; in SetEndAngle()
89 int16_t endAngle; in DrawCommonCircle() local
91 GetRedrawAngle(startAngle, endAngle); in DrawCommonCircle()
104 arcinfo.endAngle = end; in DrawCommonCircle()
110 if ((startAngle != endAngle) || (foregroundStyle_->lineCap_ == CapType::CAP_ROUND)) { in DrawCommonCircle()
114 arcinfo.endAngle = endAngle; in DrawCommonCircle()
H A Dui_box_progress.cpp142 arcInfo.endAngle = 0; in DrawRoundCap()
148 arcInfo.endAngle = THREE_QUARTER_IN_DEGREE; in DrawRoundCap()
154 arcInfo.endAngle = QUARTER_IN_DEGREE; in DrawRoundCap()
160 arcInfo.endAngle = SEMICIRCLE_IN_DEGREE; in DrawRoundCap()
169 arcInfo.endAngle = 0; in DrawRoundCap()
175 arcInfo.endAngle = SEMICIRCLE_IN_DEGREE; in DrawRoundCap()
185 arcInfo.endAngle = QUARTER_IN_DEGREE; in DrawRoundCap()
191 arcInfo.endAngle = THREE_QUARTER_IN_DEGREE; in DrawRoundCap()
H A Dui_canvas.cpp131 sinma = radius * Sin(endAngle); in ArcTo()
160 sinma = radius * Sin(endAngle); in ArcTo()
174 if (startAngle > endAngle) { in SetArcParamInfo()
175 start = endAngle; in SetArcParamInfo()
179 end = endAngle; in SetArcParamInfo()
187 param.endAngle = end; in SetArcParamInfo()
624 start = endAngle; in DrawArc()
628 end = endAngle; in DrawArc()
633 arcParam->endAngle = end; in DrawArc()
1230 arcInfo.endAngle = arcParam->endAngle; in DoDrawArc()
[all …]
/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/
H A Dgeometry_arc.cpp66 void GeometryArc::Normalize(float startAngle, float endAngle, bool isClockwise) in Normalize() argument
72 while (endAngle < startAngle) { in Normalize()
73 endAngle += PI * FLOATNUM; in Normalize()
76 while (startAngle < endAngle) { in Normalize()
83 endAngle_ = endAngle; in Normalize()
88 float startAngle, float endAngle, bool isClockwise) in Init() argument
94 Normalize(startAngle, endAngle, isClockwise); in Init()
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_rect.cpp117 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon1()
159 arcInfo.endAngle = QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon2()
193 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon3()
236 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon4()
246 arcInfo.endAngle = QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon4()
320 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusEqualBorder()
330 arcInfo.endAngle = QUARTER_IN_DEGREE; in DrawRectRadiusEqualBorder()
399 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusSmallThanBorder()
489 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusBiggerThanBorderCon1()
510 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusBiggerThanBorderCon1()
[all …]
H A Ddraw_arc.cpp218 … (isCircle_ || (IS_IN_DEGREERANE(THREE_QUARTER_IN_DEGREE, arcInfo.startAngle, arcInfo.endAngle))) { in DrawAxisLine()
223 if (isCircle_ || (IS_IN_DEGREERANE(QUARTER_IN_DEGREE, arcInfo.startAngle, arcInfo.endAngle))) { in DrawAxisLine()
228 if (isCircle_ || (IS_IN_DEGREERANE(0, arcInfo.startAngle, arcInfo.endAngle))) { in DrawAxisLine()
233 … if (isCircle_ || (IS_IN_DEGREERANE(SEMICIRCLE_IN_DEGREE, arcInfo.startAngle, arcInfo.endAngle))) { in DrawAxisLine()
300 if (IS_IN_DEGREERANE(degree, arcInfo.startAngle, arcInfo.endAngle)) { in DrawLineWithDegreeInner()
384 if (isCircle_ || (IS_IN_DEGREERANE(degreeBase, arcInfo.startAngle, arcInfo.endAngle))) { in DrawPointAnti()
422 if (arcInfo.startAngle != arcInfo.endAngle) { in Draw()
438 endArcInfo.endAngle = CIRCLE_IN_DEGREE; in Draw()
456 temp = (outRadius - endArcInfo.radius + 1) * Sin(arcInfo.endAngle); in Draw()
459 temp = (outRadius - endArcInfo.radius + 1) * Sin(QUARTER_IN_DEGREE - arcInfo.endAngle); in Draw()
[all …]
H A Dclip_utils.cpp53 ClipPath& ClipPath::Arc(const PointF& center, float radius, int16_t startAngle, int16_t endAngle) in Arc() argument
55 if (startAngle == endAngle) { in Arc()
65 if (MATH_ABS(startAngle - endAngle) < CIRCLE_IN_DEGREE) { in Arc()
66 sinma = radius * Sin(endAngle); in Arc()
67 cosma = radius * Sin(QUARTER_IN_DEGREE - endAngle); in Arc()
73 int16_t angle = endAngle - startAngle; in Arc()
H A Ddraw_label.cpp318 if (letterInfo.currentAngle > letterInfo.endAngle) { in CalculatedClipAngle()
319 angle = letterInfo.currentAngle - letterInfo.endAngle; in CalculatedClipAngle()
326 if (letterInfo.currentAngle > letterInfo.endAngle) { in CalculatedClipAngle()
327 angle = letterInfo.currentAngle - letterInfo.endAngle; in CalculatedClipAngle()
336 if (letterInfo.currentAngle < letterInfo.endAngle) { in CalculatedClipAngle()
337 angle = letterInfo.endAngle - letterInfo.currentAngle; in CalculatedClipAngle()
344 if (letterInfo.currentAngle < letterInfo.endAngle) { in CalculatedClipAngle()
365 if (letterInfo.currentAngle > letterInfo.endAngle) { in OnCalculatedClockwise()
378 if (letterInfo.currentAngle > letterInfo.endAngle) { in OnCalculatedClockwise()
401 if (letterInfo.currentAngle < letterInfo.endAngle) { in OnCalculatedAnticlockwise()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/triangle/
H A Drender_triangle.cpp37 double endAngle = PI + PI / 2.0; in Calculate() local
38 double startAngle = endAngle - topAngle; in Calculate()
42 outArc1_.SetEndAngle(endAngle); in Calculate()
47 endAngle = startAngle + topAngle; in Calculate()
51 outArc2_.SetEndAngle(endAngle); in Calculate()
56 endAngle = startAngle + bottomAngle; in Calculate()
60 outArc3_.SetEndAngle(endAngle); in Calculate()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dcanvas_path.cpp61 void NativeCanvasPath::Arc(double x, double y, double radius, double startAngle, double endAngle, b… in Arc() argument
63 path2d_->Arc(x, y, radius, startAngle, endAngle, anticlockwise); in Arc()
82 double endAngle, bool anticlockwise) in Ellipse() argument
84 path2d_->Ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise); in Ellipse()
H A Dcanvas_path.h36 …void Arc(double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise…
41 double endAngle, bool anticlockwise);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_canvas_path.cpp73 double endAngle = 0.0; in JsPath2DArc() local
75 info.GetDoubleArg(3, startAngle) && info.GetDoubleArg(4, endAngle)) { in JsPath2DArc()
79 … path2d_->Arc(x * density, y * density, radius * density, startAngle, endAngle, anticlockwise); in JsPath2DArc()
142 double endAngle = 0.0; in JsPath2DEllipse() local
145 info.GetDoubleArg(6, endAngle)) { in JsPath2DEllipse()
150 startAngle, endAngle, anticlockwise); in JsPath2DEllipse()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dgradient_property.cpp107 auto endAngle = sweepGradient_->endAngle; in SweepGradientToJson() local
111 if (endAngle) { in SweepGradientToJson()
112 resultJson->Put("end", endAngle->ToString().c_str()); in SweepGradientToJson()
H A Dgradient_property.h255 std::optional<Dimension> endAngle; member
262 endAngle == other.endAngle && rotation == other.rotation);
274 if (sweepGradient_->startAngle.has_value() && sweepGradient_->endAngle.has_value()) { in IsSweepGradientValid()
275 …return LessOrEqual(sweepGradient_->startAngle.value().Value(), sweepGradient_->endAngle.value().Va… in IsSweepGradientValid()
277 if (sweepGradient_->startAngle.has_value() && !sweepGradient_->endAngle.has_value()) { in IsSweepGradientValid()
280 if (!sweepGradient_->startAngle.has_value() && sweepGradient_->endAngle.has_value()) { in IsSweepGradientValid()
281 return LessOrEqual(0.0, sweepGradient_->endAngle.value().Value()); in IsSweepGradientValid()
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_progress_bar/
H A Dui_test_circle_progress.cpp357 static int16_t endAngle = 360; // 360: end angle in OnClick() local
370 endAngle = 360; // 360: end angle in OnClick()
379 circleProgress_->SetEndAngle(endAngle); in OnClick()
440 endAngle++; in OnClick()
441 circleProgress_->SetEndAngle(endAngle); in OnClick()
443 endAngle--; in OnClick()
444 circleProgress_->SetEndAngle(endAngle); in OnClick()
447 startAngle = endAngle; in OnClick()
448 endAngle = angle; in OnClick()
450 circleProgress_->SetEndAngle(endAngle); in OnClick()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-basic-components-gauge.md82 ### endAngle subsection
84 endAngle(angle: number)
308 .endAngle(150)
360 .endAngle(150)
411 .endAngle(150)
466 .endAngle(150)
514 .endAngle(135)
562 .endAngle(135)
578 该示例通过startAngle、endAngle接口,实现了量规图起止角度设置的功能。
601 .endAngle(135)
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_arc_label_unit_test.cpp177 const int16_t endAngle = 10; variable
178 arcLabel_->SetArcTextAngle(0, endAngle);
180 EXPECT_EQ(arcLabel_->GetArcTextEndAngle(), endAngle);
H A Dui_circle_progress_unit_test.cpp135 const int16_t endAngle = 90; variable
142 circleProgress_->SetEndAngle(endAngle);
143 EXPECT_EQ(circleProgress_->GetEndAngle(), endAngle);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/effect/
H A Dshader_effect_test.cpp292 scalar endAngle = 0.5f; variable
294 …ffect::CreateSweepGradient(centerPoint, colors, position, tileMode, startAngle, endAngle, nullptr);
312 scalar endAngle = 10.5f; variable
314 …ffect::CreateSweepGradient(centerPoint, colors, position, tileMode, startAngle, endAngle, nullptr);
611 scalar endAngle = 55.7f; variable
615 …ct::ShaderEffectType::BLEND, centerPoint, colors, position, TileMode::REPEAT, startAngle, endAngle,
631 scalar endAngle = 4.65f; variable
635 colors, position, TileMode::REPEAT, startAngle, endAngle, nullptr);
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_arc_label.h276 void SetArcTextAngle(int16_t startAngle, int16_t endAngle) in SetArcTextAngle() argument
278 if ((startAngle_ != startAngle) || (endAngle_ != endAngle)) { in SetArcTextAngle()
280 endAngle_ = endAngle; in SetArcTextAngle()
H A Dui_canvas.h246 …void DrawSector(const Point& center, uint16_t radius, int16_t startAngle, int16_t endAngle, const …
265 …void DrawArc(const Point& center, uint16_t radius, int16_t startAngle, int16_t endAngle, const Pai…
365 void ArcTo(const Point& center, uint16_t radius, int16_t startAngle, int16_t endAngle);
483 int16_t endAngle; member
711 … void SetArcParamInfo(const Point& center, uint16_t radius, int16_t startAngle, int16_t endAngle);
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dcanvas_component.cpp1749 int16_t endAngle = 0; in Arc() local
1762 endAngle = endAngle + DEGREES_OFFSET; in Arc()
1765 endAngle = endAngle + DEGREES_OFFSET - DEGREES_360; in Arc()
2253 endAngle = startAngle + DEGREES_360; in FormatArcAngle()
2256 if (startAngle <= endAngle) { in FormatArcAngle()
2259 while (startAngle >= endAngle) { in FormatArcAngle()
2264 endAngle = endAngle + DEGREES_360; in FormatArcAngle()
2269 endAngle = startAngle - DEGREES_360; in FormatArcAngle()
2272 if (startAngle >= endAngle) { in FormatArcAngle()
2275 while (startAngle <= endAngle) { in FormatArcAngle()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_canvas_ffi.h56 double endAngle; member
90 double endAngle; member
151 …int64_t selfId, double x, double y, double radius, double startAngle, double endAngle, bool anticl…
155 double radiusY, double rotation, double startAngle, double endAngle, bool anticlockwise);
H A Dcj_canvas_ffi.cpp85 ArcParam GetArcParam(double x, double y, double radius, double startAngle, double endAngle, bool an… in GetArcParam() argument
92 param.endAngle = endAngle; in GetArcParam()
109 double endAngle, bool anticlockwise) in GetEllipseParam() argument
118 param.endAngle = endAngle; in GetEllipseParam()
573 …int64_t contextId, double x, double y, double radius, double startAngle, double endAngle, bool ant… in FfiOHOSAceFrameworkRenderingContextArc() argument
577 auto arcParam = GetArcParam(x, y, radius, startAngle, endAngle, anticlockwise); in FfiOHOSAceFrameworkRenderingContextArc()
597 double rotation, double startAngle, double endAngle, bool anticlockwise) in FfiOHOSAceFrameworkRenderingContextEllipse() argument
601 …auto arcParam = GetEllipseParam(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockw… in FfiOHOSAceFrameworkRenderingContextEllipse()
905 path2d->Arc(x, y, radius, params.startAngle, params.endAngle, anticlockwise); in FfiOHOSAceFrameworkCanvasPathArc()
964 …path2d->Ellipse(x, y, radiusX, radiusY, params.rotation, params.startAngle, params.endAngle, antic… in FfiOHOSAceFrameworkCanvasPathEllipse()

1234