20 #include <SDL2/SDL_events.h>
21 #include <SDL2/SDL_clipboard.h>
23 #define CLIPBOARD_FUNCS_DEFINED
36 SDL_SetClipboardText(text.c_str());
41 char* clipboard = SDL_GetClipboardText();
46 const std::string result(clipboard);
std::string copy_from_clipboard(const bool)
Copies text from the clipboard.
void copy_to_clipboard(const std::string &text, const bool)
Copies text to the clipboard.
void handle_system_event(const SDL_Event &)
bool available()
Whether wesnoth was compiled with support for a clipboard.