42 canvas->
drawRect(fromLeft, rectPaint);
45 canvas->
drawRect(fromTop, rectPaint);
48 canvas->
drawRect(fromRight, rectPaint);
51 canvas->
drawRect(fromBottom, rectPaint);
54 canvas->
drawRect(leftBorder, rectPaint);
57 canvas->
drawRect(topBorder, rectPaint);
60 canvas->
drawRect(rightBorder, rectPaint);
63 canvas->
drawRect(bottomBorder, rectPaint);
71 canvas->
drawRect(outOfBounds, outOfBoundsPaint);
81 for (
int i = 0;
i < 8;
i++) {
82 for (
int j = 0; j < 3; j++) {
95 paint.setStrokeWidth(1);
97 paint.setStrokeWidth(0);
100 paint.setAntiAlias(
true);
102 paint.setAntiAlias(
false);
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static void draw_big_rect(SkCanvas *canvas, SkScalar big, const SkPaint &rectPaint)
DEF_SIMPLE_GM(bigrect, canvas, 325, 125)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void setStyle(Style style)
void setColor(SkColor color)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
void setStrokeWidth(SkScalar width)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)