Home
last modified time | relevance | path

Searched refs:shapePaintProperty (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dsk_painter.cpp43 SetBrush(skBrush, shapePaintProperty); in DrawPath()
45 if (SetPen(skPen, shapePaintProperty)) { in DrawPath()
56 SetBrush(brush, shapePaintProperty); in DrawPath()
60 if (SetPen(pen, shapePaintProperty)) { in DrawPath()
71 if (shapePaintProperty.HasStrokeWidth()) { in SetPen()
82 if (shapePaintProperty.HasAntiAlias()) { in SetPen()
115 if (shapePaintProperty.HasStroke()) { in SetPen()
155 if (shapePaintProperty.HasAntiAlias()) { in SetPen()
188 if (shapePaintProperty.HasStroke()) { in SetPen()
222 if (shapePaintProperty.HasFill()) { in SetBrush()
[all …]
H A Dsk_painter.h33 …wPath(RSCanvas& canvas, const std::string& commands, const ShapePaintProperty& shapePaintProperty);
35 static bool SetPen(SkPaint& skPaint, const ShapePaintProperty& shapePaintProperty);
36 static void SetBrush(SkPaint& skPaint, const ShapePaintProperty& shapePaintProperty);
38 static bool SetPen(RSPen& pen, const ShapePaintProperty& shapePaintProperty);
39 static void SetBrush(RSBrush& brush, const ShapePaintProperty& shapePaintProperty);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Dshape_painter.cpp21 if (shapePaintProperty.HasStrokeWidth()) { in SetPen()
32 if (shapePaintProperty.HasAntiAlias()) { in SetPen()
38 if (shapePaintProperty.HasStrokeLineCap()) { in SetPen()
51 if (shapePaintProperty.HasStrokeLineJoin()) { in SetPen()
65 if (shapePaintProperty.HasStroke()) { in SetPen()
69 if (shapePaintProperty.HasStrokeOpacity()) { in SetPen()
74 if (shapePaintProperty.HasStrokeDashArray()) { in SetPen()
87 if (shapePaintProperty.HasStrokeMiterLimit()) { in SetPen()
96 if (shapePaintProperty.HasFill()) { in SetBrush()
100 if (shapePaintProperty.HasFillOpacity()) { in SetBrush()
[all …]
H A Dcircle_painter.cpp22 …SCanvas& canvas, float radius, const OffsetF& offset, const ShapePaintProperty& shapePaintProperty) in DrawCircle() argument
26 if (ShapePainter::SetPen(pen, shapePaintProperty)) { in DrawCircle()
29 ShapePainter::SetBrush(brush, shapePaintProperty); in DrawCircle()
H A Dellipse_painter.cpp21 …ter::DrawEllipse(RSCanvas& canvas, const RectF& rect, const ShapePaintProperty& shapePaintProperty) in DrawEllipse() argument
25 if (ShapePainter::SetPen(pen, shapePaintProperty)) { in DrawEllipse()
28 ShapePainter::SetBrush(brush, shapePaintProperty); in DrawEllipse()
H A Dshape_painter.h29 static bool SetPen(RSPen& pen, const ShapePaintProperty& shapePaintProperty);
30 static void SetBrush(RSBrush& brush, const ShapePaintProperty& shapePaintProperty);
H A Dellipse_painter.h30 …oid DrawEllipse(RSCanvas& canvas, const RectF& rect, const ShapePaintProperty& shapePaintProperty);
H A Dcircle_painter.h31 …Canvas& canvas, float radius, const OffsetF& offset, const ShapePaintProperty& shapePaintProperty);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/render/
H A Dshape_painter_test_ng.cpp65 NG::ShapePaintProperty shapePaintProperty; variable
102 NG::ShapePaintProperty shapePaintProperty; variable
108 shapePaintProperty.UpdateAntiAlias(true);
116 shapePaintProperty.UpdateStroke(STROKE_COLOR_RED);
148 NG::ShapePaintProperty shapePaintProperty; variable
181 NG::ShapePaintProperty shapePaintProperty; variable
214 NG::ShapePaintProperty shapePaintProperty; variable
252 NG::ShapePaintProperty shapePaintProperty; variable
259 EXPECT_FALSE(shapePaintProperty.HasFill());
265 shapePaintProperty.UpdateFill(FILL_COLOR_BLUE);
[all …]
H A Dellipse_painter_test_ng.cpp68 NG::ShapePaintProperty shapePaintProperty; variable
74 NG::EllipsePainter::DrawEllipse(canvas, TEST_RECT, shapePaintProperty);
75 EXPECT_FALSE(shapePaintProperty.HasStrokeWidth());
81 shapePaintProperty.UpdateStrokeWidth(STROKE_WIDTH);
83 NG::EllipsePainter::DrawEllipse(canvas, TEST_RECT, shapePaintProperty);
84 EXPECT_TRUE(shapePaintProperty.HasStrokeWidth());
H A Dcircle_painter_test_ng.cpp46 NG::ShapePaintProperty shapePaintProperty; variable
74 NG::CirclePainter::DrawCircle(testingCanvas, radius, DRAWOFFSET, shapePaintProperty);
75 bool result = NG::ShapePainter::SetPen(pen, shapePaintProperty);
82 shapePaintProperty.UpdateStrokeWidth(test);
85 NG::CirclePainter::DrawCircle(testingCanvas, radius, DRAWOFFSET, shapePaintProperty);
86 bool result1 = NG::ShapePainter::SetPen(pen, shapePaintProperty);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/
H A Ddrawing_painter.cpp30 SetBrush(brush, shapePaintProperty); in DrawPath()
34 if (SetPen(pen, shapePaintProperty)) { in DrawPath()
43 if (shapePaintProperty.HasStrokeWidth()) { in SetPen()
53 if (shapePaintProperty.HasAntiAlias()) { in SetPen()
59 if (shapePaintProperty.HasStrokeLineCap()) { in SetPen()
72 if (shapePaintProperty.HasStrokeLineJoin()) { in SetPen()
86 if (shapePaintProperty.HasStroke()) { in SetPen()
90 if (shapePaintProperty.HasStrokeOpacity()) { in SetPen()
117 if (shapePaintProperty.HasFill()) { in SetBrush()
121 if (shapePaintProperty.HasFillOpacity()) { in SetBrush()
[all …]
H A Ddrawing_painter.h30 …wPath(RSCanvas& canvas, const std::string& commands, const ShapePaintProperty& shapePaintProperty);
31 static bool SetPen(RSPen& pen, const ShapePaintProperty& shapePaintProperty);
32 static void SetBrush(RSBrush& brush, const ShapePaintProperty& shapePaintProperty);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dcircle_paint_method.h34 const RefPtr<ShapePaintProperty>& shapePaintProperty, in CirclePaintMethod() argument
36 : ShapePaintMethod(shapePaintProperty, shapeOverlayModifier) in CirclePaintMethod()
44 CHECK_NULL_RETURN(shapePaintProperty, nullptr); in GetContentDrawFunction()
47 if (!shapePaintProperty->HasFill() && propertiesFromAncestor_->HasFill()) { in GetContentDrawFunction()
52 shapePaintProperty->UpdateShapeProperty(propertiesFromAncestor_); in GetContentDrawFunction()
55 shapePaintProperty->UpdateFill(paintWrapper->GetForegroundColor()); in GetContentDrawFunction()
57 shapePaintProperty->UpdateFill(Color::FOREGROUND); in GetContentDrawFunction()
58 shapePaintProperty->ResetFillOpacity(); in GetContentDrawFunction()
79 auto shapePaintProperty = DynamicCast<ShapePaintProperty>(paintProperty->Clone()); in GetOverlayModifier() local
80 CHECK_NULL_RETURN(shapePaintProperty, nullptr); in GetOverlayModifier()
[all …]
H A Dpath_paint_method.h35 const RefPtr<ShapePaintProperty>& shapePaintProperty, in PathPaintMethod() argument
37 : ShapePaintMethod(shapePaintProperty, shapeOverlayModifier) in PathPaintMethod()
44 …auto shapePaintProperty = DynamicCast<PathPaintProperty>(paintWrapper->GetPaintProperty()->Clone()… in GetContentDrawFunction() local
45 CHECK_NULL_RETURN(shapePaintProperty, nullptr); in GetContentDrawFunction()
48 if (!shapePaintProperty->HasFill() && propertiesFromAncestor_->HasFill()) { in GetContentDrawFunction()
53 shapePaintProperty->UpdateShapeProperty(propertiesFromAncestor_); in GetContentDrawFunction()
56 shapePaintProperty->UpdateFill(paintWrapper->GetForegroundColor()); in GetContentDrawFunction()
58 shapePaintProperty->UpdateFill(Color::FOREGROUND); in GetContentDrawFunction()
59 shapePaintProperty->ResetFillOpacity(); in GetContentDrawFunction()
66 return [shapePaintProperty, paintWrapper](RSCanvas& canvas) { in GetContentDrawFunction()
[all …]
H A Dpolygon_paint_method.h36 const RefPtr<ShapePaintProperty>& shapePaintProperty, in PolygonPaintMethod() argument
38 : ShapePaintMethod(shapePaintProperty, shapeOverlayModifier), isClose_(isClose) in PolygonPaintMethod()
45 …auto shapePaintProperty = DynamicCast<PolygonPaintProperty>(paintWrapper->GetPaintProperty()->Clon… in GetContentDrawFunction() local
46 CHECK_NULL_RETURN(shapePaintProperty, nullptr); in GetContentDrawFunction()
49 if (!shapePaintProperty->HasFill() && propertiesFromAncestor_->HasFill()) { in GetContentDrawFunction()
54 shapePaintProperty->UpdateShapeProperty(propertiesFromAncestor_); in GetContentDrawFunction()
57 shapePaintProperty->UpdateFill(paintWrapper->GetForegroundColor()); in GetContentDrawFunction()
59 shapePaintProperty->UpdateFill(Color::FOREGROUND); in GetContentDrawFunction()
60 shapePaintProperty->ResetFillOpacity(); in GetContentDrawFunction()
67 return [shapePaintProperty, isClose = isClose_, paintWrapper](RSCanvas& canvas) { in GetContentDrawFunction()
[all …]
H A Dellipse_paint_method.h35 const RefPtr<ShapePaintProperty>& shapePaintProperty, in EllipsePaintMethod() argument
37 : ShapePaintMethod(shapePaintProperty, shapeOverlayModifier) in EllipsePaintMethod()
44 …auto shapePaintProperty = DynamicCast<ShapePaintProperty>(paintWrapper->GetPaintProperty()->Clone(… in GetContentDrawFunction() local
45 CHECK_NULL_RETURN(shapePaintProperty, nullptr); in GetContentDrawFunction()
48 if (!shapePaintProperty->HasFill() && propertiesFromAncestor_->HasFill()) { in GetContentDrawFunction()
53 shapePaintProperty->UpdateShapeProperty(propertiesFromAncestor_); in GetContentDrawFunction()
56 shapePaintProperty->UpdateFill(paintWrapper->GetForegroundColor()); in GetContentDrawFunction()
58 shapePaintProperty->UpdateFill(Color::FOREGROUND); in GetContentDrawFunction()
59 shapePaintProperty->ResetFillOpacity(); in GetContentDrawFunction()
66 return [rect, shapePaintProperty, paintWrapper](RSCanvas& canvas) { in GetContentDrawFunction()
[all …]
H A Dshape_paint_method.h31 const RefPtr<ShapePaintProperty>& shapePaintProperty, in ShapePaintMethod() argument
33 : propertiesFromAncestor_(shapePaintProperty), shapeOverlayModifier_(shapeOverlayModifier) in ShapePaintMethod()
41 …auto shapePaintProperty = DynamicCast<ShapePaintProperty>(paintWrapper->GetPaintProperty()->Clone(… in GetOverlayModifier() local
42 CHECK_NULL_RETURN(shapePaintProperty, nullptr); in GetOverlayModifier()
49 float deltaWidth = shapePaintProperty->HasStrokeWidth() in GetOverlayModifier()
51 shapePaintProperty->GetStrokeWidthValue().ConvertToPx() in GetOverlayModifier()
H A Dpath_layout_algorithm.h29 explicit PathLayoutAlgorithm(const RefPtr<ShapePaintProperty>& shapePaintProperty) in PathLayoutAlgorithm() argument
30 : propertiesFromAncestor_(shapePaintProperty) in PathLayoutAlgorithm()
H A Dline_paint_method.h34 const RefPtr<ShapePaintProperty>& shapePaintProperty, in LinePaintMethod() argument
36 : ShapePaintMethod(shapePaintProperty, shapeOverlayModifier) in LinePaintMethod()
H A Drect_paint_method.h32 const RefPtr<ShapePaintProperty>& shapePaintProperty, in RectPaintMethod() argument
34 : ShapePaintMethod(shapePaintProperty, shapeOverlayModifier) in RectPaintMethod()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/shape/
H A Dpolygon_pattern_test_ng.cpp67 …auto shapePaintProperty = AceType::DynamicCast<PolygonPaintProperty>(paintWrapper->GetPaintPropert… in Draw() local
68 if (shapePaintProperty->HasPoints() && !shapePaintProperty->GetPoints()->empty()) { in Draw()
69 …if (!shapePaintProperty->HasStrokeWidth() || !NearZero(shapePaintProperty->GetStrokeWidth()->Value… in Draw()
H A Dpolyline_pattern_test_ng.cpp67 …auto shapePaintProperty = AceType::DynamicCast<PolygonPaintProperty>(paintWrapper->GetPaintPropert… in Draw() local
68 if (shapePaintProperty->HasPoints() && !shapePaintProperty->GetPoints()->empty()) { in Draw()
69 …if (!shapePaintProperty->HasStrokeWidth() || !NearZero(shapePaintProperty->GetStrokeWidth()->Value… in Draw()
H A Dellipse_pattern_test_ng.cpp68 …auto shapePaintProperty = AceType::DynamicCast<ShapePaintProperty>(paintWrapper->GetPaintProperty(… in Draw() local
69 …if (!shapePaintProperty->HasStrokeWidth() || !NearZero(shapePaintProperty->GetStrokeWidth()->Value… in Draw()
H A Dcircle_pattern_test_ng.cpp74 …auto shapePaintProperty = AceType::DynamicCast<ShapePaintProperty>(paintWrapper->GetPaintProperty(… in Draw() local
75 …if (!shapePaintProperty->HasStrokeWidth() || !NearZero(shapePaintProperty->GetStrokeWidth()->Value… in Draw()

12