A single character in the text buffer with associated syntax highlighting information.
More...
#include "donner/editor/TextBuffer.h"
|
| | Glyph (char c, ColorIndex color) |
| | Create a character with its syntax-color index.
|
|
|
char | character |
| | The actual character.
|
|
ColorIndex | colorIndex = ColorIndex::Default |
| | Color to use for this character.
|
|
bool | isComment: 1 |
| | Part of a single-line comment.
|
|
bool | isMultiLineComment: 1 |
| | Part of a multi-line comment.
|
|
bool | hasCssColor: 1 = false |
| | Cached CSS token color takes precedence over the XML line pass.
|
|
unsigned char | cssRegionKind: 2 = 0 |
| | Previously painted CSS grammar, or zero for XML.
|
|
std::uint8_t | svgMarkupColor = 0 |
| | XML token role, or Default for dictionary-based coloring.
|
A single character in the text buffer with associated syntax highlighting information.
◆ Glyph()
| donner::editor::Glyph::Glyph |
( |
char | c, |
|
|
ColorIndex | color ) |
|
inline |
Create a character with its syntax-color index.
- Parameters
-
| c | Character stored in the glyph. |
| color | Syntax-color index. |
The documentation for this struct was generated from the following file: