|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
#include <filesystem>#include <optional>#include <string>#include <string_view>#include "donner/base/Box.h"#include "donner/base/TerminalEscape.h"#include "donner/svg/SVGElement.h"#include "donner/svg/renderer/RendererInterface.h"Classes | |
| struct | donner::svg::SampledImageInfo |
| Sampled image dimensions and scaling for coordinate mapping. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
| namespace | donner::svg |
| Donner SVG library, which can load, manipulate and render SVG files. | |
Functions | |
| std::string | donner::svg::BuildCssSelectorPath (const SVGElement &element) |
| Build a CSS-like selector path for an element. | |
| std::optional< std::filesystem::path > | donner::svg::ResourceSandboxRootForAbsoluteInput (const std::filesystem::path &absoluteInputPath) |
| Return the narrowest sandbox root for an absolute input document path. | |
| void | donner::svg::CompositeAABBRect (RendererBitmap &bitmap, const Box2d &bounds, const SampledImageInfo &imageInfo) |
| Draw a 1-sub-pixel blue AABB outline directly into the bitmap, aligned to the terminal sub-pixel grid. | |
| std::string | donner::svg::EscapeTerminalText (std::string_view text, bool preserveNewlines=false) |
| Escape untrusted bytes and terminal format controls while preserving printable UTF-8. | |
| struct donner::svg::SampledImageInfo |
Sampled image dimensions and scaling for coordinate mapping.