Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
DonnerSvgToolUtils.h File Reference
#include <string>
#include "donner/base/Box.h"
#include "donner/svg/SVGElement.h"
#include "donner/svg/renderer/RendererInterface.h"
Include dependency graph for DonnerSvgToolUtils.h:
This graph shows which files directly or indirectly include this file:

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.
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.

Class Documentation

◆ donner::svg::SampledImageInfo

struct donner::svg::SampledImageInfo

Sampled image dimensions and scaling for coordinate mapping.

Class Members
int columns = 0
int rows = 0
double xScale = 1.0 Inverse scale: maps sub-pixel index to image X pixel via int(subPixel * xScale).
double yScale = 1.0 Inverse scale: maps sub-pixel index to image Y pixel via int(subPixel * yScale).