Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
TextBuffer.h File Reference
#include <algorithm>
#include <cassert>
#include <string>
#include <string_view>
#include <vector>
#include "donner/base/RcString.h"
#include "donner/base/Utf8.h"
#include "donner/base/Utils.h"
Include dependency graph for TextBuffer.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::editor::Coordinates
 Coordinates representing a position in the text buffer, using a grid-based system where tabs are expanded to spaces according to the tab size setting. More...
struct  donner::editor::Glyph
 A single character in the text buffer with associated syntax highlighting information. More...
struct  donner::editor::Line
 A single line of text, stored as a vector of glyphs. More...
class  donner::editor::TextBuffer
 Manages a collection of lines (the raw text) plus related text operations like insert, delete, and substring extraction. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Enumerations

enum class  donner::editor::ColorIndex {
  Default ,
  Keyword ,
  Number ,
  String ,
  CharLiteral ,
  Punctuation ,
  Identifier ,
  KnownIdentifier ,
  Comment ,
  MultiLineComment ,
  Background ,
  Cursor ,
  Selection ,
  ErrorMarker ,
  Breakpoint ,
  BreakpointOutline ,
  CurrentLineIndicator ,
  CurrentLineIndicatorOutline ,
  LineNumber ,
  CurrentLineFill ,
  CurrentLineFillInactive ,
  CurrentLineEdge ,
  ErrorMessage ,
  BreakpointDisabled ,
  UserFunction ,
  UserType ,
  UniformVariable ,
  GlobalVariable ,
  LocalVariable ,
  FunctionArgument ,
  Max
}
 Color indices for different syntax elements. More...

Enumeration Type Documentation

◆ ColorIndex

enum class donner::editor::ColorIndex
strong

Color indices for different syntax elements.

Used with the editor's color palette to determine how different parts of the text should be colored.