MyGUI: MyGUI_WindowsClipboardHandler.h Source File

MyGUI 3.2.2

MyGUI_WindowsClipboardHandler.h
Go to the documentation of this file.
1 /*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7 #ifndef MYGUI_WINDOWS_CLIPBOARD_HANDLER_H_
8 #define MYGUI_WINDOWS_CLIPBOARD_HANDLER_H_
9
10 #include "MyGUI_Prerequest.h"
11 #include "MyGUI_UString.h"
12
13 namespace MyGUI
14 {
15
16 #if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
17 class MYGUI_EXPORT WindowsClipboardHandler
18 {
19 public:
20 WindowsClipboardHandler();
21
22 void initialise();
23 void shutdown();
24
25 void handleClipboardChanged(const std::string& _type, const std::string& _data);
26 void handleClipboardRequested(const std::string& _type, std::string& _data);
27 private:
28 // дескриптор нашего главного окна
29 size_t mHwnd;
30 // строка, которую мы положили в буфер обмена винды
31 UString mPutTextInClipboard;
32 };
33 #endif // MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
34
35 } // namespace MyGUI
36
37 #endif // MYGUI_WINDOWS_CLIPBOARD_HANDLER_H_
MyGUI_UString.h
MyGUI_Prerequest.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI
Definition: MyGUI_ActionController.h:14