Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::gui::EditorWindowOptions Struct Reference
Collaboration diagram for donner::editor::gui::EditorWindowOptions:
[legend]

Public Attributes

std::string title = "Donner SVG Editor"
int initialWidth = 1280
int initialHeight = 720
bool visible = true
 Whether the native desktop window should be shown. Hidden windows still create a real OpenGL context and are useful for framebuffer replay tests.
bool offscreen = false
 Request an offscreen framebuffer-readback replay surface. Linux uses GLFW's windowless "null" platform (OSMesa software GL), even when a display is available. macOS keeps a native GPU-backed Cocoa context and relies on visible = false for hidden replay windows.
double offscreenContentScale = 1.0
 Content/display scale to emulate for hidden replay windows. Replay sets this to the recorded scale so framebuffer readback reproduces the pixel geometry of captures taken on a HiDPI machine.
float clearColor [4] = {0.11f, 0.11f, 0.13f, 1.0f}
 Background clear color (RGBA, 0..1). Matches the viewport surround when the document doesn't fill the whole window.
bool enableFramebufferReadback = false
 Enable framebuffer CPU readback from endFrameAndReadPixels. Intended for replay tests; disabled by default so production WGPU editor frames cannot read back by accident.

Member Data Documentation

◆ clearColor

float donner::editor::gui::EditorWindowOptions::clearColor[4] = {0.11f, 0.11f, 0.13f, 1.0f}

Background clear color (RGBA, 0..1). Matches the viewport surround when the document doesn't fill the whole window.

◆ enableFramebufferReadback

bool donner::editor::gui::EditorWindowOptions::enableFramebufferReadback = false

Enable framebuffer CPU readback from endFrameAndReadPixels. Intended for replay tests; disabled by default so production WGPU editor frames cannot read back by accident.

◆ initialHeight

int donner::editor::gui::EditorWindowOptions::initialHeight = 720

◆ initialWidth

int donner::editor::gui::EditorWindowOptions::initialWidth = 1280

◆ offscreen

bool donner::editor::gui::EditorWindowOptions::offscreen = false

Request an offscreen framebuffer-readback replay surface. Linux uses GLFW's windowless "null" platform (OSMesa software GL), even when a display is available. macOS keeps a native GPU-backed Cocoa context and relies on visible = false for hidden replay windows.

◆ offscreenContentScale

double donner::editor::gui::EditorWindowOptions::offscreenContentScale = 1.0

Content/display scale to emulate for hidden replay windows. Replay sets this to the recorded scale so framebuffer readback reproduces the pixel geometry of captures taken on a HiDPI machine.

◆ title

std::string donner::editor::gui::EditorWindowOptions::title = "Donner SVG Editor"

◆ visible

bool donner::editor::gui::EditorWindowOptions::visible = true

Whether the native desktop window should be shown. Hidden windows still create a real OpenGL context and are useful for framebuffer replay tests.


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