Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::StyleSourceContribution Struct Reference

One source-backed style contribution and its source-editor annotation metadata. More...

#include "donner/editor/StyleSourceAnnotations.h"

Public Attributes

std::size_t id = 0
 Stable id within a single annotation computation.
SourceByteRange sourceRange
 Source range of the declaration, attribute, or referenced resource element.
SourceByteRange chipRange
 Source range whose end anchors the selector chip.
std::string propertyName
 CSS property name, or the resource tag name for a referenced resource element.
StyleContributionKind kind = StyleContributionKind::StylesheetDeclaration
 Category of the source annotation.
bool effective
 True for a winning style contribution or a resource with at least one reference.
bool showChip
 True when a selector-match or resource-reference count chip should be shown.
int matchedElementCount = 0
 Matched-element count, or total fragment-reference count for a resource element.
bool showOverflowMarker = false
 True when a chip should show an overflow marker.
std::vector< svg::SVGElement > matchedElements
 Live matched or referencing elements while the document is available.
std::string tooltip
 Tooltip for the source range.
std::string chipTooltip
 Tooltip for the selector match-count chip.
std::string overflowTooltip
 Tooltip for the overflow marker.

Detailed Description

One source-backed style contribution and its source-editor annotation metadata.

Member Data Documentation

◆ chipRange

SourceByteRange donner::editor::StyleSourceContribution::chipRange

Source range whose end anchors the selector chip.

◆ chipTooltip

std::string donner::editor::StyleSourceContribution::chipTooltip

Tooltip for the selector match-count chip.

◆ effective

bool donner::editor::StyleSourceContribution::effective
Initial value:
=
false

True for a winning style contribution or a resource with at least one reference.

◆ id

std::size_t donner::editor::StyleSourceContribution::id = 0

Stable id within a single annotation computation.

◆ kind

StyleContributionKind donner::editor::StyleSourceContribution::kind = StyleContributionKind::StylesheetDeclaration

Category of the source annotation.

◆ matchedElementCount

int donner::editor::StyleSourceContribution::matchedElementCount = 0

Matched-element count, or total fragment-reference count for a resource element.

◆ matchedElements

std::vector<svg::SVGElement> donner::editor::StyleSourceContribution::matchedElements

Live matched or referencing elements while the document is available.

◆ overflowTooltip

std::string donner::editor::StyleSourceContribution::overflowTooltip

Tooltip for the overflow marker.

◆ propertyName

std::string donner::editor::StyleSourceContribution::propertyName

CSS property name, or the resource tag name for a referenced resource element.

◆ showChip

bool donner::editor::StyleSourceContribution::showChip
Initial value:
=
false

True when a selector-match or resource-reference count chip should be shown.

◆ showOverflowMarker

bool donner::editor::StyleSourceContribution::showOverflowMarker = false

True when a chip should show an overflow marker.

◆ sourceRange

SourceByteRange donner::editor::StyleSourceContribution::sourceRange

Source range of the declaration, attribute, or referenced resource element.

◆ tooltip

std::string donner::editor::StyleSourceContribution::tooltip

Tooltip for the source range.


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