#include "donner/base/Path.h"#include "donner/base/Transform.h"#include "donner/svg/core/ClipRule.h"#include "donner/svg/resources/FontCatalogTypes.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,. | |
| 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 | |
| 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. |