Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | Public Attributes | List of all members
SkSVGPresentationAttributes Struct Reference

#include <SkSVGAttribute.h>

Static Public Member Functions

static SkSVGPresentationAttributes MakeInitial ()
 

Public Attributes

SkSVGProperty< SkSVGPaint, true > fFill
 
SkSVGProperty< SkSVGNumberType, true > fFillOpacity
 
SkSVGProperty< SkSVGFillRule, true > fFillRule
 
SkSVGProperty< SkSVGFillRule, true > fClipRule
 
SkSVGProperty< SkSVGPaint, true > fStroke
 
SkSVGProperty< SkSVGDashArray, true > fStrokeDashArray
 
SkSVGProperty< SkSVGLength, true > fStrokeDashOffset
 
SkSVGProperty< SkSVGLineCap, true > fStrokeLineCap
 
SkSVGProperty< SkSVGLineJoin, true > fStrokeLineJoin
 
SkSVGProperty< SkSVGNumberType, true > fStrokeMiterLimit
 
SkSVGProperty< SkSVGNumberType, true > fStrokeOpacity
 
SkSVGProperty< SkSVGLength, true > fStrokeWidth
 
SkSVGProperty< SkSVGVisibility, true > fVisibility
 
SkSVGProperty< SkSVGColorType, true > fColor
 
SkSVGProperty< SkSVGColorspace, true > fColorInterpolation
 
SkSVGProperty< SkSVGColorspace, true > fColorInterpolationFilters
 
SkSVGProperty< SkSVGFontFamily, true > fFontFamily
 
SkSVGProperty< SkSVGFontStyle, true > fFontStyle
 
SkSVGProperty< SkSVGFontSize, true > fFontSize
 
SkSVGProperty< SkSVGFontWeight, true > fFontWeight
 
SkSVGProperty< SkSVGTextAnchor, true > fTextAnchor
 
SkSVGProperty< SkSVGNumberType, false > fOpacity
 
SkSVGProperty< SkSVGFuncIRI, false > fClipPath
 
SkSVGProperty< SkSVGDisplay, false > fDisplay
 
SkSVGProperty< SkSVGFuncIRI, false > fMask
 
SkSVGProperty< SkSVGFuncIRI, false > fFilter
 
SkSVGProperty< SkSVGColor, false > fStopColor
 
SkSVGProperty< SkSVGNumberType, false > fStopOpacity
 
SkSVGProperty< SkSVGColor, false > fFloodColor
 
SkSVGProperty< SkSVGNumberType, false > fFloodOpacity
 
SkSVGProperty< SkSVGColor, false > fLightingColor
 

Detailed Description

Definition at line 69 of file SkSVGAttribute.h.

Member Function Documentation

◆ MakeInitial()

SkSVGPresentationAttributes SkSVGPresentationAttributes::MakeInitial ( )
static

Definition at line 10 of file SkSVGAttribute.cpp.

10 {
12
14 result.fFillOpacity.set(SkSVGNumberType(1));
17
20 result.fStrokeDashOffset.set(SkSVGLength(0));
21 result.fStrokeLineCap.set(SkSVGLineCap::kButt);
23 result.fStrokeMiterLimit.set(SkSVGNumberType(4));
24 result.fStrokeOpacity.set(SkSVGNumberType(1));
25 result.fStrokeWidth.set(SkSVGLength(1));
26
28
30 result.fColorInterpolation.set(SkSVGColorspace::kSRGB);
31 result.fColorInterpolationFilters.set(SkSVGColorspace::kLinearRGB);
32
33 result.fFontFamily.init("Sans");
35 result.fFontSize.init(SkSVGLength(24));
36 result.fFontWeight.init(SkSVGFontWeight::Type::kNormal);
37 result.fTextAnchor.init(SkSVGTextAnchor::Type::kStart);
38
39 result.fDisplay.init(SkSVGDisplay::kInline);
40
41 result.fStopColor.set(SkSVGColor(SK_ColorBLACK));
42 result.fStopOpacity.set(SkSVGNumberType(1));
43 result.fFloodColor.set(SkSVGColor(SK_ColorBLACK));
44 result.fFloodOpacity.set(SkSVGNumberType(1));
45 result.fLightingColor.set(SkSVGColor(SK_ColorWHITE));
46
47 return result;
48}
constexpr SkColor SK_ColorBLACK
Definition SkColor.h:103
constexpr SkColor SK_ColorWHITE
Definition SkColor.h:122
SkColor SkSVGColorType
Definition SkSVGTypes.h:25
SkScalar SkSVGNumberType
Definition SkSVGTypes.h:27
void set(SkSVGPropertyState state)
Definition SkSVGTypes.h:70
GAsyncResult * result
SkSVGProperty< SkSVGPaint, true > fFill

Member Data Documentation

◆ fClipPath

SkSVGProperty<SkSVGFuncIRI , false> SkSVGPresentationAttributes::fClipPath

Definition at line 102 of file SkSVGAttribute.h.

◆ fClipRule

SkSVGProperty<SkSVGFillRule , true> SkSVGPresentationAttributes::fClipRule

Definition at line 77 of file SkSVGAttribute.h.

◆ fColor

SkSVGProperty<SkSVGColorType , true> SkSVGPresentationAttributes::fColor

Definition at line 90 of file SkSVGAttribute.h.

◆ fColorInterpolation

