/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | sk_painter.cpp | 43 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 D | sk_painter.h | 33 …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 D | shape_painter.cpp | 21 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 D | circle_painter.cpp | 22 …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 D | ellipse_painter.cpp | 21 …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 D | shape_painter.h | 29 static bool SetPen(RSPen& pen, const ShapePaintProperty& shapePaintProperty); 30 static void SetBrush(RSBrush& brush, const ShapePaintProperty& shapePaintProperty);
|
H A D | ellipse_painter.h | 30 …oid DrawEllipse(RSCanvas& canvas, const RectF& rect, const ShapePaintProperty& shapePaintProperty);
|
H A D | circle_painter.h | 31 …Canvas& canvas, float radius, const OffsetF& offset, const ShapePaintProperty& shapePaintProperty);
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | shape_painter_test_ng.cpp | 65 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 D | ellipse_painter_test_ng.cpp | 68 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 D | circle_painter_test_ng.cpp | 46 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 D | drawing_painter.cpp | 30 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 D | drawing_painter.h | 30 …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 D | circle_paint_method.h | 34 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 D | path_paint_method.h | 35 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 D | polygon_paint_method.h | 36 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 D | ellipse_paint_method.h | 35 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 D | shape_paint_method.h | 31 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 D | path_layout_algorithm.h | 29 explicit PathLayoutAlgorithm(const RefPtr<ShapePaintProperty>& shapePaintProperty) in PathLayoutAlgorithm() argument 30 : propertiesFromAncestor_(shapePaintProperty) in PathLayoutAlgorithm()
|
H A D | line_paint_method.h | 34 const RefPtr<ShapePaintProperty>& shapePaintProperty, in LinePaintMethod() argument 36 : ShapePaintMethod(shapePaintProperty, shapeOverlayModifier) in LinePaintMethod()
|
H A D | rect_paint_method.h | 32 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 D | polygon_pattern_test_ng.cpp | 67 …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 D | polyline_pattern_test_ng.cpp | 67 …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 D | ellipse_pattern_test_ng.cpp | 68 …auto shapePaintProperty = AceType::DynamicCast<ShapePaintProperty>(paintWrapper->GetPaintProperty(… in Draw() local 69 …if (!shapePaintProperty->HasStrokeWidth() || !NearZero(shapePaintProperty->GetStrokeWidth()->Value… in Draw()
|
H A D | circle_pattern_test_ng.cpp | 74 …auto shapePaintProperty = AceType::DynamicCast<ShapePaintProperty>(paintWrapper->GetPaintProperty(… in Draw() local 75 …if (!shapePaintProperty->HasStrokeWidth() || !NearZero(shapePaintProperty->GetStrokeWidth()->Value… in Draw()
|