The Battle for Wesnoth  1.19.5+dev
Functions
desktop::clipboard Namespace Reference

Functions

void copy_to_clipboard (const std::string &text)
 Copies text to the clipboard. More...
 
std::string copy_from_clipboard ()
 Copies text from the clipboard. More...
 

Function Documentation

◆ copy_from_clipboard()

std::string desktop::clipboard::copy_from_clipboard ( )

Copies text from the clipboard.

Returns
String on clipbaord.

Definition at line 32 of file clipboard.cpp.

Referenced by gui::textbox::handle_key_down(), gui2::text_box_base::paste_selection(), and gui2::password_box::paste_selection().

◆ copy_to_clipboard()

void desktop::clipboard::copy_to_clipboard ( const std::string &  text)