Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::SampleThumbnailRenderRequest Struct Reference

One SVG source queued for bounded, low-priority rendering on the existing render worker. More...

#include "donner/editor/AsyncRenderer.h"

Public Attributes

AuxiliaryPreviewKind kind = AuxiliaryPreviewKind::Sample
std::uint64_t key = 0
 Caller-defined key copied into the result (the sample-catalog index in EditorShell).
std::string source
 Complete SVG source. The request owns its copy until the worker finishes parsing it.
Vector2i dimensions = Vector2i::Zero()
 Output bitmap dimensions in device pixels.
svg::RendererInterfacenativeRenderer = nullptr
 Root renderer used to create the worker-local offscreen on native builds.

Detailed Description

One SVG source queued for bounded, low-priority rendering on the existing render worker.

Member Data Documentation

◆ dimensions

Vector2i donner::editor::SampleThumbnailRenderRequest::dimensions = Vector2i::Zero()

Output bitmap dimensions in device pixels.

◆ key

std::uint64_t donner::editor::SampleThumbnailRenderRequest::key = 0

Caller-defined key copied into the result (the sample-catalog index in EditorShell).

◆ kind

AuxiliaryPreviewKind donner::editor::SampleThumbnailRenderRequest::kind = AuxiliaryPreviewKind::Sample

◆ nativeRenderer

svg::RendererInterface* donner::editor::SampleThumbnailRenderRequest::nativeRenderer = nullptr

Root renderer used to create the worker-local offscreen on native builds.

Browser builds ignore this pointer and reuse the renderer already owned by their worker. The native caller must keep it alive until the result is polled or the renderer is destroyed.

◆ source

std::string donner::editor::SampleThumbnailRenderRequest::source

Complete SVG source. The request owns its copy until the worker finishes parsing it.


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