Mercurial > projects > dstep
comparison dstep/appkit/NSBitmapImageRep.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 |
---|---|
225 | 225 |
226 `; | 226 `; |
227 | 227 |
228 class NSBitmapImageRep : NSImageRep | 228 class NSBitmapImageRep : NSImageRep |
229 { | 229 { |
230 mixin (ObjcWrap); | 230 mixin ObjcWrap; |
231 | |
232 this (id object) | |
233 { | |
234 super(object); | |
235 } | |
231 | 236 |
232 NSBitmapImageRep initWithFocusedViewRect (NSRect rect) | 237 NSBitmapImageRep initWithFocusedViewRect (NSRect rect) |
233 { | 238 { |
234 id result = invokeObjcSelf!(id, "initWithFocusedViewRect:", NSRect)(rect); | 239 id result = invokeObjcSelf!(id, "initWithFocusedViewRect:", NSRect)(rect); |
235 return result is this.objcObject ? this : (result !is null ? new NSBitmapImageRep(result) : null); | 240 return result is this.objcObject ? this : (result !is null ? new NSBitmapImageRep(result) : null); |