The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
Functions
desktop::clipboard Namespace Reference

Functions

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

Function Documentation

◆ copy_from_clipboard()

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

Copies text from the clipboard.

Returns
String on clipbaord.

Definition at line 29 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)