Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSATSTypesetter.d @ 1:8b48be5454ce
The internal cocoa classes compile now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 17:35:17 +0200 |
parents | 380af2bdd8e5 |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
0:380af2bdd8e5 | 1:8b48be5454ce |
---|---|
11 * Port to the D Programming language: | 11 * Port to the D Programming language: |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | 12 * Jacob Carlborg <jacob.carlborg@gmail.com> |
13 *******************************************************************************/ | 13 *******************************************************************************/ |
14 module dwt.internal.cocoa.NSATSTypesetter; | 14 module dwt.internal.cocoa.NSATSTypesetter; |
15 | 15 |
16 import dwt.internal.cocoa.id; | |
16 import dwt.internal.cocoa.NSRect; | 17 import dwt.internal.cocoa.NSRect; |
17 import dwt.internal.cocoa.NSTypesetter; | 18 import dwt.internal.cocoa.NSTypesetter; |
18 import dwt.internal.cocoa.OS; | 19 import dwt.internal.cocoa.OS; |
19 import objc = dwt.internal.objc.runtime; | 20 import objc = dwt.internal.objc.runtime; |
20 | 21 |
31 } | 32 } |
32 | 33 |
33 public NSRect lineFragmentRectForProposedRect (NSRect proposedRect, objc.id remainingRect) | 34 public NSRect lineFragmentRectForProposedRect (NSRect proposedRect, objc.id remainingRect) |
34 { | 35 { |
35 NSRect result; | 36 NSRect result; |
36 OS.objc_msgSend_stret(result, this.id, OS.sel_lineFragmentRectForProposedRect_1remainingRect_1, proposedRect, remainingRect); | 37 OS.objc_msgSend_stret(&result, this.id_, OS.sel_lineFragmentRectForProposedRect_1remainingRect_1, proposedRect, remainingRect); |
37 return result; | 38 return result; |
38 } | 39 } |
39 | 40 |
40 public static id sharedTypesetter () | 41 public static id sharedTypesetter () |
41 { | 42 { |