|
|
Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
|
Source decoration for style/cascade annotations in the editor. More...
#include "donner/editor/TextEditor.h"
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. | |
Source decoration for style/cascade annotations in the editor.
| SourceStyleChipKind donner::editor::TextEditor::SourceStyleDecoration::chipKind |
Semantic kind of the chip.