|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Portal::Text::erase | ( | EditableText & | s, |
| int | n | ||
| ) |
Erase n codepoints from the cursor.
Positive n erases forward: the codepoints at and after the cursor, which does not move. Negative n erases backward: the codepoints before the cursor, which moves back by the same count. Clamps at whichever text boundary is reached first.
Definition at line 31 of file TextEdit.cpp.
References MayaFlux::Portal::Text::EditableText::cursor, next_codepoint_offset(), previous_codepoint_offset(), and MayaFlux::Portal::Text::EditableText::text.
Referenced by MayaFlux::Portal::Forma::TextField::wire().
Here is the call graph for this function:
Here is the caller graph for this function: