Mercurial > projects > dstep
comparison dstep/applicationservices/coregraphics/CGEvent.d @ 12:9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 14:00:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:07194b026fa4 | 12:9f0b49a2f64e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Aug 1, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.applicationservices.coregraphics.CGEvent; | |
8 | |
9 import dstep.corefoundation.CoreFoundation; | |
10 import dstep.applicationservices.coregraphics.CGBase; | |
11 import dstep.applicationservices.coregraphics.CGDirectDisplay; | |
12 import dstep.applicationservices.coregraphics.CGError; | |
13 import dstep.applicationservices.coregraphics.CGEventSource; | |
14 import dstep.applicationservices.coregraphics.CGEventTypes; | |
15 import dstep.applicationservices.coregraphics.CGGeometry; | |
16 import dstep.applicationservices.coregraphics.CGRemoteOperation; | |
17 import dstep.coreservices.CoreServices; | |
18 | |
19 extern (C) | |
20 { | |
21 uint CGEventGetTypeID (); | |
22 CGEventRef CGEventCreate (CGEventSourceRef source); | |
23 CGEventRef CGEventCreateFromData (CFAllocatorRef allocator, CFDataRef eventData); | |
24 CFDataRef CGEventCreateData (CFAllocatorRef allocator, CGEventRef event); | |
25 CGEventRef CGEventCreateMouseEvent (CGEventSourceRef source, uint mouseType, CGPoint mouseCursorPosition, uint mouseButton); | |
26 CGEventRef CGEventCreateKeyboardEvent (CGEventSourceRef source, ushort virtualKey, bool keyDown); | |
27 CGEventRef CGEventCreateScrollWheelEvent (CGEventSourceRef source, uint units, uint wheelCount, int wheel1, ...); | |
28 CGEventRef CGEventCreateCopy (CGEventRef event); | |
29 CGEventSourceRef CGEventCreateSourceFromEvent (CGEventRef event); | |
30 void CGEventSetSource (CGEventRef event, CGEventSourceRef source); | |
31 uint CGEventGetType (CGEventRef event); | |
32 void CGEventSetType (CGEventRef event, uint type); | |
33 ulong CGEventGetTimestamp (CGEventRef event); | |
34 void CGEventSetTimestamp (CGEventRef event, ulong timestamp); | |
35 CGPoint CGEventGetLocation (CGEventRef event); | |
36 CGPoint CGEventGetUnflippedLocation (CGEventRef event); | |
37 void CGEventSetLocation (CGEventRef event, CGPoint location); | |
38 ulong CGEventGetFlags (CGEventRef event); | |
39 void CGEventSetFlags (CGEventRef event, ulong flags); | |
40 void CGEventKeyboardGetUnicodeString (CGEventRef event, uint maxStringLength, UniCharCount* actualStringLength, wchar* unicodeString); | |
41 void CGEventKeyboardSetUnicodeString (CGEventRef event, uint stringLength, wchar* unicodeString); | |
42 long CGEventGetIntegerValueField (CGEventRef event, uint field); | |
43 double CGEventGetDoubleValueField (CGEventRef event, uint field); | |
44 void CGEventSetIntegerValueField (CGEventRef event, uint field, long value); | |
45 void CGEventSetDoubleValueField (CGEventRef event, uint field, double value); | |
46 CFMachPortRef CGEventTapCreate (uint tap, uint place, uint options, ulong eventsOfInterest, CGEventTapCallBack callback, void* refcon); | |
47 CFMachPortRef CGEventTapCreateForPSN (void* processSerialNumber, uint place, uint options, ulong eventsOfInterest, CGEventTapCallBack callback, void* refcon); | |
48 void CGEventTapEnable (CFMachPortRef myTap, bool enable); | |
49 bool CGEventTapIsEnabled (CFMachPortRef myTap); | |
50 void CGEventTapPostEvent (CGEventTapProxy proxy, CGEventRef event); | |
51 void CGEventPost (uint tap, CGEventRef event); | |
52 void CGEventPostToPSN (void* processSerialNumber, CGEventRef event); | |
53 int CGGetEventTapList (uint maxNumberOfTaps, CGEventTapInformation* tapList, CGTableCount* eventTapCount); | |
54 } |