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

A single line of text, stored as a vector of glyphs. More...

#include "donner/editor/TextBuffer.h"

Inheritance diagram for donner::editor::Line:
[legend]

Public Types

using Base = std::vector<Glyph>
 Glyph storage underlying a line of text.

Public Member Functions

void emplace (iterator it, char ch, ColorIndex color)
 Insert a colored character before the supplied iterator.

Detailed Description

A single line of text, stored as a vector of glyphs.

This inherits from std::vector<Glyph> purely for convenience.

Member Function Documentation

◆ emplace()

void donner::editor::Line::emplace ( iterator it,
char ch,
ColorIndex color )
inline

Insert a colored character before the supplied iterator.

Parameters
itInsertion position in the line.
chCharacter to insert.
colorSyntax-color index.

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