Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::editor::TextInspectorPanel Class Reference

Inspector section for a single selected <text> element. More...

#include "donner/editor/TextInspectorPanel.h"

Public Member Functions

bool render (EditorApp *liveApp, double nowSeconds, const svg::FontCatalog *fontCatalog=nullptr)
 Render the Text section if the selection is exactly one <text> element.

Static Public Attributes

static constexpr double kContentCommitIdleSeconds = 0.5
 Idle delay (seconds) after the last content keystroke before the pending content edit is committed as one undo entry.

Detailed Description

Inspector section for a single selected <text> element.

Member Function Documentation

◆ render()

bool donner::editor::TextInspectorPanel::render ( EditorApp * liveApp,
double nowSeconds,
const svg::FontCatalog * fontCatalog = nullptr )

Render the Text section if the selection is exactly one <text> element.

Parameters
liveAppLive editor app for queuing mutations, or null while the renderer owns the document (renders nothing).
nowSecondsMonotonic time in seconds, used for content-edit debouncing. Pass ImGui::GetTime() from the shell.
fontCatalogOptional font catalog used to annotate the free-text font-family field with how it resolves (Embedded / System / Public Sans fallback). Pass null to skip the annotation.
Returns
true if a document mutation was queued this frame.

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