Flutter Engine
The Flutter Engine
Functions
Point_iset_2.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (Point_iset_2, 256, 256, true, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Point_iset_2  ,
256  ,
256  ,
true  ,
 
)

Definition at line 4 of file Point_iset_2.cpp.

4 {
5void draw(SkCanvas* canvas) {
7 SkPoint fPt;
8 fPt.iset(iPt);
9 SkDebugf("iPt: %d, %d\n", iPt.fX, iPt.fY);
10 SkDebugf("fPt: %g, %g\n", fPt.fX, fPt.fY);
11}
12} // END FIDDLE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static constexpr int32_t SK_MinS32
Definition: SkMath.h:22
static constexpr int32_t SK_MaxS32
Definition: SkMath.h:21
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
int32_t fX
x-axis value
Definition: SkPoint_impl.h:29
int32_t fY
y-axis value
Definition: SkPoint_impl.h:30
void iset(int32_t x, int32_t y)
Definition: SkPoint_impl.h:214
float fX
x-axis value
Definition: SkPoint_impl.h:164
float fY
y-axis value
Definition: SkPoint_impl.h:165