MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / stb_textedit_cut

Function stb_textedit_cut

KBotExt/imgui/imstb_textedit.h:684–692  ·  view source on GitHub ↗

API cut: delete selection

Source from the content-addressed store, hash-verified

682
683// API cut: delete selection
684static int stb_textedit_cut(STB_TEXTEDIT_STRING* str, STB_TexteditState* state)
685{
686 if (STB_TEXT_HAS_SELECTION(state)) {
687 stb_textedit_delete_selection(str, state); // implicitly clamps
688 state->has_preferred_x = 0;
689 return 1;
690 }
691 return 0;
692}
693
694// API paste: replace existing selection with passed-in text
695static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING* str, STB_TexteditState* state, STB_TEXTEDIT_CHARTYPE* text, int len)

Callers 1

InputTextExMethod · 0.85

Calls 1

Tested by

no test coverage detected