clipboard.hpp File Reference

#include <string>
#include "SDL.h"
#include "serialization/string_utils.hpp"

Include dependency graph for clipboard.hpp:

This graph shows which files directly or indirectly include this file:

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.


Detailed Description

Definition in file clipboard.hpp.


Function Documentation

std::string copy_from_clipboard ( const bool  mouse  ) 

Copies text from the clipboard.

Parameters:
mouse Is the pasting done by the mouse?
Returns:
String on clipbaord.

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.

Parameters:
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