8 #ifndef SkSGRect_DEFINED
9 #define SkSGRect_DEFINED
51 struct AttrContainer {
52 uint8_t fDirection : 1;
53 uint8_t fInitialPointIndex : 2;
58 void setDirection(
SkPathDirection dir) { fDirection = SkTo<uint8_t>(dir); }
60 uint8_t getInitialPointIndex()
const {
return fInitialPointIndex; }
61 void setInitialPointIndex(uint8_t idx) { fInitialPointIndex = idx; }
94 struct AttrContainer {
95 uint8_t fDirection : 1;
96 uint8_t fInitialPointIndex : 2;
101 void setDirection(
SkPathDirection dir) { fDirection = SkTo<uint8_t>(dir); }
103 uint8_t getInitialPointIndex()
const {
return fInitialPointIndex; }
104 void setInitialPointIndex(uint8_t idx) { fInitialPointIndex = idx; }
SkPathDirection
Definition: SkPathTypes.h:34
@ kCW
clockwise direction for adding closed contours
#define SG_ATTRIBUTE(attr_name, attr_type, attr_container)
Definition: SkSGNode.h:99
#define SG_MAPPED_ATTRIBUTE(attr_name, attr_type, attr_container)
Definition: SkSGNode.h:112
float SkScalar
Definition: SkScalar.h:14
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
SkPaint controls options applied when drawing.
Definition: SkPaint.h:44
SkPath contain geometry.
Definition: SkPath.h:58
SkRRect describes a rounded rectangle with a bounds and a pair of radii for each corner.
Definition: SkRRect.h:35
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
Base class for nodes which provide 'geometry' (as opposed to paint) for drawing.
Definition: SkSGGeometryNode.h:25
Receiver for invalidation events.
Definition: SkSGInvalidationController.h:25
Concrete Geometry node, wrapping an SkRRect.
Definition: SkSGRect.h:71
bool onContains(const SkPoint &) const override
void onDraw(SkCanvas *, const SkPaint &) const override
void onClip(SkCanvas *, bool antiAlias) const override
static sk_sp< RRect > Make(const SkRRect &rr)
Definition: SkSGRect.h:74
static sk_sp< RRect > Make()
Definition: SkSGRect.h:73
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
SkPath onAsPath() const override
Concrete Geometry node, wrapping an SkRect.
Definition: SkSGRect.h:25
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
SkPath onAsPath() const override
void onClip(SkCanvas *, bool antiAlias) const override
static sk_sp< Rect > Make()
Definition: SkSGRect.h:27
bool onContains(const SkPoint &) const override
void onDraw(SkCanvas *, const SkPaint &) const override
static sk_sp< Rect > Make(const SkRect &r)
Definition: SkSGRect.h:28
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582
static constexpr SkRect MakeEmpty()
Returns constructed SkRect set to (0, 0, 0, 0).
Definition: SkRect.h:595