Home
last modified time | relevance | path

Searched refs:basicShape (Results 1 – 25 of 26) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dclip_path.h50 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 Dclip_path.cpp307 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 Drosen_render_box.h180 …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 Drosen_render_box.cpp868 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 Drosen_mask_painter.cpp160 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 Ddrawing_decoration_painter.h40 … 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 Ddrawing_decoration_painter.cpp728 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 Dskia_decoration_painter.h50 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 Dskia_decoration_painter.cpp753 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 Drosen_render_context.h458 void OnClipShapeUpdate(const RefPtr<BasicShape>& basicShape) override;
460 void OnClipMaskUpdate(const RefPtr<BasicShape>& basicShape) override;
H A Drosen_render_context.cpp4602 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 Dslider_modifier_test_ng.cpp516 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 Dslider_pattern_test_ng.cpp360 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 Dslider_Extend_test_ng.cpp197 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 Dshape_abstract.h33 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 Djs_shape_abstract.h52 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 Dnode_slider_modifier.cpp617 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 Dnode_common_modifier.cpp5141 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 Drender_property_test_ng.cpp668 RefPtr<BasicShape> basicShape = AceType::MakeRefPtr<BasicShape>(); variable
669basicShape->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 Dview_abstract_test_ng.cpp948 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 Dview_abstract_test_ng_new.cpp228 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 Dview_abstract.h369 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 Dview_abstract.cpp2334 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 Dview_abstract_model_ng.h769 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 Drender_context.h780 virtual void OnClipShapeUpdate(const RefPtr<BasicShape>& basicShape) {} in OnClipShapeUpdate() argument
782 virtual void OnClipMaskUpdate(const RefPtr<BasicShape>& basicShape) {} in OnClipMaskUpdate() argument

12