Definition at line 28 of file textblobcolortrans.cpp.
◆ TextBlobColorTrans()
skiagm::TextBlobColorTrans::TextBlobColorTrans |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize skiagm::TextBlobColorTrans::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::TextBlobColorTrans::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void skiagm::TextBlobColorTrans::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 65 of file textblobcolortrans.cpp.
65 {
66
68
71
73
74
75
76
78
79 size_t count = std::size(colors);
80 size_t colorIndex = 0;
88 }
89 }
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorLTGRAY
constexpr SkColor SK_ColorCYAN
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorWHITE
#define SkScalarFloorToInt(x)
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
const SkRect & bounds() const
Optional< SkRect > bounds
PODArray< SkColor > colors
◆ onOnceBeforeDraw()
void skiagm::TextBlobColorTrans::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 36 of file textblobcolortrans.cpp.
36 {
38
39
40
43 const char*
text =
"AB";
44
47
50
51
53 text =
"The quick brown fox jumps over the lazy dog.";
56
57
59 }
@ kUTF8
uses bytes to represent UTF-8 or ASCII
@ kAlias
no transparent pixels on glyph edges
font
Font Metadata and Metrics.
The documentation for this class was generated from the following file: