Mercurial > projects > dstep
comparison dstep/foundation/NSGeometry_bindings.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | 89f3c3ef1fd2 |
children |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 module dstep.foundation.NSGeometry_bindings; | 1 module dstep.foundation.NSGeometry_bindings; |
2 | 2 |
3 import dstep.AvailabilityMacros; | |
4 import dstep.applicationservices.coregraphics.CGBase; | |
5 import dstep.applicationservices.coregraphics.CGGeometry; | 3 import dstep.applicationservices.coregraphics.CGGeometry; |
6 import dstep.foundation.NSCoder; | 4 import dstep.foundation.NSGeometry; |
7 import dstep.foundation.NSString; | 5 import dstep.objc.objc; |
8 import dstep.foundation.NSValue; | |
9 import dstep.objc.bridge.Bridge; | |
10 import dstep.objc.objc : id; | |
11 | |
12 | 6 |
13 extern (C) | 7 extern (C) |
14 { | 8 { |
15 extern | 9 package id NSStringFromPoint (NSPoint aPoint); |
16 { | 10 package id NSStringFromSize (NSSize aSize); |
17 } | 11 package id NSStringFromRect (NSRect aRect); |
12 package NSPoint NSPointFromString (id aString); | |
13 package NSSize NSSizeFromString (id aString); | |
14 package NSRect NSRectFromString (id aString); | |
18 } | 15 } |
19 | |
20 extern (C) | |
21 { | |
22 private id NSStringFromPoint (NSPoint aPoint); | |
23 private id NSStringFromSize (NSSize aSize); | |
24 private id NSStringFromRect (NSRect aRect); | |
25 private NSPoint NSPointFromString (id aString); | |
26 private NSSize NSSizeFromString (id aString); | |
27 private NSRect NSRectFromString (id aString); | |
28 } |