Definition at line 22 of file nonclosedpaths.cpp.
◆ ClosureType
Enumerator |
---|
TotallyNonClosed | |
FakeCloseCorner | |
FakeCloseMiddle | |
kClosureTypeCount | |
Definition at line 26 of file nonclosedpaths.cpp.
26 {
28
29
31
32
34
35
37 };
◆ NonClosedPathsGM()
skiagm::NonClosedPathsGM::NonClosedPathsGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize skiagm::NonClosedPathsGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::NonClosedPathsGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ MakePath()
Definition at line 47 of file nonclosedpaths.cpp.
47 {
52 } else {
54 }
61 }
63 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ onDraw()
void skiagm::NonClosedPathsGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 72 of file nonclosedpaths.cpp.
72 {
73
74
75
78
81 };
82
85 };
86
89 };
90
93 };
94
95 int counter = 0;
97 paint.setAntiAlias(
true);
98
99
101 for (size_t style = 0; style < std::size(kStyle); ++style) {
102 for (size_t cap = 0; cap < std::size(kCap); ++cap) {
103 for (
size_t join = 0;
join < std::size(kJoin); ++
join) {
107
109
110 paint.setStyle(kStyle[style]);
111 paint.setStrokeCap(kCap[cap]);
112 paint.setStrokeJoin(kJoin[join]);
114
117 ++counter;
118 }
119 }
120 }
121 }
122 }
123
124
129
131
134 ++counter;
135 }
136 }
void drawPath(const SkPath &path, const SkPaint &paint)
@ kButt_Cap
no stroke extension
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
@ kStrokeAndFill_Style
sets to stroke and fill geometry
static constexpr int kJoinCount
@ kMiter_Join
extends to miter limit
@ kBevel_Join
connects outside edges
static void SetLocation(SkCanvas *canvas, int counter, int lineNum)
static SkPath MakePath(ClosureType type)
static constexpr float kStrokeWidth
SINT Vec< 2 *N, T > join(const Vec< N, T > &lo, const Vec< N, T > &hi)
◆ SetLocation()
static void skiagm::NonClosedPathsGM::SetLocation |
( |
SkCanvas * |
canvas, |
|
|
int |
counter, |
|
|
int |
lineNum |
|
) |
| |
|
inlinestaticprotected |
Definition at line 66 of file nonclosedpaths.cpp.
66 {
70 }
void translate(SkScalar dx, SkScalar dy)
The documentation for this class was generated from the following file: