Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Point_iset_2.cpp
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4// HASH=12b7164a769e232bb772f19c59600ee7
5REG_FIDDLE(Point_iset_2, 256, 256, true, 0) {
6void draw(SkCanvas* canvas) {
8 SkPoint fPt;
9 fPt.iset(iPt);
10 SkDebugf("iPt: %d, %d\n", iPt.fX, iPt.fY);
11 SkDebugf("fPt: %g, %g\n", fPt.fX, fPt.fY);
12}
13} // 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
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60
int32_t fX
x-axis value
int32_t fY
y-axis value
void iset(int32_t x, int32_t y)
float fX
x-axis value
float fY
y-axis value