Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::TextEditor::SourceStyleDecoration Struct Reference

Source decoration for style/cascade annotations in the editor. More...

#include "donner/editor/TextEditor.h"

Collaboration diagram for donner::editor::TextEditor::SourceStyleDecoration:
[legend]

Public Member Functions

bool operator== (const SourceStyleDecoration &other) const =default
 Equality operator.

Public Attributes

std::size_t id = 0
 Stable decoration id returned on chip clicks.
SourceByteRange range
 Source byte range covered by the decoration.
SourceByteRange chipRange
 Source range whose end anchors the chip.
bool ineffective = false
 Strike through the source range when the style is inactive.
bool showChip = false
 Render a selector-match count chip.
int chipCount = 0
 Count rendered inside the chip.
bool showOverflowMarker = false
 Render a chip-adjacent overflow marker.
SourceStyleChipKind chipKind
 Semantic kind of the chip.
std::string tooltip
 Tooltip shown for the inactive source range.
std::string chipTooltip
 Tooltip shown for the chip.
std::string overflowTooltip
 Tooltip shown for the overflow marker.

Detailed Description

Source decoration for style/cascade annotations in the editor.

Member Data Documentation

◆ chipKind

SourceStyleChipKind donner::editor::TextEditor::SourceStyleDecoration::chipKind
Initial value:
=
@ SelectorMatchCount
Chip summarizes elements matched by a CSS selector.
Definition TextEditor.h:204

Semantic kind of the chip.


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