MyGUI 3.4.3
MyGUI_ClipboardManager.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_CLIPBOARD_MANAGER_H_
8#define MYGUI_CLIPBOARD_MANAGER_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Singleton.h"
12#include "MyGUI_Types.h"
13#include "MyGUI_EventPair.h"
14#include "MyGUI_UString.h"
15
16namespace MyGUI
17{
18
19 class WindowsClipboardHandler;
20
22 {
24
25 public:
27
28 void initialise();
29 void shutdown();
30
35 void setClipboardData(std::string_view _type, std::string_view _data);
36
40 void clearClipboardData(std::string_view _type);
41
45 std::string getClipboardData(std::string_view _type) const;
46
47 /*events:*/
57
68
69 private:
70 MapString mClipboardData;
71
72#if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
73 WindowsClipboardHandler* mWindowsClipboardHandler;
74#endif
75
76 bool mIsInitialise{false};
77 };
78
79} // namespace MyGUI
80
81#endif // MYGUI_CLIPBOARD_MANAGER_H_
#define MYGUI_EXPORT
#define MYGUI_SINGLETON_DECLARATION(ClassName)
std::string getClipboardData(std::string_view _type) const
void setClipboardData(std::string_view _type, std::string_view _data)
void clearClipboardData(std::string_view _type)
EventPairConvertStringView< delegates::MultiDelegate< const std::string &, const std::string & >, delegates::MultiDelegate< std::string_view, std::string_view > > eventClipboardChanged
ClipboardManager(const ClipboardManager &)=delete
EventPairConvertStringView< delegates::MultiDelegate< const std::string &, std::string & >, delegates::MultiDelegate< std::string_view, std::string & > > eventClipboardRequested
std::map< std::string, std::string, std::less<> > MapString
Definition MyGUI_Types.h:40