changeset 16:fb2555104d70

Added some files to the objc bindings
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Fri, 29 Aug 2008 21:47:55 +0200
parents 2952d5604c0a
children 5b53d338c709
files dwt/internal/c/carboncore/Gestalt.d dwt/internal/c/carboncore/bindings.d dwt/internal/c/hiservices/Processes.d dwt/internal/c/hiservices/bindings.d dwt/internal/objc/coregraphics/CGRemoteOperation.d dwt/internal/objc/coregraphics/bindings.d dwt/internal/objc/foundation/NSGeometry.d
diffstat 7 files changed, 101 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt/internal/c/carboncore/Gestalt.d	Fri Aug 29 21:47:55 2008 +0200
@@ -0,0 +1,12 @@
+/**
+ * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved.
+ * Authors: Jacob Carlborg
+ * Version: Initial created: Aug 23, 2008
+ * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style)
+ * 
+ */
+module dwt.internal.c.carboncore.Gestalt;
+
+import bindings = dwt.internal.c.carboncore.bindings;
+
+alias bindings.Gestalt Gestalt;
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt/internal/c/carboncore/bindings.d	Fri Aug 29 21:47:55 2008 +0200
@@ -0,0 +1,12 @@
+/**
+ * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved.
+ * Authors: Jacob Carlborg
+ * Version: Initial created: Aug 23, 2008
+ * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style)
+ * 
+ */
+module dwt.internal.c.carboncore.bindings;
+
+extern (C):
+    
+short Gestalt (uint selector, int* response);
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt/internal/c/hiservices/Processes.d	Fri Aug 29 21:47:55 2008 +0200
@@ -0,0 +1,21 @@
+/**
+ * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved.
+ * Authors: Jacob Carlborg
+ * Version: Initial created: Aug 23, 2008
+ * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style)
+ * 
+ */
+module dwt.internal.c.hiservices.Processes;
+
+import bindings = dwt.internal.c.hiservices.bindings;
+
+enum ProcessApplicationTransformState : uint
+{
+    kProcessTransformToForegroundApplication = 1
+}
+
+alias ProcessApplicationTransformState.kProcessTransformToForegroundApplication kProcessTransformToForegroundApplication;
+
+alias bindings.GetCurrentProcess GetCurrentProcess;
+alias bindings.SetFrontProcess SetFrontProcess;
+alias bindings.TransformProcessType TransformProcessType;
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt/internal/c/hiservices/bindings.d	Fri Aug 29 21:47:55 2008 +0200
@@ -0,0 +1,15 @@
+/**
+ * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved.
+ * Authors: Jacob Carlborg
+ * Version: Initial created: Aug 23, 2008
+ * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style)
+ * 
+ */
+module dwt.internal.c.hiservices.bindings;
+
+import dwt.internal.c.hiservices.Processes;
+
+extern (C):
+short GetCurrentProcess (ProcessSerialNumber* PSN);
+short SetFrontProcess (/*const*/ ProcessSerialNumber* PSN);
+int TransformProcessType (/*const*/ ProcessSerialNumber* psn, ProcessApplicationTransformState transformState);
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt/internal/objc/coregraphics/CGRemoteOperation.d	Fri Aug 29 21:47:55 2008 +0200
@@ -0,0 +1,14 @@
+/**
+ * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved.
+ * Authors: Jacob Carlborg
+ * Version: Initial created: Aug 24, 2008
+ * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style)
+ * 
+ */
+module dwt.internal.objc.coregraphics.CGRemoteOperation;
+
+import bindings = dwt.internal.objc.coregraphics.bindings;
+
+alias int CGError;
+
+alias bindings.CGWarpMouseCursorPosition CGWarpMouseCursorPosition;
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt/internal/objc/coregraphics/bindings.d	Fri Aug 29 21:47:55 2008 +0200
@@ -0,0 +1,15 @@
+/**
+ * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved.
+ * Authors: Jacob Carlborg
+ * Version: Initial created: Aug 24, 2008
+ * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style)
+ * 
+ */
+module dwt.internal.objc.coregraphics.bindings;
+
+import dwt.internal.cocoa.CGPoint;
+import dwt.internal.objc.coregraphics.CGRemoteOperation;
+
+extern (C):
+    
+CGError CGWarpMouseCursorPosition (CGPoint newCursorPosition);
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt/internal/objc/foundation/NSGeometry.d	Fri Aug 29 21:47:55 2008 +0200
@@ -0,0 +1,12 @@
+/**
+ * Copyright: Copyright (c) 2008 Jacob Carlborg. All rights reserved.
+ * Authors: Jacob Carlborg
+ * Version: Initial created: Aug 24, 2008
+ * License: $(LINK2 http://opensource.org/licenses/bsd-license.php, BSD Style)
+ * 
+ */
+module dwt.internal.objc.foundation.NSGeometry;
+
+import bindings = dwt.internal.objc.foundation.bindings;
+
+alias bindings.NSIntersectionRect NSIntersectionRect;
\ No newline at end of file