| 1115 | } |
| 1116 | |
| 1117 | UString 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 | |
| 1129 | void Framework::threadPoolTaskEnqueue(std::function<void()> task) { p->threadPool->enqueue(task); } |
| 1130 |