clipboard.cpp File Reference

#include "global.hpp"
#include "clipboard.hpp"

Include dependency graph for clipboard.cpp:

Go to the source code of this file.

Functions

void copy_to_clipboard (const std::string &text, const bool)
 Copies text to the clipboard.
std::string copy_from_clipboard (const bool)
 Copies text from the clipboard.
void handle_system_event (const SDL_Event &event)


Detailed Description

Definition in file clipboard.cpp.


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().

void handle_system_event ( const SDL_Event &  event  ) 

Definition at line 547 of file clipboard.cpp.

Referenced by gui2::tevent_handler::handle_event(), and events::pump().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs