Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::EmbeddedSvgIconRequest Struct Reference

One embedded-SVG rasterization, for the batched atlas path. More...

#include "donner/editor/EmbeddedSvgIcon.h"

Public Attributes

std::span< const unsigned char > svgBytes
 Embedded SVG source bytes. Must point at storage that outlives the call and, for PrewarmEmbeddedSvgIcons, the cached entry - embedded resource arrays qualify.
int outputSizePx = 0
 Square output bitmap size in device pixels.
bool tintableMask = true
 True to normalize to a tintable white alpha mask (RenderEmbeddedSvgIcon semantics), false to preserve authored colors (RenderEmbeddedSvgArtwork).

Detailed Description

One embedded-SVG rasterization, for the batched atlas path.

See also
RenderEmbeddedSvgIconBatch

Member Data Documentation

◆ outputSizePx

int donner::editor::EmbeddedSvgIconRequest::outputSizePx = 0

Square output bitmap size in device pixels.

◆ svgBytes

std::span<const unsigned char> donner::editor::EmbeddedSvgIconRequest::svgBytes

Embedded SVG source bytes. Must point at storage that outlives the call and, for PrewarmEmbeddedSvgIcons, the cached entry - embedded resource arrays qualify.

◆ tintableMask

bool donner::editor::EmbeddedSvgIconRequest::tintableMask = true

True to normalize to a tintable white alpha mask (RenderEmbeddedSvgIcon semantics), false to preserve authored colors (RenderEmbeddedSvgArtwork).


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