8 #ifndef SkSGGroup_DEFINED
9 #define SkSGGroup_DEFINED
33 size_t size()
const {
return fChildren.size(); }
34 bool empty()
const {
return fChildren.empty(); }
48 std::vector<sk_sp<RenderNode>> fChildren;
49 bool fRequiresIsolation =
true;
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
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
Concrete node, grouping together multiple descendants.
Definition: SkSGGroup.h:20
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
Group(std::vector< sk_sp< RenderNode >>)
void removeChild(const sk_sp< RenderNode > &)
void onRender(SkCanvas *, const RenderContext *) const override
static sk_sp< Group > Make()
Definition: SkSGGroup.h:22
const RenderNode * onNodeAt(const SkPoint &) const override
void addChild(sk_sp< RenderNode >)
bool empty() const
Definition: SkSGGroup.h:34
static sk_sp< Group > Make(std::vector< sk_sp< RenderNode >> children)
Definition: SkSGGroup.h:26
size_t size() const
Definition: SkSGGroup.h:33
Receiver for invalidation events.
Definition: SkSGInvalidationController.h:25
friend class RenderNode
Definition: SkSGNode.h:93
Base class for nodes which can render to a canvas.
Definition: SkSGRenderNode.h:27
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582
Definition: SkSGRenderNode.h:53