Functions | |
void | copy_to_clipboard (const std::string &text, const bool mouse) |
Copies text to the clipboard. More... | |
std::string | copy_from_clipboard (const bool mouse) |
Copies text from the clipboard. More... | |
void | handle_system_event (const SDL_Event &) |
bool | available () |
Whether wesnoth was compiled with support for a clipboard. More... | |
bool desktop::clipboard::available | ( | ) |
Whether wesnoth was compiled with support for a clipboard.
Definition at line 61 of file clipboard.cpp.
Referenced by gui2::tlua_interpreter::controller::bind(), gui2::tchat_log::view::bind(), gui2::tgamestate_inspector::view::bind(), gui2::tscreenshot_notification::pre_show(), gui2::taddon_list::pre_show(), gui2::taddon_description::pre_show(), gui2::tgame_cache_options::pre_show(), gui2::twml_error::pre_show(), and gui2::tgame_version::pre_show().
std::string desktop::clipboard::copy_from_clipboard | ( | const bool | mouse | ) |
Copies text from the clipboard.
mouse | Is the pasting done by the mouse? |
Definition at line 45 of file clipboard.cpp.
Referenced by gui::textbox::handle_key_down(), and gui2::ttext_::paste_selection().
void desktop::clipboard::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 selection uses a different clipboard. Ignored on other systems. |
Definition at line 40 of file clipboard.cpp.
Referenced by gui2::tchat_log::model::chat_message_list_to_clipboard(), gui2::twml_error::copy_report_callback(), gui2::ttext_::copy_selection(), gui2::tgame_cache_options::copy_to_clipboard_callback(), gui2::tgame_version::copy_to_clipboard_callback(), gui2::taddon_description::copy_url_callback(), gui2::taddon_list::copy_url_callback(), editor::editor_controller::export_selection_coords(), gui2::tlua_interpreter::controller::handle_copy_button_clicked(), gui2::tgamestate_inspector::controller::handle_copy_button_clicked(), gui::textbox::handle_key_down(), gui2::tscreenshot_notification::pre_show(), gui2::tgame_version::report_copy_callback(), and gui2::tlabel::signal_handler_right_button_click().
void desktop::clipboard::handle_system_event | ( | const SDL_Event & | ) |
Definition at line 57 of file clipboard.cpp.
Referenced by events::pump().