Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
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.
vector< FontFaceDependency > fontDependencies Faces whose accepted glyph/shape paths formed this consumer's clip, including nested clips.
uint64_t fontResourceRevision = 0

◆ 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.
size_t groupPathCount = 0 Nonzero for a group marker: number of immediately preceding records forming its geometry.
bool hasOwnClipRule = false Basic shapes specify their own rule, independently of the element clip-rule property.
int layer = 0 Nested clip paths immediately precede their referencing shape at a greater layer index.

Their union intersects only that shape. The resulting sibling shapes at the same layer are unioned together.

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