|
|
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.
|
#include <cstddef>#include <functional>#include <string>#include <string_view>#include "donner/base/Vector2.h"#include "donner/editor/EditorSampleCatalog.h"#include "donner/editor/ImGuiIncludes.h"Classes | |
| struct | donner::editor::SamplePickerLayout |
| Pure geometry for the sample grid. Values are logical pixels in the pane. More... | |
| struct | donner::editor::SamplePickerState |
| struct | donner::editor::SamplePickerActions |
| Edge-triggered requests emitted by one rendered picker frame. More... | |
| struct | donner::editor::SamplePickerThumbnail |
| Donner-rendered sample artwork uploaded to a texture the picker can blit. More... | |
| class | donner::editor::SamplePickerPresenter |
| Draw the welcome/sample surface inside the current ImGui pane. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Typedefs | |
| using | donner::editor::SamplePickerThumbnailProvider |
| Resolve one catalog entry to its already-rendered thumbnail texture. | |
Enumerations | |
| enum class | SamplePickerLayoutMode { Narrow , Wide } |
| enum class | SamplePickerCommand { Dismiss , OpenFile , LoadSample , OpenGitHub } |
Functions | |
| SamplePickerLayout | donner::editor::ComputeSamplePickerLayout (float availableWidth, std::size_t sampleCount) noexcept |
| Compute a bounded, touch-sized grid without requiring an ImGui context. | |
| std::string_view | donner::editor::SamplePickerDescription (std::string_view sampleId) noexcept |
| Return the concise description used for a catalog sample card. | |
| void | donner::editor::ApplySamplePickerCommand (bool activated, SamplePickerCommand command, std::string_view sampleId, SamplePickerActions *actions) |
| Apply a semantic picker command to an action accumulator. | |
Resolve one catalog entry to its already-rendered thumbnail texture.
| void donner::editor::ApplySamplePickerCommand | ( | bool | activated, |
| SamplePickerCommand | command, | ||
| std::string_view | sampleId, | ||
| SamplePickerActions * | actions ) |
Apply a semantic picker command to an action accumulator.
This helper is deliberately independent of ImGui so command routing can be tested and kept separate from the presenter's drawing code.