Home
last modified time | relevance | path

Searched refs:ellipse (Results 1 - 11 of 11) sorted by relevance

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_ellipse.cpp51 auto ellipse = AceType::MakeRefPtr<Ellipse>(); in ConstructorCallback() local
60 ellipse->SetWidth(dimWidth); in ConstructorCallback()
63 ellipse->SetHeight(dimHeight); in ConstructorCallback()
67 ellipse->SetWidth(dimWidth); in ConstructorCallback()
70 ellipse->SetHeight(dimHeight); in ConstructorCallback()
75 jsEllipse->SetBasicShape(ellipse); in ConstructorCallback()
H A Djs_ellipse_shape.cpp22 auto ellipse = AceType::MakeRefPtr<Ellipse>(); in ConstructorCallback() local
29 ellipse->SetWidth(dimWidth); in ConstructorCallback()
34 ellipse->SetHeight(dimHeight); in ConstructorCallback()
39 jsEllipse->SetBasicShape(ellipse); in ConstructorCallback()
/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drender_svg_ellipse.cpp34 LOGW("ellipse component is null"); in Update()
50 LOGW("ellipse component is null"); in PrepareAnimations()
66 auto ellipse = weak.Upgrade(); in PrepareSelfAnimation()
67 if (!ellipse) { in PrepareSelfAnimation()
68 LOGE("ellipse is null"); in PrepareSelfAnimation()
71 if (ellipse->SetProperty(attributeName, value)) { in PrepareSelfAnimation()
72 ellipse->MarkNeedRender(true); in PrepareSelfAnimation()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dshape_abstract.cpp88 auto ellipse = AceType::MakeRefPtr<Ellipse>(); in NativeEllipse() local
89 ellipse->SetWidth(width); in NativeEllipse()
90 ellipse->SetHeight(height); in NativeEllipse()
91 SetBasicShape(ellipse); in NativeEllipse()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dclip_path.cpp125 tmp = value.find("ellipse("); in GetBasicShapeInfo()
127 first = tmp + std::strlen("ellipse("); in GetBasicShapeInfo()
187 auto ellipse = CreateEllipseSize(StringUtils::TrimStr(data.substr(0, atIndex))); in CreateEllipse() local
188 if (!ellipse) { in CreateEllipse()
194 ellipse->SetAxisX(axis.at(0)); in CreateEllipse()
197 ellipse->SetAxisX(axis.at(0)); in CreateEllipse()
198 ellipse->SetAxisY(axis.at(1)); in CreateEllipse()
200 return ellipse; in CreateEllipse()
213 auto ellipse = AceType::MakeRefPtr<Ellipse>(); in CreateEllipseSize() local
214 ellipse in CreateEllipseSize()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_content_modifier.cpp572 auto ellipse = DynamicCast<Ellipse>(shape_); in DrawBlockShape() local
573 CHECK_NULL_VOID(ellipse); in DrawBlockShape()
574 DrawBlockShapeEllipse(context, ellipse); in DrawBlockShape()
639 void SliderContentModifier::DrawBlockShapeEllipse(DrawingContext& context, RefPtr<Ellipse>& ellipse) in DrawBlockShapeEllipse() argument
805 auto ellipse = DynamicCast<Ellipse>(shape_); in SetBlockShape() local
806 CHECK_NULL_VOID(ellipse); in SetBlockShape()
807 if (ellipse->GetRadiusX().IsValid() && ellipse->GetRadiusY().IsValid()) { in SetBlockShape()
808 ellipseRadiusX_->Set(ellipse->GetRadiusX().ConvertToPx()); in SetBlockShape()
809 ellipseRadiusY_->Set(ellipse in SetBlockShape()
[all...]
H A Dslider_content_modifier.h288 void DrawBlockShapeEllipse(DrawingContext& context, RefPtr<Ellipse>& ellipse);
/foundation/arkui/ace_engine/frameworks/core/components/box/
H A Drosen_render_box.cpp1048 const auto& ellipse = AceType::DynamicCast<Ellipse>(basicShape); local
1049 if (!ellipse) {
1050 LOGE("ellipse is null");
1053 if (ellipse->GetRadiusX().IsValid()) {
1054 float rx = DimensionToPx(ellipse->GetRadiusX(), size, LengthMode::HORIZONTAL);
1055 float ry = DimensionToPx(ellipse->GetRadiusY(), size, LengthMode::VERTICAL);
1056 double x = DimensionToPx(ellipse->GetAxisX(), size, LengthMode::HORIZONTAL) + position.GetX() - rx;
1057 double y = DimensionToPx(ellipse->GetAxisY(), size, LengthMode::VERTICAL) + position.GetY() - ry;
1066 auto width = DimensionToPx(ellipse->GetWidth(), size, LengthMode::HORIZONTAL);
1067 auto height = DimensionToPx(ellipse
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dskia_decoration_painter.cpp843 const auto& ellipse = AceType::DynamicCast<Ellipse>(basicShape); in SkiaCreateEllipse() local
844 CHECK_NULL_VOID(ellipse); in SkiaCreateEllipse()
845 if (ellipse->GetRadiusX().IsValid()) { in SkiaCreateEllipse()
846 float rx = SkiaDimensionToPx(ellipse->GetRadiusX(), size, LengthMode::HORIZONTAL); in SkiaCreateEllipse()
847 float ry = SkiaDimensionToPx(ellipse->GetRadiusY(), size, LengthMode::VERTICAL); in SkiaCreateEllipse()
848 double x = SkiaDimensionToPx(ellipse->GetAxisX(), size, LengthMode::HORIZONTAL) + position.GetX() - rx; in SkiaCreateEllipse()
849 double y = SkiaDimensionToPx(ellipse->GetAxisY(), size, LengthMode::VERTICAL) + position.GetY() - ry; in SkiaCreateEllipse()
853 auto width = SkiaDimensionToPx(ellipse->GetWidth(), size, LengthMode::HORIZONTAL); in SkiaCreateEllipse()
854 auto height = SkiaDimensionToPx(ellipse->GetHeight(), size, LengthMode::VERTICAL); in SkiaCreateEllipse()
855 float x = SkiaDimensionToPx(ellipse in SkiaCreateEllipse()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/
H A Ddrawing_decoration_painter.cpp821 const auto& ellipse = AceType::DynamicCast<Ellipse>(basicShape); in DrawingCreateEllipse() local
822 CHECK_NULL_VOID(ellipse); in DrawingCreateEllipse()
823 if (ellipse->GetRadiusX().IsValid()) { in DrawingCreateEllipse()
824 float rx = DrawingDimensionToPx(ellipse->GetRadiusX(), size, LengthMode::HORIZONTAL); in DrawingCreateEllipse()
825 float ry = DrawingDimensionToPx(ellipse->GetRadiusY(), size, LengthMode::VERTICAL); in DrawingCreateEllipse()
826 double x = DrawingDimensionToPx(ellipse->GetAxisX(), size, LengthMode::HORIZONTAL) + position.GetX() - rx; in DrawingCreateEllipse()
827 double y = DrawingDimensionToPx(ellipse->GetAxisY(), size, LengthMode::VERTICAL) + position.GetY() - ry; in DrawingCreateEllipse()
831 auto width = DrawingDimensionToPx(ellipse->GetWidth(), size, LengthMode::HORIZONTAL); in DrawingCreateEllipse()
832 auto height = DrawingDimensionToPx(ellipse->GetHeight(), size, LengthMode::VERTICAL); in DrawingCreateEllipse()
833 float x = DrawingDimensionToPx(ellipse in DrawingCreateEllipse()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/slider/
H A Dslider_modifier_test_ng.cpp682 * @tc.desc: TEST slider_content_modifier SetBlockShape with invalid ellipse
693 * @tc.steps: step2. call SetBlockShape function with invalid ellipse. in HWTEST_F()
1352 auto ellipse = AccessibilityManager::DynamicCast<Ellipse>(sliderContentModifier.shape_); in HWTEST_F() local
1353 CHECK_NULL_VOID(ellipse); in HWTEST_F()
1357 sliderContentModifier.DrawBlockShapeEllipse(context, ellipse); in HWTEST_F()
1362 sliderContentModifier.DrawBlockShapeEllipse(context, ellipse); in HWTEST_F()
1366 sliderContentModifier.DrawBlockShapeEllipse(context, ellipse); in HWTEST_F()

Completed in 13 milliseconds