SkSVGProperty<SkSVGColorspace, true> SkSVGPresentationAttributes::fColorInterpolation

Definition at line 91 of file SkSVGAttribute.h.

◆ fColorInterpolationFilters

SkSVGProperty<SkSVGColorspace, true> SkSVGPresentationAttributes::fColorInterpolationFilters

Definition at line 92 of file SkSVGAttribute.h.

◆ fDisplay

SkSVGProperty<SkSVGDisplay , false> SkSVGPresentationAttributes::fDisplay

Definition at line 103 of file SkSVGAttribute.h.

◆ fFill

SkSVGProperty<SkSVGPaint , true> SkSVGPresentationAttributes::fFill

Definition at line 74 of file SkSVGAttribute.h.

◆ fFillOpacity

SkSVGProperty<SkSVGNumberType, true> SkSVGPresentationAttributes::fFillOpacity

Definition at line 75 of file SkSVGAttribute.h.

◆ fFillRule

SkSVGProperty<SkSVGFillRule , true> SkSVGPresentationAttributes::fFillRule

Definition at line 76 of file SkSVGAttribute.h.

◆ fFilter

SkSVGProperty<SkSVGFuncIRI , false> SkSVGPresentationAttributes::fFilter

Definition at line 105 of file SkSVGAttribute.h.

◆ fFloodColor

SkSVGProperty<SkSVGColor , false> SkSVGPresentationAttributes::fFloodColor

Definition at line 108 of file SkSVGAttribute.h.

◆ fFloodOpacity

SkSVGProperty<SkSVGNumberType, false> SkSVGPresentationAttributes::fFloodOpacity

Definition at line 109 of file SkSVGAttribute.h.

◆ fFontFamily

SkSVGProperty<SkSVGFontFamily, true> SkSVGPresentationAttributes::fFontFamily

Definition at line 94 of file SkSVGAttribute.h.

◆ fFontSize

SkSVGProperty<SkSVGFontSize , true> SkSVGPresentationAttributes::fFontSize

Definition at line 96 of file SkSVGAttribute.h.

◆ fFontStyle

SkSVGProperty<SkSVGFontStyle , true> SkSVGPresentationAttributes::fFontStyle

Definition at line 95 of file SkSVGAttribute.h.

◆ fFontWeight

SkSVGProperty<SkSVGFontWeight, true> SkSVGPresentationAttributes::fFontWeight

Definition at line 97 of file SkSVGAttribute.h.

◆ fLightingColor

SkSVGProperty<SkSVGColor , false> SkSVGPresentationAttributes::fLightingColor

Definition at line 110 of file SkSVGAttribute.h.

◆ fMask

SkSVGProperty<SkSVGFuncIRI , false> SkSVGPresentationAttributes::fMask

Definition at line 104 of file SkSVGAttribute.h.

◆ fOpacity

SkSVGProperty<SkSVGNumberType, false> SkSVGPresentationAttributes::fOpacity

Definition at line 101 of file SkSVGAttribute.h.

◆ fStopColor

SkSVGProperty<SkSVGColor , false> SkSVGPresentationAttributes::fStopColor

Definition at line 106 of file SkSVGAttribute.h.

◆ fStopOpacity

SkSVGProperty<SkSVGNumberType, false> SkSVGPresentationAttributes::fStopOpacity

Definition at line 107 of file SkSVGAttribute.h.

◆ fStroke

SkSVGProperty<SkSVGPaint , true> SkSVGPresentationAttributes::fStroke

Definition at line 79 of file SkSVGAttribute.h.

◆ fStrokeDashArray

SkSVGProperty<SkSVGDashArray , true> SkSVGPresentationAttributes::fStrokeDashArray

Definition at line 80 of file SkSVGAttribute.h.

◆ fStrokeDashOffset

SkSVGProperty<SkSVGLength , true> SkSVGPresentationAttributes::fStrokeDashOffset

Definition at line 81 of file SkSVGAttribute.h.

◆ fStrokeLineCap

SkSVGProperty<SkSVGLineCap , true> SkSVGPresentationAttributes::fStrokeLineCap

Definition at line 82 of file SkSVGAttribute.h.

◆ fStrokeLineJoin

SkSVGProperty<SkSVGLineJoin , true> SkSVGPresentationAttributes::fStrokeLineJoin

Definition at line 83 of file SkSVGAttribute.h.

◆ fStrokeMiterLimit

SkSVGProperty<SkSVGNumberType, true> SkSVGPresentationAttributes::fStrokeMiterLimit

Definition at line 84 of file SkSVGAttribute.h.

◆ fStrokeOpacity

SkSVGProperty<SkSVGNumberType, true> SkSVGPresentationAttributes::fStrokeOpacity

Definition at line 85 of file SkSVGAttribute.h.

◆ fStrokeWidth

SkSVGProperty<SkSVGLength , true> SkSVGPresentationAttributes::fStrokeWidth

Definition at line 86 of file SkSVGAttribute.h.

◆ fTextAnchor

SkSVGProperty<SkSVGTextAnchor, true> SkSVGPresentationAttributes::fTextAnchor

Definition at line 98 of file SkSVGAttribute.h.

◆ fVisibility

SkSVGProperty<SkSVGVisibility, true> SkSVGPresentationAttributes::fVisibility

Definition at line 88 of file SkSVGAttribute.h.


The documentation for this struct was generated from the following files: