Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Region_empty_constructor.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=4549dcda3e0f9a41b3daee0ed37deca8
5REG_FIDDLE(Region_empty_constructor, 256, 256, true, 0) {
6void draw(SkCanvas* canvas) {
7 SkRegion region;
8 SkIRect r = region.getBounds();
9 SkDebugf("region bounds: {%d, %d, %d, %d}\n", r.fLeft, r.fTop, r.fRight, r.fBottom);
10}
11} // END FIDDLE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
const SkIRect & getBounds() const
Definition SkRegion.h:165
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60
int32_t fBottom
larger y-axis bounds
Definition SkRect.h:36
int32_t fTop
smaller y-axis bounds
Definition SkRect.h:34
int32_t fLeft
smaller x-axis bounds
Definition SkRect.h:33
int32_t fRight
larger x-axis bounds
Definition SkRect.h:35