Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
Canvas_drawString.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (Canvas_drawString, 256, 48, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Canvas_drawString  ,
256  ,
48  ,
false  ,
 
)

Definition at line 5 of file Canvas_drawString.cpp.

5 {
6void draw(SkCanvas* canvas) {
9 canvas->drawString("a small hello", 20, 20, font, paint);
10}
11} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
Definition SkCanvas.h:1803
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
const Paint & paint
sk_sp< SkFontMgr > fontMgr
Definition examples.cpp:32
font
Font Metadata and Metrics.