Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSScreen.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/NSScreen.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSScreen.d Tue Aug 19 17:35:17 2008 +0200 @@ -43,19 +43,19 @@ public NSWindowDepth depth () { - return OS.objc_msgSend(this.id, OS.sel_depth); + return cast(NSWindowDepth) OS.objc_msgSend(this.id_, OS.sel_depth); } public NSDictionary deviceDescription () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_deviceDescription); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_deviceDescription); return result !is null ? new NSDictionary(result) : null; } public NSRect frame () { NSRect result; - OS.objc_msgSend_stret(result, this.id, OS.sel_frame); + OS.objc_msgSend_stret(&result, this.id_, OS.sel_frame); return result; } @@ -73,18 +73,18 @@ public /*const*/NSWindowDepth* supportedWindowDepths () { - return cast(/*const*/NSWindowDepth*)OS.objc_msgSend(this.id, OS.sel_supportedWindowDepths); + return cast(/*const*/NSWindowDepth*)OS.objc_msgSend(this.id_, OS.sel_supportedWindowDepths); } public CGFloat userSpaceScaleFactor () { - return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_userSpaceScaleFactor); + return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_userSpaceScaleFactor); } public NSRect visibleFrame () { NSRect result; - OS.objc_msgSend_stret(result, this.id, OS.sel_visibleFrame); + OS.objc_msgSend_stret(&result, this.id_, OS.sel_visibleFrame); return result; }