MCPcopy Create free account
hub / github.com/MyGUI/mygui / onClipboardChanged

Method onClipboardChanged

Common/Input/SDL/InputManager.cpp:305–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303 }
304
305 void InputManager::onClipboardChanged(std::string_view _type, std::string_view _data)
306 {
307 if (_type == "Text")
308 SDL_SetClipboardText(MyGUI::TextIterator::getOnlyText(MyGUI::UString(_data)).asUTF8().c_str());
309 }
310
311 void InputManager::onClipboardRequested(std::string_view _type, std::string& _data)
312 {

Callers

nothing calls this directly

Calls 2

UStringFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected