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

A single character in the text buffer with associated syntax highlighting information. More...

#include "donner/editor/TextBuffer.h"

Public Member Functions

 Glyph (char c, ColorIndex color)
 Create a character with its syntax-color index.

Public Attributes

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.

Detailed Description

A single character in the text buffer with associated syntax highlighting information.

Constructor & Destructor Documentation

◆ Glyph()

donner::editor::Glyph::Glyph ( char c,
ColorIndex color )
inline

Create a character with its syntax-color index.

Parameters
cCharacter stored in the glyph.
colorSyntax-color index.

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