ASPiK SDK
macclipboard.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #ifndef __macclipboard__
6 #define __macclipboard__
7 
8 #include "../../vstguibase.h"
9 
10 #ifdef __OBJC__
11 @class NSPasteboard;
12 #else
13 struct NSPasteboard;
14 #endif
15 
16 #if MAC_CARBON
17 using DragRef = struct OpaqueDragRef*;
18 #endif
19 
20 namespace VSTGUI {
21 class IDataPackage;
22 
23 namespace MacClipboard {
24 
25 extern SharedPointer<IDataPackage> createClipboardDataPackage ();
26 extern SharedPointer<IDataPackage> createDragDataPackage (NSPasteboard* pasteboard);
27 extern void setClipboard (const SharedPointer<IDataPackage>& data);
28 extern const char* getPasteboardBinaryType ();
29 
30 #if MAC_CARBON
31 extern SharedPointer<IDataPackage> createCarbonDragDataPackage (DragRef drag);
32 #endif
33 
34 }} // namespaces
35 
36 #endif // __macclipboard__
Definition: customcontrols.cpp:8