comparison 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
comparison
equal deleted inserted replaced
0:380af2bdd8e5 1:8b48be5454ce
41 return result !is null ? new NSScreen(result) : null; 41 return result !is null ? new NSScreen(result) : null;
42 } 42 }
43 43
44 public NSWindowDepth depth () 44 public NSWindowDepth depth ()
45 { 45 {
46 return OS.objc_msgSend(this.id, OS.sel_depth); 46 return cast(NSWindowDepth) OS.objc_msgSend(this.id_, OS.sel_depth);
47 } 47 }
48 48
49 public NSDictionary deviceDescription () 49 public NSDictionary deviceDescription ()
50 { 50 {
51 objc.id result = OS.objc_msgSend(this.id, OS.sel_deviceDescription); 51 objc.id result = OS.objc_msgSend(this.id_, OS.sel_deviceDescription);
52 return result !is null ? new NSDictionary(result) : null; 52 return result !is null ? new NSDictionary(result) : null;
53 } 53 }
54 54
55 public NSRect frame () 55 public NSRect frame ()
56 { 56 {
57 NSRect result; 57 NSRect result;
58 OS.objc_msgSend_stret(result, this.id, OS.sel_frame); 58 OS.objc_msgSend_stret(&result, this.id_, OS.sel_frame);
59 return result; 59 return result;
60 } 60 }
61 61
62 public static NSScreen mainScreen () 62 public static NSScreen mainScreen ()
63 { 63 {
71 return result !is null ? new NSArray(result) : null; 71 return result !is null ? new NSArray(result) : null;
72 } 72 }
73 73
74 public /*const*/NSWindowDepth* supportedWindowDepths () 74 public /*const*/NSWindowDepth* supportedWindowDepths ()
75 { 75 {
76 return cast(/*const*/NSWindowDepth*)OS.objc_msgSend(this.id, OS.sel_supportedWindowDepths); 76 return cast(/*const*/NSWindowDepth*)OS.objc_msgSend(this.id_, OS.sel_supportedWindowDepths);
77 } 77 }
78 78
79 public CGFloat userSpaceScaleFactor () 79 public CGFloat userSpaceScaleFactor ()
80 { 80 {
81 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_userSpaceScaleFactor); 81 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_userSpaceScaleFactor);
82 } 82 }
83 83
84 public NSRect visibleFrame () 84 public NSRect visibleFrame ()
85 { 85 {
86 NSRect result; 86 NSRect result;
87 OS.objc_msgSend_stret(result, this.id, OS.sel_visibleFrame); 87 OS.objc_msgSend_stret(&result, this.id_, OS.sel_visibleFrame);
88 return result; 88 return result;
89 } 89 }
90 90
91 } 91 }