Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
LayoutSystem.h File Reference
Include dependency graph for LayoutSystem.h:

Classes

struct  donner::svg::components::ExternalUseInstanceContext
 Registry context installed on a referenced document while an external <use> draws the element it names. More...
class  donner::svg::components::LayoutSystem
 Handles layout and bounds calculations for SVG elements. 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,.

Functions

Entity donner::svg::components::ExternalUseInstanceRoot (const Registry &registry)
 The root an external <use> is instantiating from registry, or entt::null.
ParseResult< bool > donner::svg::components::ParseSizedElementPresentationAttribute (EntityHandle handle, std::string_view name, const parser::PropertyParseFnParams &params)
 Parse presentation attributes for sized elements (SVG, Use, Image), such as x, y, width, height.

Class Documentation

◆ donner::svg::components::ExternalUseInstanceContext

struct donner::svg::components::ExternalUseInstanceContext

Registry context installed on a referenced document while an external <use> draws the element it names.

That element is the root of the instance: absolute transforms stop at it, as if its parent were the <use> element, and the render tree is built from it alone.

Class Members
Entity root The referenced element.