Flutter Engine
The Flutter Engine
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.
4REG_FIDDLE(Point_iset_2, 256, 256, true, 0) {
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
REG_FIDDLE(Point_iset_2, 256, 256, true, 0)
Definition: Point_iset_2.cpp:4
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