Donner 0.8.0-pre
Embeddable browser-grade SVG2 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"

Collaboration diagram for donner::editor::StyleSourceContribution:
[legend]

Public Attributes

std::size_t id = 0
 Stable id within a single annotation computation.
SourceByteRange sourceRange
SourceByteRange chipRange
 Source range whose end anchors the selector chip.
std::string propertyName
StyleContributionKind kind = StyleContributionKind::StylesheetDeclaration
bool effective = false
 True when this contribution wins for at least one element.
bool showChip = false
 True when a selector match-count chip should be shown.
int matchedElementCount = 0
bool showOverflowMarker = false
 True when a chip should show an overflow marker.
std::vector< svg::SVGElementmatchedElements
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 = false

True when this contribution wins for at least one element.

◆ id

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

Stable id within a single annotation computation.

◆ kind

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

◆ matchedElementCount

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

◆ matchedElements

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

◆ overflowTooltip

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

Tooltip for the overflow marker.

◆ propertyName

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

◆ showChip

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

True when a selector match-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

◆ tooltip

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

Tooltip for the source range.


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