MyGUI: MyGUI_WindowsClipboardHandler.h Source File

MyGUI 3.4.3

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
13namespace 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(std::string_view _type, std::string_view _data);
26 void handleClipboardRequested(std::string_view _type, std::string& _data);
27
28 private:
29 // дескриптор нашего главного окна
30 size_t mHwnd;
31 // строка, которую мы положили в буфер обмена винды
32 UString mPutTextInClipboard;
33 };
34#endif // MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
35
36} // namespace MyGUI
37
38#endif // MYGUI_WINDOWS_CLIPBOARD_HANDLER_H_
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_UString.h
MyGUI
Definition MyGUI_ActionController.h:15