Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSScreen.d @ 60:62202ce0039f
Updated and fixed many modules to 3.514
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 22 Dec 2008 15:10:19 +0100 |
parents | cfa563df4fdd |
children |
comparison
equal
deleted
inserted
replaced
59:83b0ad9d9238 | 60:62202ce0039f |
---|---|
46 return result !is null ? new NSDictionary(result) : null; | 46 return result !is null ? new NSDictionary(result) : null; |
47 } | 47 } |
48 | 48 |
49 public NSRect frame() { | 49 public NSRect frame() { |
50 NSRect result = NSRect(); | 50 NSRect result = NSRect(); |
51 OS.objc_msgSend_stret(result, this.id, OS.sel_frame); | 51 OS.objc_msgSend_stret(&result, this.id, OS.sel_frame); |
52 return result; | 52 return result; |
53 } | 53 } |
54 | 54 |
55 public static NSScreen mainScreen() { | 55 public static NSScreen mainScreen() { |
56 objc.id result = OS.objc_msgSend(OS.class_NSScreen, OS.sel_mainScreen); | 56 objc.id result = OS.objc_msgSend(OS.class_NSScreen, OS.sel_mainScreen); |
62 return result !is null ? new NSArray(result) : null; | 62 return result !is null ? new NSArray(result) : null; |
63 } | 63 } |
64 | 64 |
65 public NSRect visibleFrame() { | 65 public NSRect visibleFrame() { |
66 NSRect result = NSRect(); | 66 NSRect result = NSRect(); |
67 OS.objc_msgSend_stret(result, this.id, OS.sel_visibleFrame); | 67 OS.objc_msgSend_stret(&result, this.id, OS.sel_visibleFrame); |
68 return result; | 68 return result; |
69 } | 69 } |
70 | 70 |
71 } | 71 } |