Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
ComputedClipPathsComponent.h File Reference
Include dependency graph for ComputedClipPathsComponent.h:

Classes

struct  donner::svg::components::ComputedClipPathsComponent
 Stores a computed clip path, which is used to clip the rendering of an entity. More...
struct  donner::svg::components::ComputedClipPathsComponent::ClipPath
 Information about a specific shape within a clip path. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
namespace  donner::svg::components
 Contains the implementation of the Donner ECS,.

Class Documentation

◆ donner::svg::components::ComputedClipPathsComponent

struct donner::svg::components::ComputedClipPathsComponent

Stores a computed clip path, which is used to clip the rendering of an entity.

Aggregates together all paths that compose a clip path, including nested clip paths.

Class Members
vector< ClipPath > clipPaths All clip paths, in order they need to be applied based on their layer.

◆ donner::svg::components::ComputedClipPathsComponent::ClipPath

struct donner::svg::components::ComputedClipPathsComponent::ClipPath

Information about a specific shape within a clip path.

Class Members
ClipRule clipRule = ClipRule::NonZero Computed clip rule for this path.
int layer = 0 Layer index of the clip path, to create a new clip path the layer is incremented.

Paths within a layer are union'd together. When the layer decreases, the combined path of everything in the layer is differenced with the next path in the list.

Transform2d parentFromEntity Transform to the clip path from the parent entity.
Path path The path of the clip path.