annotate dstep/applicationservices/coregraphics/CGDisplayConfiguration.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
1 /**
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
3 * Authors: Jacob Carlborg
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
4 * Version: Initial created: Aug 1, 2009
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
6 */
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
7 module dstep.applicationservices.coregraphics.CGDisplayConfiguration;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
8
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
9 import dstep.corefoundation.CFDictionary;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
10
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
11 import dstep.applicationservices.coregraphics.CGColorSpace;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
12 import dstep.applicationservices.coregraphics.CGDirectDisplay;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
13 import dstep.applicationservices.coregraphics.CGGeometry;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
14 //import dstep.iokit.IOKitLib;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
15
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
16 struct _CGDisplayConfigRef;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
17
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
18 alias _CGDisplayConfigRef* CGDisplayConfigRef;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
19 alias uint CGConfigureOption;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
20 alias uint CGDisplayChangeSummaryFlags;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
21
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
22 extern (C)
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
23 {
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
24 alias void function (uint, uint, void*) CGDisplayReconfigurationCallBack;
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
25 }
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
26
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
27 enum
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
28 {
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
29 kCGConfigureForAppOnly = 0,
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
30 kCGConfigureForSession = 1,
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
31 kCGConfigurePermanently = 2
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
32 }
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
33
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
34 enum
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
35 {
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
36 kCGDisplayBeginConfigurationFlag = (1 << 0),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
37 kCGDisplayMovedFlag = (1 << 1),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
38 kCGDisplaySetMainFlag = (1 << 2),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
39 kCGDisplaySetModeFlag = (1 << 3),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
40 kCGDisplayAddFlag = (1 << 4),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
41 kCGDisplayRemoveFlag = (1 << 5),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
42 kCGDisplayEnabledFlag = (1 << 8),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
43 kCGDisplayDisabledFlag = (1 << 9),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
44 kCGDisplayMirrorFlag = (1 << 10),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
45 kCGDisplayUnMirrorFlag = (1 << 11),
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
46 kCGDisplayDesktopShapeChangedFlag = (1 << 12)
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
47 }
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
48
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
49 extern (C)
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
50 {
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
51 int CGBeginDisplayConfiguration (CGDisplayConfigRef* pConfigRef);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
52 int CGConfigureDisplayOrigin (CGDisplayConfigRef configRef, uint display, int x, int y);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
53 int CGConfigureDisplayMode (CGDisplayConfigRef configRef, uint display, CFDictionaryRef mode);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
54 int CGConfigureDisplayStereoOperation (CGDisplayConfigRef configRef, uint display, int stereo, int forceBlueLine);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
55 int CGConfigureDisplayMirrorOfDisplay (CGDisplayConfigRef configRef, uint display, uint masterDisplay);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
56 int CGCancelDisplayConfiguration (CGDisplayConfigRef configRef);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
57 int CGCompleteDisplayConfiguration (CGDisplayConfigRef configRef, uint option);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
58 void CGRestorePermanentDisplayConfiguration ();
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
59 int CGDisplayRegisterReconfigurationCallback (CGDisplayReconfigurationCallBack proc, void* userInfo);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
60 int CGDisplayRemoveReconfigurationCallback (CGDisplayReconfigurationCallBack proc, void* userInfo);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
61 int CGDisplaySetStereoOperation (uint display, int stereo, int forceBlueLine, uint option);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
62 int CGDisplayIsActive (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
63 int CGDisplayIsAsleep (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
64 int CGDisplayIsOnline (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
65 int CGDisplayIsMain (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
66 int CGDisplayIsBuiltin (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
67 int CGDisplayIsInMirrorSet (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
68 int CGDisplayIsAlwaysInMirrorSet (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
69 int CGDisplayIsInHWMirrorSet (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
70 uint CGDisplayMirrorsDisplay (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
71 int CGDisplayUsesOpenGLAcceleration (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
72 int CGDisplayIsStereo (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
73 uint CGDisplayPrimaryDisplay (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
74 uint CGDisplayUnitNumber (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
75 uint CGDisplayVendorNumber (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
76 uint CGDisplayModelNumber (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
77 uint CGDisplaySerialNumber (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
78 uint CGDisplayIOServicePort (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
79 CGSize CGDisplayScreenSize (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
80 double CGDisplayRotation (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
81 CGColorSpaceRef CGDisplayCopyColorSpace (uint display);
9f0b49a2f64e Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff changeset
82 }