Definition at line 31 of file hello_bazel_world.cpp.
◆ HelloBazelWorldGM()
HelloBazelWorldGM::HelloBazelWorldGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize HelloBazelWorldGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString HelloBazelWorldGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ isBazelOnly()
bool HelloBazelWorldGM::isBazelOnly |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void HelloBazelWorldGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 42 of file hello_bazel_world.cpp.
42 {
44 paint.setAntiAlias(
true);
46
47 const char*
text =
"Hello, Bazel world!";
48 size_t text_length = strlen(
text);
49
53
57 }
constexpr SkColor SK_ColorRED
@ kUTF8
uses bytes to represent UTF-8 or ASCII
void drawSimpleText(const void *text, size_t byteLength, SkTextEncoding encoding, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
font
Font Metadata and Metrics.
constexpr float centerX() const
constexpr float centerY() const
The documentation for this class was generated from the following file: