MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ insert_literal()

MAYAFLUX_API void MayaFlux::Portal::Text::insert_literal ( EditableText &  s,
char  c 
)

Insert one raw ASCII byte at the cursor, advancing it past the insert.

For control bytes ('\t', '\n') that structurally never reach WindowEventType::TEXT_INPUT and so cannot go through insert_codepoint().

Definition at line 14 of file TextEdit.cpp.

15{
16 s.text.insert(s.cursor, 1, c);
17 s.cursor += 1;
18}

References MayaFlux::Portal::Text::EditableText::cursor, and MayaFlux::Portal::Text::EditableText::text.

Referenced by MayaFlux::Portal::Forma::TextField::wire().

+ Here is the caller graph for this function: