Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
CompositedPresentation.h File Reference

Owns accepted presentation resources and the intent retained across drag release. More...

#include <cmath>
#include <cstdint>
#include <limits>
#include <memory>
#include <optional>
#include <ostream>
#include <variant>
#include <vector>
#include "donner/base/MathUtils.h"
#include "donner/editor/GlTextureCache.h"
#include "donner/editor/SelectTool.h"
Include dependency graph for CompositedPresentation.h:
This graph shows which files directly or indirectly include this file:

Classes

class  donner::editor::CompositedPresentation
 Accepted composited presentation resources, plus the released drag intent retained until a render that represents it is accepted. More...
struct  donner::editor::CompositedPresentation::DiagnosticsSnapshot
 Detached metadata for scheduler, replay and inspector diagnostics. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

std::ostream & donner::editor::operator<< (std::ostream &os, CompositedPresentation::Phase phase)
 Ostream output operator, e.g. SettlingForRender.

Detailed Description

Owns accepted presentation resources and the intent retained across drag release.


Class Documentation

◆ donner::editor::CompositedPresentation::DiagnosticsSnapshot

struct donner::editor::CompositedPresentation::DiagnosticsSnapshot

Detached metadata for scheduler, replay and inspector diagnostics.

Class Members
Vector2i cachedCanvasSize = Vector2i::Zero() Canvas dimensions of the retained cache, in pixels.
Entity cachedEntity = entt::null Entity associated with the retained presentation cache.
uint64_t cachedVersion = 0 Document frame version represented by the retained cache.
bool hasCachedTextures = false Whether a presentation texture cache is available.
Phase phase = Phase::NoCache Current cached-presentation lifecycle phase.
optional< ActiveDragPreview > settlingPreview Drag transform retained while the final raster result is pending.
uint64_t settlingTargetVersion = 0 Document frame version needed to finish drag settling.
bool waitingForFullRender = false Whether presentation is waiting for the final complete render.

Function Documentation

◆ operator<<()

std::ostream & donner::editor::operator<< ( std::ostream & os,
CompositedPresentation::Phase phase )
inline

Ostream output operator, e.g. SettlingForRender.

Parameters
osOutput stream.
phaseValue to output.