clipboard.hpp

Go to the documentation of this file.
00001 /* $Id: clipboard.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2003 - 2012 by David White <dave@whitevine.net>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 /** @file */
00017 
00018 #ifndef CLIPBOARD_HPP_INCLUDED
00019 #define CLIPBOARD_HPP_INCLUDED
00020 
00021 #include <string>
00022 #include "SDL.h"
00023 
00024 /**
00025  * Copies text to the clipboard.
00026  *
00027  * @param text         The text to copy.
00028  * @param mouse        Is the selection done by the mouse? On UNIX systems there
00029  *                     are multiple clipboards and the mouse selection uses a
00030  *                     different clipboard. Ignored on other systems.
00031  */
00032 void copy_to_clipboard(const std::string& text, const bool mouse);
00033 
00034 /**
00035  * Copies text from the clipboard.
00036  *
00037  * @param mouse        Is the pasting done by the mouse?
00038  *
00039  * @returns            String on clipbaord.
00040  */
00041 std::string copy_from_clipboard(const bool mouse);
00042 
00043 #if defined(_X11) && !defined(__APPLE__)
00044 void handle_system_event(const SDL_Event& ev);
00045 #endif
00046 
00047 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:02:32 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs