23 #include <SDL_events.h>
24 #include <SDL_version.h>
27 #include <SDL_clipboard.h>
29 #define CLIPBOARD_FUNCS_DEFINED
42 SDL_SetClipboardText(text.c_str());
47 char* clipboard = SDL_GetClipboardText();
bool available()
Whether wesnoth was compiled with support for a clipboard.
std::string copy_from_clipboard(const bool)
Copies text from the clipboard.
void handle_system_event(const SDL_Event &)
void copy_to_clipboard(const std::string &text, const bool)
Copies text to the clipboard.
GLsizei const GLcharARB ** string