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

Method process_text_paste

src/InputManager.cpp:1046–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044}
1045
1046void InputManager::process_text_paste(const std::string& pasteStr, bool allowRichText) {
1047 CustomEvents::emit_event<CustomEvents::PasteEvent>({
1048 .type = CustomEvents::PasteEvent::DataType::TEXT,
1049 .data = pasteStr,
1050 .richText = allowRichText && lastCopiedRichText.has_value() && lastCopiedRichText.value().get_plain_text() == remove_carriage_returns_from_str(pasteStr) ? lastCopiedRichText : std::nullopt
1051 });
1052}
1053
1054void InputManager::process_image_paste(std::string_view pasteData, const std::optional<Vector2f>& pastePos) {
1055 CustomEvents::emit_event<CustomEvents::PasteEvent>({

Callers 2

InputManagerMethod · 0.80
call_pasteMethod · 0.80

Calls 3

get_plain_textMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected