comparison dwt/internal/cocoa/NSTrackingArea.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
61 super(id); 61 super(id);
62 } 62 }
63 63
64 public NSTrackingArea initWithRect (NSRect rect, NSTrackingAreaOptions options, id owner, NSDictionary userInfo) 64 public NSTrackingArea initWithRect (NSRect rect, NSTrackingAreaOptions options, id owner, NSDictionary userInfo)
65 { 65 {
66 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithRect_1options_1owner_1userInfo_1, rect, options, owner !is null ? owner.id : null, 66 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithRect_1options_1owner_1userInfo_1, rect, options, owner !is null ? owner.id_ : null,
67 userInfo !is null ? userInfo.id : null); 67 userInfo !is null ? userInfo.id_ : null);
68 return result is this.id ? this : (result !is null ? new NSTrackingArea(result) : null); 68 return result is this.id_ ? this : (result !is null ? new NSTrackingArea(result) : null);
69 } 69 }
70 70
71 public NSTrackingAreaOptions options () 71 public NSTrackingAreaOptions options ()
72 { 72 {
73 return cast(NSTrackingAreaOptions) OS.objc_msgSend(this.id, OS.sel_options); 73 return cast(NSTrackingAreaOptions) OS.objc_msgSend(this.id_, OS.sel_options);
74 } 74 }
75 75
76 public id owner () 76 public id owner ()
77 { 77 {
78 objc.id result = OS.objc_msgSend(this.id, OS.sel_owner); 78 objc.id result = OS.objc_msgSend(this.id_, OS.sel_owner);
79 return result !is null ? new id(result) : null; 79 return result !is null ? new id(result) : null;
80 } 80 }
81 81
82 public NSRect rect () 82 public NSRect rect ()
83 { 83 {
84 NSRect result; 84 NSRect result;
85 OS.objc_msgSend_stret(result, this.id, OS.sel_rect); 85 OS.objc_msgSend_stret(&result, this.id_, OS.sel_rect);
86 return result; 86 return result;
87 } 87 }
88 88
89 public NSDictionary userInfo () 89 public NSDictionary userInfo ()
90 { 90 {
91 objc.id result = OS.objc_msgSend(this.id, OS.sel_userInfo); 91 objc.id result = OS.objc_msgSend(this.id_, OS.sel_userInfo);
92 return result !is null ? new NSDictionary(result) : null; 92 return result !is null ? new NSDictionary(result) : null;
93 } 93 }
94 94
95 } 95 }