00001 /* $Id: clipboard.hpp 26170 2008-04-27 15:09:20Z mordante $ */ 00002 /* 00003 Copyright (C) 2003 - 2008 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 version 2 00008 or at your option any later version. 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY. 00011 00012 See the COPYING file for more details. 00013 */ 00014 00015 //! @file clipboard.hpp 00016 //! 00017 00018 #ifndef CLIPBOARD_HPP_INCLUDED 00019 #define CLIPBOARD_HPP_INCLUDED 00020 00021 #include <string> 00022 #include "SDL.h" 00023 #include "serialization/string_utils.hpp" 00024 //! Copies text to the clipboard. 00025 //! 00026 //! @param text The text to copy. 00027 //! @param mouse Is the selection done by the mouse? On UNIX systems there 00028 //! are multiple clipboards and the mouse selction uses a 00029 //! different clipboard. Ignored on other systems. 00030 void copy_to_clipboard(const std::string& text, const bool mouse); 00031 00032 //! Copies text from the clipboard. 00033 //! 00034 //! @param mouse Is the pasting done by the mouse? 00035 //! 00036 //! @returns String on clipbaord. 00037 std::string copy_from_clipboard(const bool mouse); 00038 00039 #if defined(_X11) && !defined(__APPLE__) 00040 void handle_system_event(const SDL_Event& ev); 00041 #endif 00042 00043 #endif
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |