#include <string>
#include "SDL.h"
#include "serialization/string_utils.hpp"
Go to the source code of this file.
Functions | |
void | copy_to_clipboard (const std::string &text, const bool mouse) |
Copies text to the clipboard. | |
std::string | copy_from_clipboard (const bool mouse) |
Copies text from the clipboard. |
Definition in file clipboard.hpp.
std::string copy_from_clipboard | ( | const bool | mouse | ) |
Copies text from the clipboard.
mouse | Is the pasting done by the mouse? |
Definition at line 542 of file clipboard.cpp.
Referenced by gui::textbox::handle_event(), and gui2::ttext_::paste_selection().
void copy_to_clipboard | ( | const std::string & | text, | |
const bool | mouse | |||
) |
Copies text to the clipboard.
text | The text to copy. | |
mouse | Is the selection done by the mouse? On UNIX systems there are multiple clipboards and the mouse selction uses a different clipboard. Ignored on other systems. |
Definition at line 538 of file clipboard.cpp.
Referenced by gui2::ttext_::copy_selection(), and gui::textbox::handle_event().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |