Donner
C++20 SVG rendering library
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.

Collaboration diagram for donner::svg::components::ComputedClipPathsComponent:
[legend]
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.

Collaboration diagram for donner::svg::components::ComputedClipPathsComponent::ClipPath:
[legend]
Class Members
ClipRule clipRule = ClipRule::NonZero Computed clip rule for this path.
Transformd entityFromParent Transform to the clip path from the parent entity.
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.

PathSpline path The path of the clip path.