Flutter Engine
The Flutter Engine
Classes | Functions | Variables
AnimatedTextSlide.cpp File Reference
#include "include/core/SkCanvas.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkFont.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkImage.h"
#include "include/core/SkTypeface.h"
#include "src/base/SkRandom.h"
#include "src/base/SkTime.h"
#include "src/base/SkUTF.h"
#include "tools/fonts/FontToolUtils.h"
#include "tools/viewer/Slide.h"

Go to the source code of this file.

Classes

class  AnimatedTextSlide
 

Functions

static void DrawTheText (SkCanvas *canvas, const char text[], size_t length, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
 

Variables

SkRandom gRand
 

Function Documentation

◆ DrawTheText()

static void DrawTheText ( SkCanvas canvas,
const char  text[],
size_t  length,
SkScalar  x,
SkScalar  y,
const SkFont font,
const SkPaint paint 
)
static

Definition at line 30 of file AnimatedTextSlide.cpp.

31 {
32 SkFont f(font);
33 f.setSubpixel(true);
35}
@ 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)
Definition: SkCanvas.cpp:2413
Definition: SkFont.h:35
const Paint & paint
Definition: color_source.cc:38
size_t length
std::u16string text
double y
double x
font
Font Metadata and Metrics.

Variable Documentation

◆ gRand

SkRandom gRand

Definition at line 28 of file AnimatedTextSlide.cpp.