MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / process_cut

Method process_cut

src/RichText/TextBox.cpp:248–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248std::pair<std::string, TextData> TextBox::process_cut(Cursor& cur) {
249 auto toRet = process_copy(cur);
250 if(cur.selectionBeginPos != cur.selectionEndPos) {
251 cur.selectionEndPos = cur.selectionBeginPos = cur.pos = remove(cur.selectionBeginPos, cur.selectionEndPos);
252 cur.previousX = std::nullopt;
253 }
254 return toRet;
255}
256
257void TextBox::process_text_input(Cursor& cur, const std::string& in, const std::optional<TextStyleModifier::ModifierMap>& inputModMap) {
258 if(!in.empty()) {

Callers 2

input_key_callbackMethod · 0.80
right_click_popup_guiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected