Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::ResolvedClip Struct Reference

Clip stack entry combining rectangles, paths, and optional masks. More...

#include "donner/svg/renderer/RendererInterface.h"

Public Member Functions

 ResolvedClip ()=default
 Default constructor.
 ResolvedClip (ResolvedClip &&)=default
 Move constructor.
ResolvedClip & operator= (ResolvedClip &&)=default
 Move assignment operator.
 ResolvedClip (const ResolvedClip &other)
 Deep copy (clones mask chain).
ResolvedClip & operator= (const ResolvedClip &other)
 Deep-copy assignment operator.
bool empty () const
 Returns true if the clip has no rect, paths, or mask.

Public Attributes

std::optional< Box2d > clipRect
 Optional axis-aligned clip rectangle.
std::vector< ClipPathShape > clipPaths
 Ordered list of clip path shapes to intersect. Transform applied to all clip paths (e.g., objectBoundingBox unit mapping).
Transform2d clipPathUnitsTransform
 Transform applied to the clip path coordinate system.
std::optional< components::ResolvedMask > mask
 Optional resolved mask reference. For a renderer that tests a single convex clip polygon: when this clip's rectangle is not axis-aligned in device space and its exact intersection with an enclosing polygon clip cannot be represented, keep the enclosing polygon and clip to this rectangle's device-space bounds, instead of replacing the enclosing polygon with this one.
bool boundsFallbackWhenStacked = false
EntityHandle sourceEntity
 Entity whose computed clip paths produced clipPaths, set by the driver. Backends that cache per-clip geometry key it off this entity and index into clipPaths, and drop the cache when the entity's computed clip paths change. A null handle (the default) means nothing may be cached.

Detailed Description

Clip stack entry combining rectangles, paths, and optional masks.


The documentation for this struct was generated from the following file: