Flutter Engine
The Flutter Engine
Classes | Functions
pathinterior.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"
#include "include/core/SkRect.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "tools/ToolUtils.h"

Go to the source code of this file.

Classes

class  PathInteriorGM
 

Functions

static SkRect inset (const SkRect &r)
 

Function Documentation

◆ inset()

static SkRect inset ( const SkRect r)
static

Definition at line 19 of file pathinterior.cpp.

19 {
20 SkRect rect = r;
21 rect.inset(r.width() / 8, r.height() / 8);
22 return rect;
23}
sk_sp< SkBlender > blender SkRect rect
Definition: SkRecords.h:350
constexpr float height() const
Definition: SkRect.h:769
constexpr float width() const
Definition: SkRect.h:762