|
|
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.
|
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. | |
Inspector section for a single selected <text> element.
| 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.
| liveApp | Live editor app for queuing mutations, or null while the renderer owns the document (renders nothing). |
| nowSeconds | Monotonic time in seconds, used for content-edit debouncing. Pass ImGui::GetTime() from the shell. |
| fontCatalog | Optional 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. |