Mercurial > projects > dstep
comparison dstep/appkit/NSTextTable.d @ 25:b9de51448c6b
Added an id constructor. Changed the string mixin to a template mixin. Added support for building as a dynamic library
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 06 Apr 2010 11:37:27 +0200 |
parents | 19885b43130e |
children |
comparison
equal
deleted
inserted
replaced
24:ab33fc0c3fc1 | 25:b9de51448c6b |
---|---|
64 NSTextTableFixedLayoutAlgorithm = 1 | 64 NSTextTableFixedLayoutAlgorithm = 1 |
65 } | 65 } |
66 | 66 |
67 class NSTextTable : NSTextBlock | 67 class NSTextTable : NSTextBlock |
68 { | 68 { |
69 mixin (ObjcWrap); | 69 mixin ObjcWrap; |
70 | |
71 this (id object) | |
72 { | |
73 super(object); | |
74 } | |
70 | 75 |
71 NSUInteger numberOfColumns () | 76 NSUInteger numberOfColumns () |
72 { | 77 { |
73 return invokeObjcSelf!(NSUInteger, "numberOfColumns"); | 78 return invokeObjcSelf!(NSUInteger, "numberOfColumns"); |
74 } | 79 } |
124 } | 129 } |
125 } | 130 } |
126 | 131 |
127 class NSTextBlock : NSObject, INSCoding, INSCopying | 132 class NSTextBlock : NSObject, INSCoding, INSCopying |
128 { | 133 { |
129 mixin (ObjcWrap); | 134 mixin ObjcWrap; |
135 | |
136 this (id object) | |
137 { | |
138 super(object); | |
139 } | |
130 | 140 |
131 this (NSCoder aDecoder) | 141 this (NSCoder aDecoder) |
132 { | 142 { |
133 super(typeof(this).alloc.initWithCoder(aDecoder).objcObject); | 143 super(typeof(this).alloc.initWithCoder(aDecoder).objcObject); |
134 } | 144 } |
261 | 271 |
262 } | 272 } |
263 | 273 |
264 class NSTextTableBlock : NSTextBlock | 274 class NSTextTableBlock : NSTextBlock |
265 { | 275 { |
266 mixin (ObjcWrap); | 276 mixin ObjcWrap; |
277 | |
278 this (id object) | |
279 { | |
280 super(object); | |
281 } | |
267 | 282 |
268 NSTextTableBlock initWithTable (NSTextTable table, NSInteger row, NSInteger rowSpan, NSInteger col, NSInteger colSpan) | 283 NSTextTableBlock initWithTable (NSTextTable table, NSInteger row, NSInteger rowSpan, NSInteger col, NSInteger colSpan) |
269 { | 284 { |
270 id result = invokeObjcSelf!(id, "initWithTable:startingRow:rowSpan:startingColumn:columnSpan:", NSTextTable, NSInteger, NSInteger, NSInteger, NSInteger)(table, row, rowSpan, col, colSpan); | 285 id result = invokeObjcSelf!(id, "initWithTable:startingRow:rowSpan:startingColumn:columnSpan:", NSTextTable, NSInteger, NSInteger, NSInteger, NSInteger)(table, row, rowSpan, col, colSpan); |
271 return result is this.objcObject ? this : (result !is null ? new NSTextTableBlock(result) : null); | 286 return result is this.objcObject ? this : (result !is null ? new NSTextTableBlock(result) : null); |