Donner SVG main
0.8.0 ยท 382bd0190.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.

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: