Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
RRect_Corner |
, |
|
|
256 |
, |
|
|
70 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file RRect_Corner.cpp.
4 {
7 paint.setAntiAlias(
true);
9 SkVector corners[] = {{25, 17}, {17, 19}, {19, 15}, {15, 15}};
22}
23}
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
SkVector radii(Corner corner) const
@ kUpperLeft_Corner
index of top-left corner radii
@ kLowerRight_Corner
index of bottom-right corner radii
@ kUpperRight_Corner
index of top-right corner radii
@ kLowerLeft_Corner
index of bottom-left corner radii
void setRectRadii(const SkRect &rect, const SkVector radii[4])
const SkRect & getBounds() const
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
SkScalar fTop
smaller y-axis bounds