comparison dwt/internal/cocoa/NSCursor.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
76 } 76 }
77 77
78 public NSPoint hotSpot () 78 public NSPoint hotSpot ()
79 { 79 {
80 NSPoint result; 80 NSPoint result;
81 OS.objc_msgSend_stret(result, this.id, OS.sel_hotSpot); 81 OS.objc_msgSend_stret(&result, this.id_, OS.sel_hotSpot);
82 return result; 82 return result;
83 } 83 }
84 84
85 public NSImage image () 85 public NSImage image ()
86 { 86 {
87 objc.id result = OS.objc_msgSend(this.id, OS.sel_image); 87 objc.id result = OS.objc_msgSend(this.id_, OS.sel_image);
88 return result !is null ? new NSImage(result) : null; 88 return result !is null ? new NSImage(result) : null;
89 } 89 }
90 90
91 public NSCursor initWithImage_foregroundColorHint_backgroundColorHint_hotSpot_ (NSImage newImage, NSColor fg, NSColor bg, NSPoint hotSpot) 91 public NSCursor initWithImage_foregroundColorHint_backgroundColorHint_hotSpot_ (NSImage newImage, NSColor fg, NSColor bg, NSPoint hotSpot)
92 { 92 {
93 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithImage_1foregroundColorHint_1backgroundColorHint_1hotSpot_1, 93 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithImage_1foregroundColorHint_1backgroundColorHint_1hotSpot_1,
94 newImage !is null ? newImage.id : null, fg !is null ? fg.id : null, bg !is null ? bg.id : null, hotSpot); 94 newImage !is null ? newImage.id_ : null, fg !is null ? fg.id_ : null, bg !is null ? bg.id_ : null, hotSpot);
95 return result !is null ? this : null; 95 return result !is null ? this : null;
96 } 96 }
97 97
98 public NSCursor initWithImage_hotSpot_ (NSImage newImage, NSPoint aPoint) 98 public NSCursor initWithImage_hotSpot_ (NSImage newImage, NSPoint aPoint)
99 { 99 {
100 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithImage_1hotSpot_1, newImage !is null ? newImage.id : null, aPoint); 100 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithImage_1hotSpot_1, newImage !is null ? newImage.id_ : null, aPoint);
101 return result !is null ? this : null; 101 return result !is null ? this : null;
102 } 102 }
103 103
104 public bool isSetOnMouseEntered () 104 public bool isSetOnMouseEntered ()
105 { 105 {
106 return OS.objc_msgSend(this.id, OS.sel_isSetOnMouseEntered) !is null; 106 return OS.objc_msgSend(this.id_, OS.sel_isSetOnMouseEntered) !is null;
107 } 107 }
108 108
109 public bool isSetOnMouseExited () 109 public bool isSetOnMouseExited ()
110 { 110 {
111 return OS.objc_msgSend(this.id, OS.sel_isSetOnMouseExited) !is null; 111 return OS.objc_msgSend(this.id_, OS.sel_isSetOnMouseExited) !is null;
112 } 112 }
113 113
114 public void mouseEntered (NSEvent theEvent) 114 public void mouseEntered (NSEvent theEvent)
115 { 115 {
116 OS.objc_msgSend(this.id, OS.sel_mouseEntered_1, theEvent !is null ? theEvent.id : null); 116 OS.objc_msgSend(this.id_, OS.sel_mouseEntered_1, theEvent !is null ? theEvent.id_ : null);
117 } 117 }
118 118
119 public void mouseExited (NSEvent theEvent) 119 public void mouseExited (NSEvent theEvent)
120 { 120 {
121 OS.objc_msgSend(this.id, OS.sel_mouseExited_1, theEvent !is null ? theEvent.id : null); 121 OS.objc_msgSend(this.id_, OS.sel_mouseExited_1, theEvent !is null ? theEvent.id_ : null);
122 } 122 }
123 123
124 public static NSCursor openHandCursor () 124 public static NSCursor openHandCursor ()
125 { 125 {
126 objc.id result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_openHandCursor); 126 objc.id result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_openHandCursor);
133 return result !is null ? new NSCursor(result) : null; 133 return result !is null ? new NSCursor(result) : null;
134 } 134 }
135 135
136 public void pop () 136 public void pop ()
137 { 137 {
138 OS.objc_msgSend(this.id, OS.sel_pop); 138 OS.objc_msgSend(this.id_, OS.sel_pop);
139 } 139 }
140 140
141 public static void static_pop () 141 public static void static_pop ()
142 { 142 {
143 OS.objc_msgSend(OS.class_NSCursor, OS.sel_pop); 143 OS.objc_msgSend(OS.class_NSCursor, OS.sel_pop);
144 } 144 }
145 145
146 public void push () 146 public void push ()
147 { 147 {
148 OS.objc_msgSend(this.id, OS.sel_push); 148 OS.objc_msgSend(this.id_, OS.sel_push);
149 } 149 }
150 150
151 public static NSCursor resizeDownCursor () 151 public static NSCursor resizeDownCursor ()
152 { 152 {
153 objc.id result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeDownCursor); 153 objc.id result = OS.objc_msgSend(OS.class_NSCursor, OS.sel_resizeDownCursor);
184 return result !is null ? new NSCursor(result) : null; 184 return result !is null ? new NSCursor(result) : null;
185 } 185 }
186 186
187 public void set () 187 public void set ()
188 { 188 {
189 OS.objc_msgSend(this.id, OS.sel_set); 189 OS.objc_msgSend(this.id_, OS.sel_set);
190 } 190 }
191 191
192 public static void setHiddenUntilMouseMoves (bool flag) 192 public static void setHiddenUntilMouseMoves (bool flag)
193 { 193 {
194 OS.objc_msgSend(OS.class_NSCursor, OS.sel_setHiddenUntilMouseMoves_1, flag); 194 OS.objc_msgSend(OS.class_NSCursor, OS.sel_setHiddenUntilMouseMoves_1, flag);
195 } 195 }
196 196
197 public void setOnMouseEntered (bool flag) 197 public void setOnMouseEntered (bool flag)
198 { 198 {
199 OS.objc_msgSend(this.id, OS.sel_setOnMouseEntered_1, flag); 199 OS.objc_msgSend(this.id_, OS.sel_setOnMouseEntered_1, flag);
200 } 200 }
201 201
202 public void setOnMouseExited (bool flag) 202 public void setOnMouseExited (bool flag)
203 { 203 {
204 OS.objc_msgSend(this.id, OS.sel_setOnMouseExited_1, flag); 204 OS.objc_msgSend(this.id_, OS.sel_setOnMouseExited_1, flag);
205 } 205 }
206 206
207 public static void unhide () 207 public static void unhide ()
208 { 208 {
209 OS.objc_msgSend(OS.class_NSCursor, OS.sel_unhide); 209 OS.objc_msgSend(OS.class_NSCursor, OS.sel_unhide);