Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/CIImage.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 |
line wrap: on
line diff
--- a/dwt/internal/cocoa/CIImage.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/CIImage.d Tue Aug 19 17:35:17 2008 +0200 @@ -20,6 +20,7 @@ import dwt.internal.cocoa.NSObject; import dwt.internal.cocoa.NSPoint; import dwt.internal.cocoa.NSRect; +import dwt.internal.cocoa.OS; import objc = dwt.internal.objc.runtime; public class CIImage : NSObject @@ -37,17 +38,17 @@ public void drawAtPoint (NSPoint point, NSRect fromRect, NSCompositingOperation op, CGFloat delta) { - OS.objc_msgSend(this.id, OS.sel_drawAtPoint_1fromRect_1operation_1fraction_1, point, fromRect, op, delta); + OS.objc_msgSend(this.id_, OS.sel_drawAtPoint_1fromRect_1operation_1fraction_1, point, fromRect, op, delta); } public void drawInRect (NSRect rect, NSRect fromRect, NSCompositingOperation op, CGFloat delta) { - OS.objc_msgSend(this.id, OS.sel_drawInRect_1fromRect_1operation_1fraction_1, rect, fromRect, op, delta); + OS.objc_msgSend(this.id_, OS.sel_drawInRect_1fromRect_1operation_1fraction_1, rect, fromRect, op, delta); } public CIImage initWithBitmapImageRep (NSBitmapImageRep bitmapImageRep) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithBitmapImageRep_1, bitmapImageRep !is null ? bitmapImageRep.id : null); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithBitmapImageRep_1, bitmapImageRep !is null ? bitmapImageRep.id_ : null); return result !is null ? this : null; }