Mercurial > projects > dwt-mac
annotate dwt/internal/objc/cocoa/bindings.d @ 60:62202ce0039f
Updated and fixed many modules to 3.514
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 22 Dec 2008 15:10:19 +0100 |
parents | 858e9a565d62 |
children | e1c48e37e0f5 |
rev | line source |
---|---|
45 | 1 /** |
2 * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Nov 18, 2008 | |
5 * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style) | |
6 * | |
7 */ | |
8 module dwt.internal.objc.cocoa.bindings; | |
9 | |
60
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
10 import tango.stdc.config; |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
11 |
45 | 12 import dwt.internal.c.Carbon; |
13 import dwt.internal.cocoa.NSRect; | |
14 import dwt.internal.objc.cocoa.Cocoa; | |
15 import dwt.internal.objc.runtime; | |
16 | |
60
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
17 enum NSSearchPathDirectory |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
18 { |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
19 NSApplicationDirectory = 1, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
20 NSDemoApplicationDirectory, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
21 NSDeveloperApplicationDirectory, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
22 NSAdminApplicationDirectory, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
23 NSLibraryDirectory, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
24 NSDeveloperDirectory, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
25 NSUserDirectory, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
26 NSDocumentationDirectory, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
27 NSDocumentDirectory, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
28 NSCoreServiceDirectory, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
29 NSDesktopDirectory = 12, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
30 NSCachesDirectory = 13, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
31 NSApplicationSupportDirectory = 14, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
32 NSDownloadsDirectory = 15, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
33 NSAllApplicationsDirectory = 100, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
34 NSAllLibrariesDirectory = 101 |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
35 } |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
36 |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
37 enum NSSearchPathDomainMask |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
38 { |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
39 NSUserDomainMask = 1, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
40 NSLocalDomainMask = 2, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
41 NSNetworkDomainMask = 4, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
42 NSSystemDomainMask = 8, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
43 NSAllDomainsMask = 0x0ffff, |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
44 } |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
45 |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
46 alias c_long NSInteger; |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
47 alias c_ulong NSUInteger; |
62202ce0039f
Updated and fixed many modules to 3.514
Jacob Carlborg <doob@me.com>
parents:
52
diff
changeset
|
48 |
45 | 49 extern (C): |
50 | |
51 //NSAccessibility.h | |
52 id NSAccessibilityActionDescription (id action); | |
53 void NSAccessibilityPostNotification (id element, id notification); | |
54 void NSAccessibilityRaiseBadArgumentException (id element, id attribute, id value); | |
55 id NSAccessibilityRoleDescription (id role, id subrole); | |
56 id NSAccessibilityRoleDescriptionForUIElement (id element); | |
57 id NSAccessibilityUnignoredAncestor (id element); | |
58 id NSAccessibilityUnignoredChildren (id originalChildren); | |
59 id NSAccessibilityUnignoredChildrenForOnlyChild (id originalChild); | |
60 id NSAccessibilityUnignoredDescendant (id element); | |
61 | |
62 //NSGraphics.h | |
63 void NSBeep (); | |
64 NSInteger NSBitsPerPixelFromDepth (NSWindowDepth depth); | |
65 | |
66 | |
67 | |
68 // NSGeometry.h | |
69 NSRect NSIntersectionRect (NSRect aRect, NSRect bRect); | |
70 | |
71 | |
72 | |
73 // NSHFSFileTypes.h | |
74 id NSFileTypeForHFSTypeCode (OSType hfsFileTypeCode); | |
75 | |
76 | |
77 | |
78 // NSObjCRuntime.h | |
79 /*const*/ char * NSGetSizeAndAlignment (/*const*/ char* typePtr, NSUInteger* sizep, NSUInteger* alignp); | |
80 | |
81 | |
82 | |
83 // NSPathUtilities.h | |
84 id NSSearchPathForDirectoriesInDomains (NSSearchPathDirectory directory,NSSearchPathDomainMask domainMask,BOOL expandTilde); | |
85 id NSTemporaryDirectory (); |