Go to the source code of this file.
|
SKWASM_EXPORT SkPaint * | paint_create () |
|
SKWASM_EXPORT void | paint_dispose (SkPaint *paint) |
|
SKWASM_EXPORT void | paint_setBlendMode (SkPaint *paint, SkBlendMode mode) |
|
SKWASM_EXPORT void | paint_setStyle (SkPaint *paint, SkPaint::Style style) |
|
SKWASM_EXPORT SkPaint::Style | paint_getStyle (SkPaint *paint) |
|
SKWASM_EXPORT void | paint_setStrokeWidth (SkPaint *paint, SkScalar width) |
|
SKWASM_EXPORT SkScalar | paint_getStrokeWidth (SkPaint *paint) |
|
SKWASM_EXPORT void | paint_setStrokeCap (SkPaint *paint, SkPaint::Cap cap) |
|
SKWASM_EXPORT SkPaint::Cap | paint_getStrokeCap (SkPaint *paint) |
|
SKWASM_EXPORT void | paint_setStrokeJoin (SkPaint *paint, SkPaint::Join join) |
|
SKWASM_EXPORT SkPaint::Join | paint_getStrokeJoin (SkPaint *paint) |
|
SKWASM_EXPORT void | paint_setAntiAlias (SkPaint *paint, bool antiAlias) |
|
SKWASM_EXPORT bool | paint_getAntiAlias (SkPaint *paint) |
|
SKWASM_EXPORT void | paint_setColorInt (SkPaint *paint, SkColor colorInt) |
|
SKWASM_EXPORT SkColor | paint_getColorInt (SkPaint *paint) |
|
SKWASM_EXPORT void | paint_setMiterLimit (SkPaint *paint, SkScalar miterLimit) |
|
SKWASM_EXPORT SkScalar | paint_getMiterLimit (SkPaint *paint) |
|
SKWASM_EXPORT void | paint_setShader (SkPaint *paint, SkShader *shader) |
|
SKWASM_EXPORT void | paint_setImageFilter (SkPaint *paint, SkImageFilter *filter) |
|
SKWASM_EXPORT void | paint_setColorFilter (SkPaint *paint, SkColorFilter *filter) |
|
SKWASM_EXPORT void | paint_setMaskFilter (SkPaint *paint, SkMaskFilter *filter) |
|
◆ paint_create()
Definition at line 15 of file paint.cpp.
15 {
17
18
19 paint->setAntiAlias(
true);
21}
◆ paint_dispose()
◆ paint_getAntiAlias()
Definition at line 69 of file paint.cpp.
69 {
70 return paint->isAntiAlias();
71}
◆ paint_getColorInt()
◆ paint_getMiterLimit()
Definition at line 85 of file paint.cpp.
85 {
86 return paint->getStrokeMiter();
87}
◆ paint_getStrokeCap()
Definition at line 53 of file paint.cpp.
53 {
54 return paint->getStrokeCap();
55}
◆ paint_getStrokeJoin()
Definition at line 61 of file paint.cpp.
61 {
62 return paint->getStrokeJoin();
63}
◆ paint_getStrokeWidth()
Definition at line 45 of file paint.cpp.
45 {
46 return paint->getStrokeWidth();
47}
◆ paint_getStyle()
◆ paint_setAntiAlias()
Definition at line 65 of file paint.cpp.
65 {
66 paint->setAntiAlias(antiAlias);
67}
◆ paint_setBlendMode()
Definition at line 27 of file paint.cpp.
27 {
29}
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
◆ paint_setColorFilter()
Definition at line 97 of file paint.cpp.
97 {
98 paint->setColorFilter(sk_ref_sp<SkColorFilter>(filter));
99}
◆ paint_setColorInt()
◆ paint_setImageFilter()
Definition at line 93 of file paint.cpp.
93 {
94 paint->setImageFilter(sk_ref_sp<SkImageFilter>(filter));
95}
◆ paint_setMaskFilter()
Definition at line 101 of file paint.cpp.
101 {
102 paint->setMaskFilter(sk_ref_sp<SkMaskFilter>(filter));
103}
◆ paint_setMiterLimit()
Definition at line 81 of file paint.cpp.
81 {
82 paint->setStrokeMiter(miterLimit);
83}
◆ paint_setShader()
Definition at line 89 of file paint.cpp.
89 {
90 paint->setShader(sk_ref_sp<SkShader>(shader));
91}
◆ paint_setStrokeCap()
◆ paint_setStrokeJoin()
Definition at line 57 of file paint.cpp.
57 {
59}
static SkString join(const CommandLineFlags::StringArray &)
◆ paint_setStrokeWidth()
◆ paint_setStyle()