MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / textGetClipboard

Method textGetClipboard

framework/framework.cpp:1117–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117UString Framework::textGetClipboard()
1118{
1119 UString str;
1120 char *text = SDL_GetClipboardText();
1121 if (text != nullptr)
1122 {
1123 str = text;
1124 SDL_free(text);
1125 }
1126 return str;
1127}
1128
1129void Framework::threadPoolTaskEnqueue(std::function<void()> task) { p->threadPool->enqueue(task); }
1130

Callers 1

eventOccuredMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected