/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_graphic.cpp | 126 auto& gradient = attributes_.strokeState.GetGradient(); in UpdateStrokeGradient() 203 const auto& strokeState = attributes_.strokeState; in SetStrokeGradientStyle() local 204 auto gradient = strokeState.GetGradient(); in SetStrokeGradientStyle() 244 const auto& strokeState = attributes_.strokeState; in UpdateStrokeStyle() local 246 …if (!colorFilter.has_value() && strokeState.GetColor() == Color::TRANSPARENT && !strokeState.GetGr… in UpdateStrokeStyle() 254 if (strokeState.GetGradient()) { in UpdateStrokeStyle() 259 if (strokeState.GetLineCap() == LineCapStyle::ROUND) { in UpdateStrokeStyle() 266 if (strokeState.GetLineJoin() == LineJoinStyle::ROUND) { in UpdateStrokeStyle() 287 const auto& strokeState = attributes_.strokeState; in UpdateLineDash() local 288 if (!strokeState.GetLineDash().lineDash.empty()) { in UpdateLineDash() [all …]
|
H A D | svg_node.cpp | 70 [](SvgBaseAttribute& attr) -> Color { return attr.strokeState.GetColor(); } }, in __anonbac6909f0302() 76 return attr.strokeState.GetLineWidth(); in __anonbac6909f0402() 87 return attr.strokeState.GetOpacity().GetValue(); in __anonbac6909f0602() 91 return attr.strokeState.GetMiterLimit(); in __anonbac6909f0702() 95 return attr.strokeState.GetLineDash().dashOffset; in __anonbac6909f0802()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_svg_painter.cpp | 278 UpdateLineDash(skPaint, strokeState); in SetStrokeStyle() 303 UpdateLineDash(pen, strokeState); in SetStrokeStyle() 311 if (strokeState.GetColor() == Color::TRANSPARENT) { in SetStrokeStyle() 341 const auto& strokeHref = strokeState.GetHref(); in SetStrokeStyle() 363 const auto& strokeHref = strokeState.GetHref(); in SetStrokeStyle() 388 if (!strokeState.GetLineDash().lineDash.empty()) { in UpdateLineDash() 401 if (!strokeState.GetLineDash().lineDash.empty()) { in UpdateLineDash() 543 …if (svgTextInfo.strokeState.HasStroke() && !NearZero(svgTextInfo.strokeState.GetLineWidth().Value(… in UpdateText() 595 …if (svgTextInfo.strokeState.HasStroke() && !NearZero(svgTextInfo.strokeState.GetLineWidth().Value(… in UpdateText() 668 …if (svgTextInfo.strokeState.HasStroke() && !NearZero(svgTextInfo.strokeState.GetLineWidth().Value(… in UpdateTextPath() [all …]
|
H A D | rosen_svg_painter.h | 39 StrokeState strokeState; member 81 …SkPaint& skPaint, const StrokeState& strokeState, uint8_t opacity = UINT8_MAX, bool antiAlias = tr… 82 … static void SetStrokeStyle(SkCanvas* canvas, const SkPath& skPath, const StrokeState& strokeState, 85 … SkCanvas* canvas, const SkPath& skPath, const StrokeState& strokeState, RenderInfo& renderInfo); 86 static void UpdateLineDash(SkPaint& paint, const StrokeState& strokeState); 97 static void SetStrokeStyle(RSPen& pen, const StrokeState& strokeState, 100 const StrokeState& strokeState, uint8_t opacity = UINT8_MAX, bool antiAlias = true); 102 const StrokeState& strokeState, RenderInfo& renderInfo); 103 static void UpdateLineDash(RSPen& pen, const StrokeState& strokeState);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | custom_paint_paint_method.h | 149 state_.strokeState.SetColor(color); in SetStrokeColor() 154 state_.strokeState.SetPatternNG(pattern); in SetStrokePatternNG() 159 state_.strokeState.SetPattern(pattern); in SetStrokePattern() 164 state_.strokeState.SetGradient(gradient); in SetStrokeGradient() 169 state_.strokeState.SetLineCap(style); in SetLineCap() 179 state_.strokeState.SetLineJoin(style); in SetLineJoin() 184 state_.strokeState.SetLineWidth(width); in SetLineWidth() 189 state_.strokeState.SetMiterLimit(limit); in SetMiterLimit() 210 state_.strokeState.SetTextAlign(align); in SetTextAlign() 252 state_.strokeState.SetFontSize(size); in SetFontSize() [all …]
|
H A D | custom_paint_paint_method.cpp | 179 if (!state_.strokeState.GetLineDash().lineDash.empty()) { in UpdateLineDash() 180 auto lineDashState = state_.strokeState.GetLineDash().lineDash; in UpdateLineDash() 206 if (state_.strokeState.GetTextStyle().GetFontFamilies().empty()) { in UpdateFontFamilies() 207 state_.strokeState.SetFontFamilies(fontFamilies); in UpdateFontFamilies() 399 if (state_.strokeState.GetPaintStyle() == PaintStyle::Color) { in GetStrokePaint() 400 pen.SetColor(state_.strokeState.GetColor().GetValue()); in GetStrokePaint() 402 …if (state_.strokeState.GetGradient().IsValid() && state_.strokeState.GetPaintStyle() == PaintStyle… in GetStrokePaint() 405 if (state_.strokeState.GetPatternValue().IsValid() && in GetStrokePaint() 1965 state_.strokeState = StrokePaintState(); in ResetStates() 2147 TextAlign textAlign = state_.strokeState.GetTextAlign(); in UpdateStrokeParagraph() [all …]
|
H A D | offscreen_canvas_paint_method.cpp | 235 return state_.strokeState.GetLineDash(); in GetLineDash()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | svg_paint_state.h | 284 void Inherit(const StrokeState& strokeState) in Inherit() argument 287 color_ = strokeState.GetColor(); in Inherit() 290 opacity_ = strokeState.GetOpacity(); in Inherit() 293 lineCap_ = strokeState.GetLineCap(); in Inherit() 296 lineJoin_ = strokeState.GetLineJoin(); in Inherit() 299 lineWidth_ = strokeState.GetLineWidth(); in Inherit() 302 miterLimit_ = strokeState.GetMiterLimit(); in Inherit() 305 lineDash_.lineDash = strokeState.GetLineDash().lineDash; in Inherit() 311 strokeDashArray_ = strokeState.GetStrokeDashArray(); in Inherit() 314 strokeDashOffset_ = strokeState.GetStrokeDashOffset(); in Inherit() [all …]
|
H A D | paint_state.h | 428 StrokePaintState strokeState; member
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/svg/ |
H A D | svg_base_declaration.h | 31 StrokeState strokeState; member 52 strokeState.Inherit(parent.strokeState); in InheritFromUse() 66 strokeState.Inherit(parent.strokeState); in Inherit() 87 return attribute.strokeState; in GetStrokeState()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/svg/ |
H A D | parse_testtwo_ng.cpp | 713 baseAttr.strokeState.SetGradient(gradient); in __anon089bbfed0302() 730 baseAttr.strokeState.SetGradient(gradient); in __anon089bbfed0302() 766 EXPECT_NE(svgNode->GetBaseAttributes().strokeState.GetMiterLimit(), 0.1); 769 EXPECT_EQ(svgNode->GetBaseAttributes().strokeState.GetMiterLimit(), 1.1); 772 EXPECT_NE(svgNode->GetBaseAttributes().strokeState.GetMiterLimit(), 0.2); 895 baseAttr.strokeState.SetLineCap(LineCapStyle::BUTT); 896 baseAttr.strokeState.SetLineJoin(LineJoinStyle::MITER); 902 baseAttr.strokeState.SetLineCap(LineCapStyle::ROUND); 903 baseAttr.strokeState.SetLineJoin(LineJoinStyle::ROUND); 907 baseAttr.strokeState.SetLineCap(LineCapStyle::SQUARE); [all …]
|
H A D | parse_test_ng.cpp | 571 auto stroke = svgUseDeclaration.strokeState; 589 EXPECT_NE(pathDeclaration.strokeState.GetColor(), Color(STROKE));
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/shape/ |
H A D | shape_component.cpp | 33 void ShapeComponent::InheritShapeStyle(const FillState& fillState, const StrokeState& strokeState, … in InheritShapeStyle() argument 36 strokeState_.Inherit(strokeState); in InheritShapeStyle()
|
H A D | shape_container_component.cpp | 33 …peContainerComponent::InheritShapeStyle(const FillState& fillState, const StrokeState& strokeState, in InheritShapeStyle() argument 37 strokeState_.Inherit(strokeState); in InheritShapeStyle()
|
H A D | shape_component.h | 212 …void InheritShapeStyle(const FillState& fillState, const StrokeState& strokeState, bool antiAlias);
|
H A D | shape_container_component.h | 119 …void InheritShapeStyle(const FillState& fillState, const StrokeState& strokeState, bool antiAlias);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | svg_shape.h | 47 void SetStrokeState(const StrokeState& strokeState) in SetStrokeState() argument 49 strokeState_ = strokeState; in SetStrokeState()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/canvas/ |
H A D | canvas_custom_paint_method_test_ng.cpp | 196 paintMethod->state_.strokeState.SetLineDash({ { 1.0, 0.0 }, 1.0 }); 197 paintMethod->state_.strokeState.SetLineDashOffset(1.0); 443 paintMethod->state_.strokeState.paintStyle_ = PaintStyle::Color; 455 paintMethod->state_.strokeState.paintStyle_ = PaintStyle::Gradient; 1286 paintMethod->state_.strokeState.SetLineDash({ { 1.0, 0.0 }, 1.0 }); 1287 paintMethod->state_.strokeState.SetLineDashOffset(1.0); 1328 paintMethod->state_.strokeState.SetLineDash({ { 1.0, 0.0 }, 1.0 }); 1329 paintMethod->state_.strokeState.SetLineDashOffset(1.0); 1364 paintMethod->state_.strokeState.SetLineDashOffset(1.0); 1400 paintMethod->state_.strokeState.SetLineDashOffset(1.0); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/ |
H A D | offscreen_canvas.h | 198 holder.strokeState = strokeState_; in SaveStates() 210 strokeState_ = saveState.strokeState; in RestoreStates()
|
H A D | render_custom_paint.h | 283 holder.strokeState = strokeState_; in SaveStates() 295 strokeState_ = saveState.strokeState; in RestoreStates()
|