/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | clip_path.h | 50 explicit ClipPath(const RefPtr<BasicShape>& basicShape) : basicShape_(basicShape) {} in ClipPath() argument 51 ClipPath(GeometryBoxType geometryBoxType, const RefPtr<BasicShape>& basicShape) in ClipPath() argument 52 : geometryBoxType_(geometryBoxType), basicShape_(basicShape) in ClipPath() 70 void SetBasicShape(const RefPtr<BasicShape>& basicShape) in SetBasicShape() argument 72 basicShape_ = basicShape; in SetBasicShape() 104 explicit MaskPath(const RefPtr<BasicShape>& basicShape) : basicShape_(basicShape) {} in MaskPath() argument 105 MaskPath(GeometryBoxType geometryBoxType, const RefPtr<BasicShape>& basicShape) in MaskPath() argument 106 : geometryBoxType_(geometryBoxType), basicShape_(basicShape) in MaskPath() 120 void SetBasicShape(const RefPtr<BasicShape>& basicShape) in SetBasicShape() argument 122 basicShape_ = basicShape; in SetBasicShape()
|
H A D | clip_path.cpp | 307 RefPtr<BasicShape> basicShape = nullptr; in CreateShape() local 310 basicShape = CreateCircle(data); in CreateShape() 314 basicShape = CreateEllipse(data); in CreateShape() 318 basicShape = CreateInset(data); in CreateShape() 322 basicShape = CreatePath(data); in CreateShape() 326 basicShape = CreatePolygon(data); in CreateShape() 334 if (basicShape) { in CreateShape() 335 return AceType::MakeRefPtr<ClipPath>(basicShape); in CreateShape()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | rosen_render_box.h | 180 …bool CreateSkPath(const RefPtr<BasicShape>& basicShape, GeometryBoxType geometryBoxType, SkPath* s… 181 …bool CreateInset(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, S… 185 …bool CreatePath(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, Sk… 186 …bool CreateRect(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, Sk… 189 const RefPtr<BasicShape>& basicShape, GeometryBoxType geometryBoxType, RSPath* drawingPath); 190 bool CreateInset(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, 192 … bool CreateCircle(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, 194 … bool CreateEllipse(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, 196 … bool CreatePolygon(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, 198 bool CreatePath(const RefPtr<BasicShape>& basicShape, const Size& size, const Offset& position, [all …]
|
H A D | rosen_render_box.cpp | 868 if (basicShape == nullptr || basicShape->GetBasicShapeType() == BasicShapeType::NONE) { 873 switch (basicShape->GetBasicShapeType()) { 875 ret = CreateInset(basicShape, size, position, skPath); 879 ret = CreateCircle(basicShape, size, position, skPath); 891 ret = CreatePath(basicShape, size, position, skPath); 895 ret = CreateRect(basicShape, size, position, skPath); 913 if (basicShape == nullptr || basicShape->GetBasicShapeType() == BasicShapeType::NONE) { 919 switch (basicShape->GetBasicShapeType()) { 962 const auto& inset = AceType::DynamicCast<Inset>(basicShape); 1012 const auto& circle = AceType::DynamicCast<Circle>(basicShape); [all …]
|
H A D | rosen_mask_painter.cpp | 160 const auto& basicShape = maskPath_->GetBasicShape(); in GetPathPaint() local 161 if (basicShape == nullptr) { in GetPathPaint() 169 paint.setColor(basicShape->GetColor().GetValue()); in GetPathPaint() 172 brush.SetColor(basicShape->GetColor().GetValue()); in GetPathPaint()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/ |
H A D | drawing_decoration_painter.h | 40 … static RSRecordingPath DrawingCreatePath(const RefPtr<BasicShape>& basicShape, const SizeF& size); 42 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, RSPath& rsPath); 44 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, RSPath& rsPath); 46 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, RSPath& rsPath); 48 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, RSPath& rsPath); 50 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, RSPath& rsPath); 52 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, RSPath& rsPath); 65 static RSBrush CreateMaskDrawingBrush(const RefPtr<BasicShape>& basicShape);
|
H A D | drawing_decoration_painter.cpp | 728 if (basicShape == nullptr || basicShape->GetBasicShapeType() == BasicShapeType::NONE) { in DrawingCreatePath() 735 switch (basicShape->GetBasicShapeType()) { in DrawingCreatePath() 737 DrawingCreateInset(basicShape, size, position, rsPath); in DrawingCreatePath() 741 DrawingCreateCircle(basicShape, size, position, rsPath); in DrawingCreatePath() 753 DrawingCreatePath(basicShape, size, position, rsPath); in DrawingCreatePath() 757 DrawingCreateRect(basicShape, size, position, rsPath); in DrawingCreatePath() 771 const auto& inset = AceType::DynamicCast<Inset>(basicShape); in DrawingCreateInset() 802 const auto& circle = AceType::DynamicCast<Circle>(basicShape); in DrawingCreateCircle() 860 const auto& path = AceType::DynamicCast<Path>(basicShape); in DrawingCreatePath() 879 const auto& rect = AceType::DynamicCast<ShapeRect>(basicShape); in DrawingCreateRect() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | skia_decoration_painter.h | 50 static SkPath SkiaCreateSkPath(const RefPtr<BasicShape>& basicShape, const SizeF& size); 52 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, SkPath& skPath); 54 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, SkPath& skPath); 56 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, SkPath& skPath); 58 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, SkPath& skPath); 60 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, SkPath& skPath); 62 … const RefPtr<BasicShape>& basicShape, const SizeF& size, const OffsetF& position, SkPath& skPath); 76 static SkPaint CreateMaskSkPaint(const RefPtr<BasicShape>& basicShape);
|
H A D | skia_decoration_painter.cpp | 753 if (basicShape == nullptr || basicShape->GetBasicShapeType() == BasicShapeType::NONE) { in SkiaCreateSkPath() 760 switch (basicShape->GetBasicShapeType()) { in SkiaCreateSkPath() 762 SkiaCreateInset(basicShape, size, position, skPath); in SkiaCreateSkPath() 766 SkiaCreateCircle(basicShape, size, position, skPath); in SkiaCreateSkPath() 770 SkiaCreateEllipse(basicShape, size, position, skPath); in SkiaCreateSkPath() 774 SkiaCreatePolygon(basicShape, size, position, skPath); in SkiaCreateSkPath() 778 SkiaCreatePath(basicShape, size, position, skPath); in SkiaCreateSkPath() 782 SkiaCreateRect(basicShape, size, position, skPath); in SkiaCreateSkPath() 796 const auto& inset = AceType::DynamicCast<Inset>(basicShape); in SkiaCreateInset() 882 const auto& path = AceType::DynamicCast<Path>(basicShape); in SkiaCreatePath() [all …]
|
H A D | rosen_render_context.h | 458 void OnClipShapeUpdate(const RefPtr<BasicShape>& basicShape) override; 460 void OnClipMaskUpdate(const RefPtr<BasicShape>& basicShape) override;
|
H A D | rosen_render_context.cpp | 4602 auto basicShape = clip->GetClipShapeValue(); local 4604 auto skPath = SkiaDecorationPainter::SkiaCreateSkPath(basicShape, frameSize); 4616 auto rsPath = DrawingDecorationPainter::DrawingCreatePath(basicShape, frameSize); 4633 auto basicShape = clip->GetClipMaskValue(); local 4635 auto skPath = SkiaDecorationPainter::SkiaCreateSkPath(basicShape, frameSize); 4650 rsStrokeColor.SetColorQuad(basicShape->GetStrokeColor()); 4653 pen.SetWidth(basicShape->GetStrokeWidth()); 4818 void RosenRenderContext::OnClipShapeUpdate(const RefPtr<BasicShape>& basicShape) argument 4821 if (basicShape) { 4848 void RosenRenderContext::OnClipMaskUpdate(const RefPtr<BasicShape>& basicShape) argument [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/slider/ |
H A D | slider_modifier_test_ng.cpp | 516 basicShape->SetRadiusX(RADIUS_X); 517 basicShape->SetRadiusY(RADIUS_Y); 570 basicShape->SetValue("PATH"); 662 ASSERT_NE(basicShape, nullptr); 663 basicShape->SetRadius(Dimension()); 664 basicShape->SetWidth(SHAPE_WIDTH); 665 basicShape->SetHeight(SHAPE_HEIGHT); 686 ASSERT_NE(basicShape, nullptr); 689 basicShape->SetWidth(SHAPE_WIDTH); 712 ASSERT_NE(basicShape, nullptr); [all …]
|
H A D | slider_pattern_test_ng.cpp | 360 auto basicShape = AceType::MakeRefPtr<Circle>(); variable 361 basicShape->SetBasicShapeType(BasicShapeType::CIRCLE); 366 basicShape->SetRadius(RADIUS); 367 sliderPaintProperty->UpdateBlockShape(basicShape); 375 basicShape = AceType::MakeRefPtr<Circle>(); 376 sliderPaintProperty->UpdateBlockShape(basicShape); 379 …std::min(basicShape->GetWidth(), basicShape->GetHeight()).ConvertToPx() * HALF + focusDistance.Con… 381 …std::min(basicShape->GetWidth(), basicShape->GetHeight()).ConvertToPx() * HALF + focusDistance.Con…
|
H A D | slider_Extend_test_ng.cpp | 197 auto basicShape = AceType::MakeRefPtr<BasicShape>(BasicShapeType::INSET); variable 198 sliderModelNG.SetBlockShape(basicShape); 220 EXPECT_EQ(sliderPaintProperty->GetBlockShape(), basicShape); 379 auto basicShape = AceType::MakeRefPtr<BasicShape>(BasicShapeType::INSET); variable 380 sliderPaintProperty->UpdateBlockShape(basicShape); 381 … EXPECT_EQ(sliderPaintProperty->GetBlockShapeValue(AceType::MakeRefPtr<BasicShape>()), basicShape);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/ |
H A D | shape_abstract.h | 33 void SetBasicShape(const RefPtr<BasicShape>& basicShape) in SetBasicShape() argument 35 basicShape_ = basicShape; in SetBasicShape()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_shape_abstract.h | 52 void SetBasicShape(const RefPtr<BasicShape>& basicShape) in SetBasicShape() argument 54 basicShape_ = basicShape; in SetBasicShape()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_slider_modifier.cpp | 617 RefPtr<BasicShape> basicShape = SliderModelNG::GetBlockShape(frameNode); in GetSliderBlockShape() local 618 auto shapeType = basicShape->GetBasicShapeType(); in GetSliderBlockShape() 622 (*value)[1] = basicShape->GetWidth().Value(); in GetSliderBlockShape() 624 (*value)[2] = basicShape->GetHeight().Value(); in GetSliderBlockShape() 627 auto path = AceType::DynamicCast<Path>(basicShape); in GetSliderBlockShape() 632 auto shapeRect = AceType::DynamicCast<ShapeRect>(basicShape); in GetSliderBlockShape()
|
H A D | node_common_modifier.cpp | 5141 auto basicShape = ViewAbstract::GetClipShape(frameNode); in GetClipShape() local 5145 switch (basicShape->GetBasicShapeType()) { in GetClipShape() 5147 auto path = AceType::DynamicCast<Path>(basicShape); in GetClipShape() 5282 auto basicShape = ViewAbstract::GetMask(frameNode); in GetMask() local 5283 if (basicShape == nullptr) { in GetMask() 5293 options->fill = basicShape->GetColor().GetValue(); in GetMask() 5294 options->strokeColor = basicShape->GetStrokeColor(); in GetMask() 5295 options->strokeWidth = basicShape->GetStrokeWidth(); in GetMask() 5298 if (basicShape->GetBasicShapeType() == BasicShapeType::PATH) { in GetMask() 5299 auto path = AceType::DynamicCast<Path>(basicShape); in GetMask() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | render_property_test_ng.cpp | 668 RefPtr<BasicShape> basicShape = AceType::MakeRefPtr<BasicShape>(); variable 669 … basicShape->SetBasicShapeType(static_cast<BasicShapeType>(7)); // 7 is not a valid BasicShapeType. 670 clipProperty.propClipShape = basicShape; 671 clipProperty.propClipMask = basicShape;
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/base/ |
H A D | view_abstract_test_ng.cpp | 948 RefPtr<BasicShape> basicShape; variable 949 ViewAbstract::SetClipShape(std::move(basicShape)); 950 ViewAbstract::SetClipShape(nullptr, std::move(basicShape)); 951 ViewAbstract::SetMask(std::move(basicShape)); 991 RefPtr<BasicShape> basicShape; variable 992 ViewAbstract::SetClipShape(std::move(basicShape)); 993 ViewAbstract::SetMask(std::move(basicShape));
|
H A D | view_abstract_test_ng_new.cpp | 228 RefPtr<BasicShape> basicShape; variable 229 ViewAbstract::SetClipShape(std::move(basicShape)); 230 ViewAbstract::SetMask(std::move(basicShape)); 231 ViewAbstract::SetMask(nullptr, std::move(basicShape));
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | view_abstract.h | 369 static void SetClipShape(const RefPtr<BasicShape>& basicShape); 371 static void SetMask(const RefPtr<BasicShape>& basicShape); 536 static void SetClipShape(FrameNode* frameNode, const RefPtr<BasicShape>& basicShape); 607 static void SetMask(FrameNode* frameNode, const RefPtr<BasicShape>& basicShape);
|
H A D | view_abstract.cpp | 2334 void ViewAbstract::SetClipShape(const RefPtr<BasicShape>& basicShape) in SetClipShape() argument 2346 target->UpdateClipShape(basicShape); in SetClipShape() 2350 void ViewAbstract::SetClipShape(FrameNode* frameNode, const RefPtr<BasicShape>& basicShape) in SetClipShape() argument 2358 target->UpdateClipShape(basicShape); in SetClipShape() 2392 void ViewAbstract::SetMask(const RefPtr<BasicShape>& basicShape) in SetMask() argument 2405 target->UpdateClipMask(basicShape); in SetMask() 2723 void ViewAbstract::SetMask(FrameNode* frameNode, const RefPtr<BasicShape>& basicShape) in SetMask() argument 2732 target->UpdateClipMask(basicShape); in SetMask()
|
H A D | view_abstract_model_ng.h | 769 void SetClipShape(const RefPtr<BasicShape>& basicShape) override in SetClipShape() argument 771 ViewAbstract::SetClipShape(basicShape); in SetClipShape()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | render_context.h | 780 virtual void OnClipShapeUpdate(const RefPtr<BasicShape>& basicShape) {} in OnClipShapeUpdate() argument 782 virtual void OnClipMaskUpdate(const RefPtr<BasicShape>& basicShape) {} in OnClipMaskUpdate() argument
|