MyGUI
3.4.2
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
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_UString.h
"
14
15
namespace
MyGUI
16
{
17
18
class
WindowsClipboardHandler;
19
20
class
MYGUI_EXPORT
ClipboardManager
21
{
22
MYGUI_SINGLETON_DECLARATION
(
ClipboardManager
);
23
public
:
24
ClipboardManager
();
25
26
void
initialise();
27
void
shutdown();
28
33
void
setClipboardData(
const
std::string& _type,
const
std::string& _data);
34
38
void
clearClipboardData(
const
std::string& _type);
39
43
std::string getClipboardData(
const
std::string& _type)
const
;
44
45
/*events:*/
51
delegates::CMultiDelegate2<const std::string&, const std::string&>
eventClipboardChanged
;
52
59
delegates::CMultiDelegate2<const std::string&, std::string&>
eventClipboardRequested
;
60
61
private
:
62
MapString
mClipboardData;
63
64
#if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
65
WindowsClipboardHandler* mWindowsClipboardHandler;
66
#endif
67
68
bool
mIsInitialise;
69
};
70
71
}
// namespace MyGUI
72
73
#endif
// MYGUI_CLIPBOARD_MANAGER_H_
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition
MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_Singleton.h
MYGUI_SINGLETON_DECLARATION
#define MYGUI_SINGLETON_DECLARATION(ClassName)
Definition
MyGUI_Singleton.h:111
MyGUI_Types.h
MyGUI_UString.h
MyGUI::ClipboardManager
Definition
MyGUI_ClipboardManager.h:21
MyGUI::ClipboardManager::eventClipboardRequested
delegates::CMultiDelegate2< const std::string &, std::string & > eventClipboardRequested
Definition
MyGUI_ClipboardManager.h:59
MyGUI::ClipboardManager::eventClipboardChanged
delegates::CMultiDelegate2< const std::string &, const std::string & > eventClipboardChanged
Definition
MyGUI_ClipboardManager.h:51
MyGUI::delegates::MultiDelegate
Definition
MyGUI_Delegate.h:200
MyGUI
Definition
MyGUI_ActionController.h:15
MyGUI::MapString
std::map< std::string, std::string > MapString
Definition
MyGUI_Types.h:40
Generated by
1.12.0