Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSGlyphInfo.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 |
---|---|
43 super(id); | 43 super(id); |
44 } | 44 } |
45 | 45 |
46 public NSCharacterCollection characterCollection () | 46 public NSCharacterCollection characterCollection () |
47 { | 47 { |
48 return OS.objc_msgSend(this.id, OS.sel_characterCollection); | 48 return cast(NSCharacterCollection) OS.objc_msgSend(this.id_, OS.sel_characterCollection); |
49 } | 49 } |
50 | 50 |
51 public NSUInteger characterIdentifier () | 51 public NSUInteger characterIdentifier () |
52 { | 52 { |
53 return OS.objc_msgSend(this.id, OS.sel_characterIdentifier); | 53 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_characterIdentifier); |
54 } | 54 } |
55 | 55 |
56 public static NSGlyphInfo glyphInfoWithCharacterIdentifier (NSUInteger cid, NSCharacterCollection characterCollection, NSString theString) | 56 public static NSGlyphInfo glyphInfoWithCharacterIdentifier (NSUInteger cid, NSCharacterCollection characterCollection, NSString theString) |
57 { | 57 { |
58 objc.id result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithCharacterIdentifier_1collection_1baseString_1, cid, | 58 objc.id result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithCharacterIdentifier_1collection_1baseString_1, cid, |
59 characterCollection, theString !is null ? theString.id : null); | 59 characterCollection, theString !is null ? theString.id_ : null); |
60 return result !is null ? new NSGlyphInfo(result) : null; | 60 return result !is null ? new NSGlyphInfo(result) : null; |
61 } | 61 } |
62 | 62 |
63 public static NSGlyphInfo glyphInfoWithGlyph (NSGlyph glyph, NSFont font, NSString theString) | 63 public static NSGlyphInfo glyphInfoWithGlyph (NSGlyph glyph, NSFont font, NSString theString) |
64 { | 64 { |
65 objc.id result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithGlyph_1forFont_1baseString_1, glyph, | 65 objc.id result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithGlyph_1forFont_1baseString_1, glyph, |
66 font !is null ? font.id : null, theString !is null ? theString.id : null); | 66 font !is null ? font.id_ : null, theString !is null ? theString.id_ : null); |
67 return result !is null ? new NSGlyphInfo(result) : null; | 67 return result !is null ? new NSGlyphInfo(result) : null; |
68 } | 68 } |
69 | 69 |
70 public static NSGlyphInfo glyphInfoWithGlyphName (NSString glyphName, NSFont font, NSString theString) | 70 public static NSGlyphInfo glyphInfoWithGlyphName (NSString glyphName, NSFont font, NSString theString) |
71 { | 71 { |
72 objc.id result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithGlyphName_1forFont_1baseString_1, | 72 objc.id result = OS.objc_msgSend(OS.class_NSGlyphInfo, OS.sel_glyphInfoWithGlyphName_1forFont_1baseString_1, |
73 glyphName !is null ? glyphName.id : null, font !is null ? font.id : null, theString !is null ? theString.id : null); | 73 glyphName !is null ? glyphName.id_ : null, font !is null ? font.id_ : null, theString !is null ? theString.id_ : null); |
74 return result !is null ? new NSGlyphInfo(result) : null; | 74 return result !is null ? new NSGlyphInfo(result) : null; |
75 } | 75 } |
76 | 76 |
77 public NSString glyphName () | 77 public NSString glyphName () |
78 { | 78 { |
79 objc.id result = OS.objc_msgSend(this.id, OS.sel_glyphName); | 79 objc.id result = OS.objc_msgSend(this.id_, OS.sel_glyphName); |
80 return result !is null ? new NSString(result) : null; | 80 return result !is null ? new NSString(result) : null; |
81 } | 81 } |
82 | 82 |
83 } | 83 } |