MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Portal::Text::EditableText Struct Reference

Mutable UTF-8 text plus a byte-offset cursor. More...

#include <TextEdit.hpp>

+ Collaboration diagram for MayaFlux::Portal::Text::EditableText:

Public Attributes

size_t cursor { 0 }
 
std::string text
 

Detailed Description

Mutable UTF-8 text plus a byte-offset cursor.

cursor is always a codepoint boundary into text: every function below that moves or writes it goes through next_codepoint_offset(), previous_codepoint_offset(), or encode_utf8(), so nothing here ever sets it to an arbitrary byte offset.

Definition at line 31 of file TextEdit.hpp.


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