Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::PresentationIdentity Struct Reference

Identity of the document content consumed by one renderer capture. More...

#include "donner/editor/PresentationPose.h"

Public Member Functions

bool sameContent (const PresentationIdentity &other) const
 Compare geometry/resource provenance while allowing different object poses and captures.
bool sameScene (const PresentationIdentity &other) const
 Compare the exact consumed document/resource revision, independent of capture allocation.

Public Attributes

std::uint64_t captureId = 0
 Immutable worker capture, never a gesture number.
std::uint64_t documentGeneration = 0
 Document lifetime.
std::uint64_t documentRevision = 0
 Actual guarded DOM mutation revision.
std::uint64_t version = 0
 Committed document mutation version.
std::uint64_t geometryRevision = 0
 Non-transform document content.
std::uint64_t fontResourceRevision = 0
 Adopted font resources.
std::uint64_t presentationEpoch = 0
 Renderer configuration.

Friends

bool operator== (const PresentationIdentity &lhs, const PresentationIdentity &rhs)=default
 Compare all members for value equality.

Detailed Description

Identity of the document content consumed by one renderer capture.

Member Function Documentation

◆ sameContent()

bool donner::editor::PresentationIdentity::sameContent ( const PresentationIdentity & other) const
nodiscard

Compare geometry/resource provenance while allowing different object poses and captures.

Parameters
otherCandidate source identity.

◆ sameScene()

bool donner::editor::PresentationIdentity::sameScene ( const PresentationIdentity & other) const
nodiscard

Compare the exact consumed document/resource revision, independent of capture allocation.

Parameters
otherCandidate source identity.

◆ operator==

bool operator== ( const PresentationIdentity & lhs,
const PresentationIdentity & rhs )
friend

Compare all members for value equality.

Parameters
lhsValue to compare.
rhsValue to compare.

The documentation for this struct was generated from the following file: