# HG changeset patch # User Jacob Carlborg # Date 1220039275 -7200 # Node ID fb2555104d7063b2fb6c2c208723f590cabd6555 # Parent 2952d5604c0a06c24e79f2a6165c64d6cbbee5cf Added some files to the objc bindings diff -r 2952d5604c0a -r fb2555104d70 dwt/internal/c/carboncore/Gestalt.d --- /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 diff -r 2952d5604c0a -r fb2555104d70 dwt/internal/c/carboncore/bindings.d --- /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 diff -r 2952d5604c0a -r fb2555104d70 dwt/internal/c/hiservices/Processes.d --- /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 diff -r 2952d5604c0a -r fb2555104d70 dwt/internal/c/hiservices/bindings.d --- /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 diff -r 2952d5604c0a -r fb2555104d70 dwt/internal/objc/coregraphics/CGRemoteOperation.d --- /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 diff -r 2952d5604c0a -r fb2555104d70 dwt/internal/objc/coregraphics/bindings.d --- /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 diff -r 2952d5604c0a -r fb2555104d70 dwt/internal/objc/foundation/NSGeometry.d --- /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