Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSCell.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 |
---|---|
25 import dwt.internal.cocoa.NSMenu; | 25 import dwt.internal.cocoa.NSMenu; |
26 import dwt.internal.cocoa.NSObject; | 26 import dwt.internal.cocoa.NSObject; |
27 import dwt.internal.cocoa.NSPoint; | 27 import dwt.internal.cocoa.NSPoint; |
28 import dwt.internal.cocoa.NSRect; | 28 import dwt.internal.cocoa.NSRect; |
29 import dwt.internal.cocoa.NSSize; | 29 import dwt.internal.cocoa.NSSize; |
30 import dwt.internal.cocoa.NSString; | |
30 import dwt.internal.cocoa.NSText; | 31 import dwt.internal.cocoa.NSText; |
31 import dwt.internal.cocoa.NSView; | 32 import dwt.internal.cocoa.NSView; |
32 import dwt.internal.cocoa.OS; | 33 import dwt.internal.cocoa.OS; |
33 import objc = dwt.internal.objc.runtime; | 34 import objc = dwt.internal.objc.runtime; |
34 | 35 |
112 super(id); | 113 super(id); |
113 } | 114 } |
114 | 115 |
115 public bool acceptsFirstResponder () | 116 public bool acceptsFirstResponder () |
116 { | 117 { |
117 return OS.objc_msgSend(this.id, OS.sel_acceptsFirstResponder) !is null; | 118 return OS.objc_msgSend(this.id_, OS.sel_acceptsFirstResponder) !is null; |
118 } | 119 } |
119 | 120 |
120 public objc.SEL action () | 121 public objc.SEL action () |
121 { | 122 { |
122 return OS.objc_msgSend(this.id, OS.sel_action); | 123 return cast(objc.SEL) OS.objc_msgSend(this.id_, OS.sel_action); |
123 } | 124 } |
124 | 125 |
125 public objc.id alignment () | 126 public objc.id alignment () |
126 { | 127 { |
127 return OS.objc_msgSend(this.id, OS.sel_alignment); | 128 return OS.objc_msgSend(this.id_, OS.sel_alignment); |
128 } | 129 } |
129 | 130 |
130 public bool allowsEditingTextAttributes () | 131 public bool allowsEditingTextAttributes () |
131 { | 132 { |
132 return OS.objc_msgSend(this.id, OS.sel_allowsEditingTextAttributes) !is null; | 133 return OS.objc_msgSend(this.id_, OS.sel_allowsEditingTextAttributes) !is null; |
133 } | 134 } |
134 | 135 |
135 public bool allowsMixedState () | 136 public bool allowsMixedState () |
136 { | 137 { |
137 return OS.objc_msgSend(this.id, OS.sel_allowsMixedState) !is null; | 138 return OS.objc_msgSend(this.id_, OS.sel_allowsMixedState) !is null; |
138 } | 139 } |
139 | 140 |
140 public bool allowsUndo () | 141 public bool allowsUndo () |
141 { | 142 { |
142 return OS.objc_msgSend(this.id, OS.sel_allowsUndo) !is null; | 143 return OS.objc_msgSend(this.id_, OS.sel_allowsUndo) !is null; |
143 } | 144 } |
144 | 145 |
145 public NSAttributedString attributedStringValue () | 146 public NSAttributedString attributedStringValue () |
146 { | 147 { |
147 objc.id result = OS.objc_msgSend(this.id, OS.sel_attributedStringValue); | 148 objc.id result = OS.objc_msgSend(this.id_, OS.sel_attributedStringValue); |
148 return result !is null ? new NSAttributedString(result) : null; | 149 return result !is null ? new NSAttributedString(result) : null; |
149 } | 150 } |
150 | 151 |
151 public objc.id backgroundStyle () | 152 public objc.id backgroundStyle () |
152 { | 153 { |
153 return OS.objc_msgSend(this.id, OS.sel_backgroundStyle); | 154 return OS.objc_msgSend(this.id_, OS.sel_backgroundStyle); |
154 } | 155 } |
155 | 156 |
156 public objc.id baseWritingDirection () | 157 public objc.id baseWritingDirection () |
157 { | 158 { |
158 return OS.objc_msgSend(this.id, OS.sel_baseWritingDirection); | 159 return OS.objc_msgSend(this.id_, OS.sel_baseWritingDirection); |
159 } | 160 } |
160 | 161 |
161 public void calcDrawInfo (NSRect aRect) | 162 public void calcDrawInfo (NSRect aRect) |
162 { | 163 { |
163 OS.objc_msgSend(this.id, OS.sel_calcDrawInfo_1, aRect); | 164 OS.objc_msgSend(this.id_, OS.sel_calcDrawInfo_1, aRect); |
164 } | 165 } |
165 | 166 |
166 public NSInteger cellAttribute (objc.id aParameter) | 167 public NSInteger cellAttribute (objc.id aParameter) |
167 { | 168 { |
168 return OS.objc_msgSend(this.id, OS.sel_cellAttribute_1, aParameter); | 169 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_cellAttribute_1, aParameter); |
169 } | 170 } |
170 | 171 |
171 public NSSize cellSize () | 172 public NSSize cellSize () |
172 { | 173 { |
173 NSSize result; | 174 NSSize result; |
174 OS.objc_msgSend_struct(result, this.id, OS.sel_cellSize); | 175 OS.objc_msgSend_struct(&result, this.id_, OS.sel_cellSize); |
175 return result; | 176 return result; |
176 } | 177 } |
177 | 178 |
178 public NSSize cellSizeForBounds (NSRect aRect) | 179 public NSSize cellSizeForBounds (NSRect aRect) |
179 { | 180 { |
180 NSSize result; | 181 NSSize result; |
181 OS.objc_msgSend_stret(result, this.id, OS.sel_cellSizeForBounds_1, aRect); | 182 OS.objc_msgSend_stret(&result, this.id_, OS.sel_cellSizeForBounds_1, aRect); |
182 return result; | 183 return result; |
183 } | 184 } |
184 | 185 |
185 public objc.id compare (id otherCell) | 186 public objc.id compare (id otherCell) |
186 { | 187 { |
187 return OS.objc_msgSend(this.id, OS.sel_compare_1, otherCell !is null ? otherCell.id : null); | 188 return OS.objc_msgSend(this.id_, OS.sel_compare_1, otherCell !is null ? otherCell.id_ : null); |
188 } | 189 } |
189 | 190 |
190 public bool continueTracking (NSPoint lastPoint, NSPoint currentPoint, NSView controlView) | 191 public bool continueTracking (NSPoint lastPoint, NSPoint currentPoint, NSView controlView) |
191 { | 192 { |
192 return OS.objc_msgSend(this.id, OS.sel_continueTracking_1at_1inView_1, lastPoint, currentPoint, controlView !is null ? controlView.id : null) !is null; | 193 return OS.objc_msgSend(this.id_, OS.sel_continueTracking_1at_1inView_1, lastPoint, currentPoint, controlView !is null ? controlView.id_ : null) !is null; |
193 } | 194 } |
194 | 195 |
195 public objc.id controlSize () | 196 public objc.id controlSize () |
196 { | 197 { |
197 return OS.objc_msgSend(this.id, OS.sel_controlSize); | 198 return OS.objc_msgSend(this.id_, OS.sel_controlSize); |
198 } | 199 } |
199 | 200 |
200 public objc.id controlTint () | 201 public objc.id controlTint () |
201 { | 202 { |
202 return OS.objc_msgSend(this.id, OS.sel_controlTint); | 203 return OS.objc_msgSend(this.id_, OS.sel_controlTint); |
203 } | 204 } |
204 | 205 |
205 public NSView controlView () | 206 public NSView controlView () |
206 { | 207 { |
207 objc.id result = OS.objc_msgSend(this.id, OS.sel_controlView); | 208 objc.id result = OS.objc_msgSend(this.id_, OS.sel_controlView); |
208 return result !is null ? new NSView(result) : null; | 209 return result !is null ? new NSView(result) : null; |
209 } | 210 } |
210 | 211 |
211 public static objc.id defaultFocusRingType () | 212 public static objc.id defaultFocusRingType () |
212 { | 213 { |
219 return result !is null ? new NSMenu(result) : null; | 220 return result !is null ? new NSMenu(result) : null; |
220 } | 221 } |
221 | 222 |
222 public double doubleValue () | 223 public double doubleValue () |
223 { | 224 { |
224 return OS.objc_msgSend_fpret(this.id, OS.sel_doubleValue); | 225 return OS.objc_msgSend_fpret(this.id_, OS.sel_doubleValue); |
225 } | 226 } |
226 | 227 |
227 public void drawInteriorWithFrame (NSRect cellFrame, NSView controlView) | 228 public void drawInteriorWithFrame (NSRect cellFrame, NSView controlView) |
228 { | 229 { |
229 OS.objc_msgSend(this.id, OS.sel_drawInteriorWithFrame_1inView_1, cellFrame, controlView !is null ? controlView.id : null); | 230 OS.objc_msgSend(this.id_, OS.sel_drawInteriorWithFrame_1inView_1, cellFrame, controlView !is null ? controlView.id_ : null); |
230 } | 231 } |
231 | 232 |
232 public void drawWithExpansionFrame (NSRect cellFrame, NSView view) | 233 public void drawWithExpansionFrame (NSRect cellFrame, NSView view) |
233 { | 234 { |
234 OS.objc_msgSend(this.id, OS.sel_drawWithExpansionFrame_1inView_1, cellFrame, view !is null ? view.id : null); | 235 OS.objc_msgSend(this.id_, OS.sel_drawWithExpansionFrame_1inView_1, cellFrame, view !is null ? view.id_ : null); |
235 } | 236 } |
236 | 237 |
237 public void drawWithFrame (NSRect cellFrame, NSView controlView) | 238 public void drawWithFrame (NSRect cellFrame, NSView controlView) |
238 { | 239 { |
239 OS.objc_msgSend(this.id, OS.sel_drawWithFrame_1inView_1, cellFrame, controlView !is null ? controlView.id : null); | 240 OS.objc_msgSend(this.id_, OS.sel_drawWithFrame_1inView_1, cellFrame, controlView !is null ? controlView.id_ : null); |
240 } | 241 } |
241 | 242 |
242 public NSRect drawingRectForBounds (NSRect theRect) | 243 public NSRect drawingRectForBounds (NSRect theRect) |
243 { | 244 { |
244 NSRect result; | 245 NSRect result; |
245 OS.objc_msgSend_stret(result, this.id, OS.sel_drawingRectForBounds_1, theRect); | 246 OS.objc_msgSend_stret(&result, this.id_, OS.sel_drawingRectForBounds_1, theRect); |
246 return result; | 247 return result; |
247 } | 248 } |
248 | 249 |
249 public void editWithFrame (NSRect aRect, NSView controlView, NSText textObj, id anObject, NSEvent theEvent) | 250 public void editWithFrame (NSRect aRect, NSView controlView, NSText textObj, id anObject, NSEvent theEvent) |
250 { | 251 { |
251 OS.objc_msgSend(this.id, OS.sel_editWithFrame_1inView_1editor_1delegate_1event_1, aRect, controlView !is null ? controlView.id : null, | 252 OS.objc_msgSend(this.id_, OS.sel_editWithFrame_1inView_1editor_1delegate_1event_1, aRect, controlView !is null ? controlView.id_ : null, |
252 textObj !is null ? textObj.id : null, anObject !is null ? anObject.id : null, theEvent !is null ? theEvent.id : null); | 253 textObj !is null ? textObj.id_ : null, anObject !is null ? anObject.id_ : null, theEvent !is null ? theEvent.id_ : null); |
253 } | 254 } |
254 | 255 |
255 public void endEditing (NSText textObj) | 256 public void endEditing (NSText textObj) |
256 { | 257 { |
257 OS.objc_msgSend(this.id, OS.sel_endEditing_1, textObj !is null ? textObj.id : null); | 258 OS.objc_msgSend(this.id_, OS.sel_endEditing_1, textObj !is null ? textObj.id_ : null); |
258 } | 259 } |
259 | 260 |
260 public NSInteger entryType () | 261 public NSInteger entryType () |
261 { | 262 { |
262 return OS.objc_msgSend(this.id, OS.sel_entryType); | 263 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_entryType); |
263 } | 264 } |
264 | 265 |
265 public NSRect expansionFrameWithFrame (NSRect cellFrame, NSView view) | 266 public NSRect expansionFrameWithFrame (NSRect cellFrame, NSView view) |
266 { | 267 { |
267 NSRect result; | 268 NSRect result; |
268 OS.objc_msgSend_stret(result, this.id, OS.sel_expansionFrameWithFrame_1inView_1, cellFrame, view !is null ? view.id : null); | 269 OS.objc_msgSend_stret(&result, this.id_, OS.sel_expansionFrameWithFrame_1inView_1, cellFrame, view !is null ? view.id_ : null); |
269 return result; | 270 return result; |
270 } | 271 } |
271 | 272 |
272 public float floatValue () | 273 public float floatValue () |
273 { | 274 { |
274 return cast(float) OS.objc_msgSend_fpret(this.id, OS.sel_floatValue); | 275 return cast(float) OS.objc_msgSend_fpret(this.id_, OS.sel_floatValue); |
275 } | 276 } |
276 | 277 |
277 public objc.id focusRingType () | 278 public objc.id focusRingType () |
278 { | 279 { |
279 return OS.objc_msgSend(this.id, OS.sel_focusRingType); | 280 return OS.objc_msgSend(this.id_, OS.sel_focusRingType); |
280 } | 281 } |
281 | 282 |
282 public NSFont font () | 283 public NSFont font () |
283 { | 284 { |
284 objc.id result = OS.objc_msgSend(this.id, OS.sel_font); | 285 objc.id result = OS.objc_msgSend(this.id_, OS.sel_font); |
285 return result !is null ? new NSFont(result) : null; | 286 return result !is null ? new NSFont(result) : null; |
286 } | 287 } |
287 | 288 |
288 public id formatter () | 289 public id formatter () |
289 { | 290 { |
290 objc.id result = OS.objc_msgSend(this.id, OS.sel_formatter); | 291 objc.id result = OS.objc_msgSend(this.id_, OS.sel_formatter); |
291 return result !is null ? new id(result) : null; | 292 return result !is null ? new id(result) : null; |
292 } | 293 } |
293 | 294 |
294 public void getPeriodicDelay (float* delay, float* interval) | 295 public void getPeriodicDelay (float* delay, float* interval) |
295 { | 296 { |
296 OS.objc_msgSend(this.id, OS.sel_getPeriodicDelay_1interval_1, delay, interval); | 297 OS.objc_msgSend(this.id_, OS.sel_getPeriodicDelay_1interval_1, delay, interval); |
297 } | 298 } |
298 | 299 |
299 public bool hasValidObjectValue () | 300 public bool hasValidObjectValue () |
300 { | 301 { |
301 return OS.objc_msgSend(this.id, OS.sel_hasValidObjectValue) !is null; | 302 return OS.objc_msgSend(this.id_, OS.sel_hasValidObjectValue) !is null; |
302 } | 303 } |
303 | 304 |
304 public void highlight (bool flag, NSRect cellFrame, NSView controlView) | 305 public void highlight (bool flag, NSRect cellFrame, NSView controlView) |
305 { | 306 { |
306 OS.objc_msgSend(this.id, OS.sel_highlight_1withFrame_1inView_1, flag, cellFrame, controlView !is null ? controlView.id : null); | 307 OS.objc_msgSend(this.id_, OS.sel_highlight_1withFrame_1inView_1, flag, cellFrame, controlView !is null ? controlView.id_ : null); |
307 } | 308 } |
308 | 309 |
309 public NSColor highlightColorWithFrame (NSRect cellFrame, NSView controlView) | 310 public NSColor highlightColorWithFrame (NSRect cellFrame, NSView controlView) |
310 { | 311 { |
311 objc.id result = OS.objc_msgSend(this.id, OS.sel_highlightColorWithFrame_1inView_1, cellFrame, controlView !is null ? controlView.id : null); | 312 objc.id result = OS.objc_msgSend(this.id_, OS.sel_highlightColorWithFrame_1inView_1, cellFrame, controlView !is null ? controlView.id_ : null); |
312 return result !is null ? new NSColor(result) : null; | 313 return result !is null ? new NSColor(result) : null; |
313 } | 314 } |
314 | 315 |
315 public NSUInteger hitTestForEvent (NSEvent event, NSRect cellFrame, NSView controlView) | 316 public NSUInteger hitTestForEvent (NSEvent event, NSRect cellFrame, NSView controlView) |
316 { | 317 { |
317 return OS.objc_msgSend(this.id, OS.sel_hitTestForEvent_1inRect_1ofView_1, event !is null ? event.id : null, cellFrame, | 318 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_hitTestForEvent_1inRect_1ofView_1, event !is null ? event.id_ : null, cellFrame, |
318 controlView !is null ? controlView.id : null); | 319 controlView !is null ? controlView.id_ : null); |
319 } | 320 } |
320 | 321 |
321 public NSImage image () | 322 public NSImage image () |
322 { | 323 { |
323 objc.id result = OS.objc_msgSend(this.id, OS.sel_image); | 324 objc.id result = OS.objc_msgSend(this.id_, OS.sel_image); |
324 return result !is null ? new NSImage(result) : null; | 325 return result !is null ? new NSImage(result) : null; |
325 } | 326 } |
326 | 327 |
327 public NSRect imageRectForBounds (NSRect theRect) | 328 public NSRect imageRectForBounds (NSRect theRect) |
328 { | 329 { |
329 NSRect result; | 330 NSRect result; |
330 OS.objc_msgSend_stret(result, this.id, OS.sel_imageRectForBounds_1, theRect); | 331 OS.objc_msgSend_stret(&result, this.id_, OS.sel_imageRectForBounds_1, theRect); |
331 return result; | 332 return result; |
332 } | 333 } |
333 | 334 |
334 public bool importsGraphics () | 335 public bool importsGraphics () |
335 { | 336 { |
336 return OS.objc_msgSend(this.id, OS.sel_importsGraphics) !is null; | 337 return OS.objc_msgSend(this.id_, OS.sel_importsGraphics) !is null; |
337 } | 338 } |
338 | 339 |
339 public NSCell initImageCell (NSImage image) | 340 public NSCell initImageCell (NSImage image) |
340 { | 341 { |
341 objc.id result = OS.objc_msgSend(this.id, OS.sel_initImageCell_1, image !is null ? image.id : null); | 342 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initImageCell_1, image !is null ? image.id_ : null); |
342 return result !is null ? this : null; | 343 return result !is null ? this : null; |
343 } | 344 } |
344 | 345 |
345 public NSCell initTextCell (NSString aString) | 346 public NSCell initTextCell (NSString aString) |
346 { | 347 { |
347 objc.id result = OS.objc_msgSend(this.id, OS.sel_initTextCell_1, aString !is null ? aString.id : null); | 348 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initTextCell_1, aString !is null ? aString.id_ : null); |
348 return result !is null ? this : null; | 349 return result !is null ? this : null; |
349 } | 350 } |
350 | 351 |
351 public int intValue () | 352 public int intValue () |
352 { | 353 { |
353 return OS.objc_msgSend(this.id, OS.sel_intValue); | 354 return cast(int) OS.objc_msgSend(this.id_, OS.sel_intValue); |
354 } | 355 } |
355 | 356 |
356 public int integerValue () | 357 public NSInteger integerValue () |
357 { | 358 { |
358 return OS.objc_msgSend(this.id, OS.sel_integerValue); | 359 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_integerValue); |
359 } | 360 } |
360 | 361 |
361 public objc.id interiorBackgroundStyle () | 362 public objc.id interiorBackgroundStyle () |
362 { | 363 { |
363 return OS.objc_msgSend(this.id, OS.sel_interiorBackgroundStyle); | 364 return OS.objc_msgSend(this.id_, OS.sel_interiorBackgroundStyle); |
364 } | 365 } |
365 | 366 |
366 public bool isBezeled () | 367 public bool isBezeled () |
367 { | 368 { |
368 return OS.objc_msgSend(this.id, OS.sel_isBezeled) !is null; | 369 return OS.objc_msgSend(this.id_, OS.sel_isBezeled) !is null; |
369 } | 370 } |
370 | 371 |
371 public bool isBordered () | 372 public bool isBordered () |
372 { | 373 { |
373 return OS.objc_msgSend(this.id, OS.sel_isBordered) !is null; | 374 return OS.objc_msgSend(this.id_, OS.sel_isBordered) !is null; |
374 } | 375 } |
375 | 376 |
376 public bool isContinuous () | 377 public bool isContinuous () |
377 { | 378 { |
378 return OS.objc_msgSend(this.id, OS.sel_isContinuous) !is null; | 379 return OS.objc_msgSend(this.id_, OS.sel_isContinuous) !is null; |
379 } | 380 } |
380 | 381 |
381 public bool isEditable () | 382 public bool isEditable () |
382 { | 383 { |
383 return OS.objc_msgSend(this.id, OS.sel_isEditable) !is null; | 384 return OS.objc_msgSend(this.id_, OS.sel_isEditable) !is null; |
384 } | 385 } |
385 | 386 |
386 public bool isEnabled () | 387 public bool isEnabled () |
387 { | 388 { |
388 return OS.objc_msgSend(this.id, OS.sel_isEnabled) !is null; | 389 return OS.objc_msgSend(this.id_, OS.sel_isEnabled) !is null; |
389 } | 390 } |
390 | 391 |
391 public bool isEntryAcceptable (NSString aString) | 392 public bool isEntryAcceptable (NSString aString) |
392 { | 393 { |
393 return OS.objc_msgSend(this.id, OS.sel_isEntryAcceptable_1, aString !is null ? aString.id : null) !is null; | 394 return OS.objc_msgSend(this.id_, OS.sel_isEntryAcceptable_1, aString !is null ? aString.id_ : null) !is null; |
394 } | 395 } |
395 | 396 |
396 public bool isHighlighted () | 397 public bool isHighlighted () |
397 { | 398 { |
398 return OS.objc_msgSend(this.id, OS.sel_isHighlighted) !is null; | 399 return OS.objc_msgSend(this.id_, OS.sel_isHighlighted) !is null; |
399 } | 400 } |
400 | 401 |
401 public bool isOpaque () | 402 public bool isOpaque () |
402 { | 403 { |
403 return OS.objc_msgSend(this.id, OS.sel_isOpaque) !is null; | 404 return OS.objc_msgSend(this.id_, OS.sel_isOpaque) !is null; |
404 } | 405 } |
405 | 406 |
406 public bool isScrollable () | 407 public bool isScrollable () |
407 { | 408 { |
408 return OS.objc_msgSend(this.id, OS.sel_isScrollable) !is null; | 409 return OS.objc_msgSend(this.id_, OS.sel_isScrollable) !is null; |
409 } | 410 } |
410 | 411 |
411 public bool isSelectable () | 412 public bool isSelectable () |
412 { | 413 { |
413 return OS.objc_msgSend(this.id, OS.sel_isSelectable) !is null; | 414 return OS.objc_msgSend(this.id_, OS.sel_isSelectable) !is null; |
414 } | 415 } |
415 | 416 |
416 public NSString keyEquivalent () | 417 public NSString keyEquivalent () |
417 { | 418 { |
418 objc.id result = OS.objc_msgSend(this.id, OS.sel_keyEquivalent); | 419 objc.id result = OS.objc_msgSend(this.id_, OS.sel_keyEquivalent); |
419 return result !is null ? new NSString(result) : null; | 420 return result !is null ? new NSString(result) : null; |
420 } | 421 } |
421 | 422 |
422 public objc.id lineBreakMode () | 423 public objc.id lineBreakMode () |
423 { | 424 { |
424 return OS.objc_msgSend(this.id, OS.sel_lineBreakMode); | 425 return OS.objc_msgSend(this.id_, OS.sel_lineBreakMode); |
425 } | 426 } |
426 | 427 |
427 public NSMenu menu () | 428 public NSMenu menu () |
428 { | 429 { |
429 objc.id result = OS.objc_msgSend(this.id, OS.sel_menu); | 430 objc.id result = OS.objc_msgSend(this.id_, OS.sel_menu); |
430 return result !is null ? new NSMenu(result) : null; | 431 return result !is null ? new NSMenu(result) : null; |
431 } | 432 } |
432 | 433 |
433 public NSMenu menuForEvent (NSEvent event, NSRect cellFrame, NSView view) | 434 public NSMenu menuForEvent (NSEvent event, NSRect cellFrame, NSView view) |
434 { | 435 { |
435 objc.id result = OS.objc_msgSend(this.id, OS.sel_menuForEvent_1inRect_1ofView_1, event !is null ? event.id : null, cellFrame, | 436 objc.id result = OS.objc_msgSend(this.id_, OS.sel_menuForEvent_1inRect_1ofView_1, event !is null ? event.id_ : null, cellFrame, |
436 view !is null ? view.id : null); | 437 view !is null ? view.id_ : null); |
437 return result !is null ? new NSMenu(result) : null; | 438 return result !is null ? new NSMenu(result) : null; |
438 } | 439 } |
439 | 440 |
440 public NSString mnemonic () | 441 public NSString mnemonic () |
441 { | 442 { |
442 objc.id result = OS.objc_msgSend(this.id, OS.sel_mnemonic); | 443 objc.id result = OS.objc_msgSend(this.id_, OS.sel_mnemonic); |
443 return result !is null ? new NSString(result) : null; | 444 return result !is null ? new NSString(result) : null; |
444 } | 445 } |
445 | 446 |
446 public NSUInteger mnemonicLocation () | 447 public NSUInteger mnemonicLocation () |
447 { | 448 { |
448 return OS.objc_msgSend(this.id, OS.sel_mnemonicLocation); | 449 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_mnemonicLocation); |
449 } | 450 } |
450 | 451 |
451 public NSInteger mouseDownFlags () | 452 public NSInteger mouseDownFlags () |
452 { | 453 { |
453 return OS.objc_msgSend(this.id, OS.sel_mouseDownFlags); | 454 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_mouseDownFlags); |
454 } | 455 } |
455 | 456 |
456 public NSInteger nextState () | 457 public NSInteger nextState () |
457 { | 458 { |
458 return OS.objc_msgSend(this.id, OS.sel_nextState); | 459 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_nextState); |
459 } | 460 } |
460 | 461 |
461 public id objectValue () | 462 public id objectValue () |
462 { | 463 { |
463 objc.id result = OS.objc_msgSend(this.id, OS.sel_objectValue); | 464 objc.id result = OS.objc_msgSend(this.id_, OS.sel_objectValue); |
464 return result !is null ? new id(result) : null; | 465 return result !is null ? new id(result) : null; |
465 } | 466 } |
466 | 467 |
467 public void performClick (id sender) | 468 public void performClick (id sender) |
468 { | 469 { |
469 OS.objc_msgSend(this.id, OS.sel_performClick_1, sender !is null ? sender.id : null); | 470 OS.objc_msgSend(this.id_, OS.sel_performClick_1, sender !is null ? sender.id_ : null); |
470 } | 471 } |
471 | 472 |
472 public static bool prefersTrackingUntilMouseUp () | 473 public static bool prefersTrackingUntilMouseUp () |
473 { | 474 { |
474 return OS.objc_msgSend(OS.class_NSCell, OS.sel_prefersTrackingUntilMouseUp) !is null; | 475 return OS.objc_msgSend(OS.class_NSCell, OS.sel_prefersTrackingUntilMouseUp) !is null; |
475 } | 476 } |
476 | 477 |
477 public bool refusesFirstResponder () | 478 public bool refusesFirstResponder () |
478 { | 479 { |
479 return OS.objc_msgSend(this.id, OS.sel_refusesFirstResponder) !is null; | 480 return OS.objc_msgSend(this.id_, OS.sel_refusesFirstResponder) !is null; |
480 } | 481 } |
481 | 482 |
482 public id representedObject () | 483 public id representedObject () |
483 { | 484 { |
484 objc.id result = OS.objc_msgSend(this.id, OS.sel_representedObject); | 485 objc.id result = OS.objc_msgSend(this.id_, OS.sel_representedObject); |
485 return result !is null ? new id(result) : null; | 486 return result !is null ? new id(result) : null; |
486 } | 487 } |
487 | 488 |
488 public void resetCursorRect (NSRect cellFrame, NSView controlView) | 489 public void resetCursorRect (NSRect cellFrame, NSView controlView) |
489 { | 490 { |
490 OS.objc_msgSend(this.id, OS.sel_resetCursorRect_1inView_1, cellFrame, controlView !is null ? controlView.id : null); | 491 OS.objc_msgSend(this.id_, OS.sel_resetCursorRect_1inView_1, cellFrame, controlView !is null ? controlView.id_ : null); |
491 } | 492 } |
492 | 493 |
493 public void selectWithFrame (NSRect aRect, NSView controlView, NSText textObj, id anObject, NSInteger selStart, NSInteger selLength) | 494 public void selectWithFrame (NSRect aRect, NSView controlView, NSText textObj, id anObject, NSInteger selStart, NSInteger selLength) |
494 { | 495 { |
495 OS.objc_msgSend(this.id, OS.sel_selectWithFrame_1inView_1editor_1delegate_1start_1length_1, aRect, | 496 OS.objc_msgSend(this.id_, OS.sel_selectWithFrame_1inView_1editor_1delegate_1start_1length_1, aRect, |
496 controlView !is null ? controlView.id : null, textObj !is null ? textObj.id : null, anObject !is null ? anObject.id : null, selStart, | 497 controlView !is null ? controlView.id_ : null, textObj !is null ? textObj.id_ : null, anObject !is null ? anObject.id_ : null, selStart, |
497 selLength); | 498 selLength); |
498 } | 499 } |
499 | 500 |
500 public NSInteger sendActionOn (NSInteger mask) | 501 public NSInteger sendActionOn (NSInteger mask) |
501 { | 502 { |
502 return OS.objc_msgSend(this.id, OS.sel_sendActionOn_1, mask); | 503 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_sendActionOn_1, mask); |
503 } | 504 } |
504 | 505 |
505 public bool sendsActionOnEndEditing () | 506 public bool sendsActionOnEndEditing () |
506 { | 507 { |
507 return OS.objc_msgSend(this.id, OS.sel_sendsActionOnEndEditing) !is null; | 508 return OS.objc_msgSend(this.id_, OS.sel_sendsActionOnEndEditing) !is null; |
508 } | 509 } |
509 | 510 |
510 public void setAction (objc.SEL aSelector) | 511 public void setAction (objc.SEL aSelector) |
511 { | 512 { |
512 OS.objc_msgSend(this.id, OS.sel_setAction_1, aSelector); | 513 OS.objc_msgSend(this.id_, OS.sel_setAction_1, aSelector); |
513 } | 514 } |
514 | 515 |
515 public void setAlignment (objc.id mode) | 516 public void setAlignment (objc.id mode) |
516 { | 517 { |
517 OS.objc_msgSend(this.id, OS.sel_setAlignment_1, mode); | 518 OS.objc_msgSend(this.id_, OS.sel_setAlignment_1, mode); |
518 } | 519 } |
519 | 520 |
520 public void setAllowsEditingTextAttributes (bool flag) | 521 public void setAllowsEditingTextAttributes (bool flag) |
521 { | 522 { |
522 OS.objc_msgSend(this.id, OS.sel_setAllowsEditingTextAttributes_1, flag); | 523 OS.objc_msgSend(this.id_, OS.sel_setAllowsEditingTextAttributes_1, flag); |
523 } | 524 } |
524 | 525 |
525 public void setAllowsMixedState (bool flag) | 526 public void setAllowsMixedState (bool flag) |
526 { | 527 { |
527 OS.objc_msgSend(this.id, OS.sel_setAllowsMixedState_1, flag); | 528 OS.objc_msgSend(this.id_, OS.sel_setAllowsMixedState_1, flag); |
528 } | 529 } |
529 | 530 |
530 public void setAllowsUndo (bool allowsUndo) | 531 public void setAllowsUndo (bool allowsUndo) |
531 { | 532 { |
532 OS.objc_msgSend(this.id, OS.sel_setAllowsUndo_1, allowsUndo); | 533 OS.objc_msgSend(this.id_, OS.sel_setAllowsUndo_1, allowsUndo); |
533 } | 534 } |
534 | 535 |
535 public void setAttributedStringValue (NSAttributedString obj) | 536 public void setAttributedStringValue (NSAttributedString obj) |
536 { | 537 { |
537 OS.objc_msgSend(this.id, OS.sel_setAttributedStringValue_1, obj !is null ? obj.id : null); | 538 OS.objc_msgSend(this.id_, OS.sel_setAttributedStringValue_1, obj !is null ? obj.id_ : null); |
538 } | 539 } |
539 | 540 |
540 public void setBackgroundStyle (objc.id style) | 541 public void setBackgroundStyle (objc.id style) |
541 { | 542 { |
542 OS.objc_msgSend(this.id, OS.sel_setBackgroundStyle_1, style); | 543 OS.objc_msgSend(this.id_, OS.sel_setBackgroundStyle_1, style); |
543 } | 544 } |
544 | 545 |
545 public void setBaseWritingDirection (objc.id writingDirection) | 546 public void setBaseWritingDirection (objc.id writingDirection) |
546 { | 547 { |
547 OS.objc_msgSend(this.id, OS.sel_setBaseWritingDirection_1, writingDirection); | 548 OS.objc_msgSend(this.id_, OS.sel_setBaseWritingDirection_1, writingDirection); |
548 } | 549 } |
549 | 550 |
550 public void setBezeled (bool flag) | 551 public void setBezeled (bool flag) |
551 { | 552 { |
552 OS.objc_msgSend(this.id, OS.sel_setBezeled_1, flag); | 553 OS.objc_msgSend(this.id_, OS.sel_setBezeled_1, flag); |
553 } | 554 } |
554 | 555 |
555 public void setBordered (bool flag) | 556 public void setBordered (bool flag) |
556 { | 557 { |
557 OS.objc_msgSend(this.id, OS.sel_setBordered_1, flag); | 558 OS.objc_msgSend(this.id_, OS.sel_setBordered_1, flag); |
558 } | 559 } |
559 | 560 |
560 public void setCellAttribute (NSCellAttribute aParameter, NSInteger value) | 561 public void setCellAttribute (NSCellAttribute aParameter, NSInteger value) |
561 { | 562 { |
562 OS.objc_msgSend(this.id, OS.sel_setCellAttribute_1to_1, aParameter, value); | 563 OS.objc_msgSend(this.id_, OS.sel_setCellAttribute_1to_1, aParameter, value); |
563 } | 564 } |
564 | 565 |
565 public void setContinuous (bool flag) | 566 public void setContinuous (bool flag) |
566 { | 567 { |
567 OS.objc_msgSend(this.id, OS.sel_setContinuous_1, flag); | 568 OS.objc_msgSend(this.id_, OS.sel_setContinuous_1, flag); |
568 } | 569 } |
569 | 570 |
570 public void setControlSize (objc.id size) | 571 public void setControlSize (objc.id size) |
571 { | 572 { |
572 OS.objc_msgSend(this.id, OS.sel_setControlSize_1, size); | 573 OS.objc_msgSend(this.id_, OS.sel_setControlSize_1, size); |
573 } | 574 } |
574 | 575 |
575 public void setControlTint (objc.id controlTint) | 576 public void setControlTint (objc.id controlTint) |
576 { | 577 { |
577 OS.objc_msgSend(this.id, OS.sel_setControlTint_1, controlTint); | 578 OS.objc_msgSend(this.id_, OS.sel_setControlTint_1, controlTint); |
578 } | 579 } |
579 | 580 |
580 public void setControlView (NSView view) | 581 public void setControlView (NSView view) |
581 { | 582 { |
582 OS.objc_msgSend(this.id, OS.sel_setControlView_1, view !is null ? view.id : null); | 583 OS.objc_msgSend(this.id_, OS.sel_setControlView_1, view !is null ? view.id_ : null); |
583 } | 584 } |
584 | 585 |
585 public void setDoubleValue (double aDouble) | 586 public void setDoubleValue (double aDouble) |
586 { | 587 { |
587 OS.objc_msgSend(this.id, OS.sel_setDoubleValue_1, aDouble); | 588 OS.objc_msgSend(this.id_, OS.sel_setDoubleValue_1, aDouble); |
588 } | 589 } |
589 | 590 |
590 public void setEditable (bool flag) | 591 public void setEditable (bool flag) |
591 { | 592 { |
592 OS.objc_msgSend(this.id, OS.sel_setEditable_1, flag); | 593 OS.objc_msgSend(this.id_, OS.sel_setEditable_1, flag); |
593 } | 594 } |
594 | 595 |
595 public void setEnabled (bool flag) | 596 public void setEnabled (bool flag) |
596 { | 597 { |
597 OS.objc_msgSend(this.id, OS.sel_setEnabled_1, flag); | 598 OS.objc_msgSend(this.id_, OS.sel_setEnabled_1, flag); |
598 } | 599 } |
599 | 600 |
600 public void setEntryType (NSInteger aType) | 601 public void setEntryType (NSInteger aType) |
601 { | 602 { |
602 OS.objc_msgSend(this.id, OS.sel_setEntryType_1, aType); | 603 OS.objc_msgSend(this.id_, OS.sel_setEntryType_1, aType); |
603 } | 604 } |
604 | 605 |
605 public void setFloatValue (float aFloat) | 606 public void setFloatValue (float aFloat) |
606 { | 607 { |
607 OS.objc_msgSend(this.id, OS.sel_setFloatValue_1, aFloat); | 608 OS.objc_msgSend(this.id_, OS.sel_setFloatValue_1, aFloat); |
608 } | 609 } |
609 | 610 |
610 public void setFloatingPointFormat (bool autoRange, NSUInteger leftDigits, NSUInteger rightDigits) | 611 public void setFloatingPointFormat (bool autoRange, NSUInteger leftDigits, NSUInteger rightDigits) |
611 { | 612 { |
612 OS.objc_msgSend(this.id, OS.sel_setFloatingPointFormat_1left_1right_1, autoRange, leftDigits, rightDigits); | 613 OS.objc_msgSend(this.id_, OS.sel_setFloatingPointFormat_1left_1right_1, autoRange, leftDigits, rightDigits); |
613 } | 614 } |
614 | 615 |
615 public void setFocusRingType (objc.id focusRingType) | 616 public void setFocusRingType (objc.id focusRingType) |
616 { | 617 { |
617 OS.objc_msgSend(this.id, OS.sel_setFocusRingType_1, focusRingType); | 618 OS.objc_msgSend(this.id_, OS.sel_setFocusRingType_1, focusRingType); |
618 } | 619 } |
619 | 620 |
620 public void setFont (NSFont fontObj) | 621 public void setFont (NSFont fontObj) |
621 { | 622 { |
622 OS.objc_msgSend(this.id, OS.sel_setFont_1, fontObj !is null ? fontObj.id : null); | 623 OS.objc_msgSend(this.id_, OS.sel_setFont_1, fontObj !is null ? fontObj.id_ : null); |
623 } | 624 } |
624 | 625 |
625 public void setFormatter (NSFormatter newFormatter) | 626 public void setFormatter (NSFormatter newFormatter) |
626 { | 627 { |
627 OS.objc_msgSend(this.id, OS.sel_setFormatter_1, newFormatter !is null ? newFormatter.id : null); | 628 OS.objc_msgSend(this.id_, OS.sel_setFormatter_1, newFormatter !is null ? newFormatter.id_ : null); |
628 } | 629 } |
629 | 630 |
630 public void setHighlighted (bool flag) | 631 public void setHighlighted (bool flag) |
631 { | 632 { |
632 OS.objc_msgSend(this.id, OS.sel_setHighlighted_1, flag); | 633 OS.objc_msgSend(this.id_, OS.sel_setHighlighted_1, flag); |
633 } | 634 } |
634 | 635 |
635 public void setImage (NSImage image) | 636 public void setImage (NSImage image) |
636 { | 637 { |
637 OS.objc_msgSend(this.id, OS.sel_setImage_1, image !is null ? image.id : null); | 638 OS.objc_msgSend(this.id_, OS.sel_setImage_1, image !is null ? image.id_ : null); |
638 } | 639 } |
639 | 640 |
640 public void setImportsGraphics (bool flag) | 641 public void setImportsGraphics (bool flag) |
641 { | 642 { |
642 OS.objc_msgSend(this.id, OS.sel_setImportsGraphics_1, flag); | 643 OS.objc_msgSend(this.id_, OS.sel_setImportsGraphics_1, flag); |
643 } | 644 } |
644 | 645 |
645 public void setIntValue (int anInt) | 646 public void setIntValue (int anInt) |
646 { | 647 { |
647 OS.objc_msgSend(this.id, OS.sel_setIntValue_1, anInt); | 648 OS.objc_msgSend(this.id_, OS.sel_setIntValue_1, anInt); |
648 } | 649 } |
649 | 650 |
650 public void setIntegerValue (int anInteger) | 651 public void setIntegerValue (int anInteger) |
651 { | 652 { |
652 OS.objc_msgSend(this.id, OS.sel_setIntegerValue_1, anInteger); | 653 OS.objc_msgSend(this.id_, OS.sel_setIntegerValue_1, anInteger); |
653 } | 654 } |
654 | 655 |
655 public void setLineBreakMode (objc.id mode) | 656 public void setLineBreakMode (objc.id mode) |
656 { | 657 { |
657 OS.objc_msgSend(this.id, OS.sel_setLineBreakMode_1, mode); | 658 OS.objc_msgSend(this.id_, OS.sel_setLineBreakMode_1, mode); |
658 } | 659 } |
659 | 660 |
660 public void setMenu (NSMenu aMenu) | 661 public void setMenu (NSMenu aMenu) |
661 { | 662 { |
662 OS.objc_msgSend(this.id, OS.sel_setMenu_1, aMenu !is null ? aMenu.id : null); | 663 OS.objc_msgSend(this.id_, OS.sel_setMenu_1, aMenu !is null ? aMenu.id_ : null); |
663 } | 664 } |
664 | 665 |
665 public void setMnemonicLocation (NSUInteger location) | 666 public void setMnemonicLocation (NSUInteger location) |
666 { | 667 { |
667 OS.objc_msgSend(this.id, OS.sel_setMnemonicLocation_1, location); | 668 OS.objc_msgSend(this.id_, OS.sel_setMnemonicLocation_1, location); |
668 } | 669 } |
669 | 670 |
670 public void setNextState () | 671 public void setNextState () |
671 { | 672 { |
672 OS.objc_msgSend(this.id, OS.sel_setNextState); | 673 OS.objc_msgSend(this.id_, OS.sel_setNextState); |
673 } | 674 } |
674 | 675 |
675 public void setObjectValue (id obj) | 676 public void setObjectValue (id obj) |
676 { | 677 { |
677 OS.objc_msgSend(this.id, OS.sel_setObjectValue_1, obj !is null ? obj.id : null); | 678 OS.objc_msgSend(this.id_, OS.sel_setObjectValue_1, obj !is null ? obj.id_ : null); |
678 } | 679 } |
679 | 680 |
680 public void setRefusesFirstResponder (bool flag) | 681 public void setRefusesFirstResponder (bool flag) |
681 { | 682 { |
682 OS.objc_msgSend(this.id, OS.sel_setRefusesFirstResponder_1, flag); | 683 OS.objc_msgSend(this.id_, OS.sel_setRefusesFirstResponder_1, flag); |
683 } | 684 } |
684 | 685 |
685 public void setRepresentedObject (id anObject) | 686 public void setRepresentedObject (id anObject) |
686 { | 687 { |
687 OS.objc_msgSend(this.id, OS.sel_setRepresentedObject_1, anObject !is null ? anObject.id : null); | 688 OS.objc_msgSend(this.id_, OS.sel_setRepresentedObject_1, anObject !is null ? anObject.id_ : null); |
688 } | 689 } |
689 | 690 |
690 public void setScrollable (bool flag) | 691 public void setScrollable (bool flag) |
691 { | 692 { |
692 OS.objc_msgSend(this.id, OS.sel_setScrollable_1, flag); | 693 OS.objc_msgSend(this.id_, OS.sel_setScrollable_1, flag); |
693 } | 694 } |
694 | 695 |
695 public void setSelectable (bool flag) | 696 public void setSelectable (bool flag) |
696 { | 697 { |
697 OS.objc_msgSend(this.id, OS.sel_setSelectable_1, flag); | 698 OS.objc_msgSend(this.id_, OS.sel_setSelectable_1, flag); |
698 } | 699 } |
699 | 700 |
700 public void setSendsActionOnEndEditing (bool flag) | 701 public void setSendsActionOnEndEditing (bool flag) |
701 { | 702 { |
702 OS.objc_msgSend(this.id, OS.sel_setSendsActionOnEndEditing_1, flag); | 703 OS.objc_msgSend(this.id_, OS.sel_setSendsActionOnEndEditing_1, flag); |
703 } | 704 } |
704 | 705 |
705 public void setShowsFirstResponder (bool showFR) | 706 public void setShowsFirstResponder (bool showFR) |
706 { | 707 { |
707 OS.objc_msgSend(this.id, OS.sel_setShowsFirstResponder_1, showFR); | 708 OS.objc_msgSend(this.id_, OS.sel_setShowsFirstResponder_1, showFR); |
708 } | 709 } |
709 | 710 |
710 public void setState (NSInteger value) | 711 public void setState (NSInteger value) |
711 { | 712 { |
712 OS.objc_msgSend(this.id, OS.sel_setState_1, value); | 713 OS.objc_msgSend(this.id_, OS.sel_setState_1, value); |
713 } | 714 } |
714 | 715 |
715 public void setStringValue (NSString aString) | 716 public void setStringValue (NSString aString) |
716 { | 717 { |
717 OS.objc_msgSend(this.id, OS.sel_setStringValue_1, aString !is null ? aString.id : null); | 718 OS.objc_msgSend(this.id_, OS.sel_setStringValue_1, aString !is null ? aString.id_ : null); |
718 } | 719 } |
719 | 720 |
720 public void setTag (NSInteger anInt) | 721 public void setTag (NSInteger anInt) |
721 { | 722 { |
722 OS.objc_msgSend(this.id, OS.sel_setTag_1, anInt); | 723 OS.objc_msgSend(this.id_, OS.sel_setTag_1, anInt); |
723 } | 724 } |
724 | 725 |
725 public void setTarget (id anObject) | 726 public void setTarget (id anObject) |
726 { | 727 { |
727 OS.objc_msgSend(this.id, OS.sel_setTarget_1, anObject !is null ? anObject.id : null); | 728 OS.objc_msgSend(this.id_, OS.sel_setTarget_1, anObject !is null ? anObject.id_ : null); |
728 } | 729 } |
729 | 730 |
730 public void setTitle (NSString aString) | 731 public void setTitle (NSString aString) |
731 { | 732 { |
732 OS.objc_msgSend(this.id, OS.sel_setTitle_1, aString !is null ? aString.id : null); | 733 OS.objc_msgSend(this.id_, OS.sel_setTitle_1, aString !is null ? aString.id_ : null); |
733 } | 734 } |
734 | 735 |
735 public void setTitleWithMnemonic (NSString StringWithAmpersand) | 736 public void setTitleWithMnemonic (NSString StringWithAmpersand) |
736 { | 737 { |
737 OS.objc_msgSend(this.id, OS.sel_setTitleWithMnemonic_1, StringWithAmpersand !is null ? StringWithAmpersand.id : null); | 738 OS.objc_msgSend(this.id_, OS.sel_setTitleWithMnemonic_1, StringWithAmpersand !is null ? StringWithAmpersand.id_ : null); |
738 } | 739 } |
739 | 740 |
740 public void setTruncatesLastVisibleLine (bool flag) | 741 public void setTruncatesLastVisibleLine (bool flag) |
741 { | 742 { |
742 OS.objc_msgSend(this.id, OS.sel_setTruncatesLastVisibleLine_1, flag); | 743 OS.objc_msgSend(this.id_, OS.sel_setTruncatesLastVisibleLine_1, flag); |
743 } | 744 } |
744 | 745 |
745 public void setType (objc.id aType) | 746 public void setType (objc.id aType) |
746 { | 747 { |
747 OS.objc_msgSend(this.id, OS.sel_setType_1, aType); | 748 OS.objc_msgSend(this.id_, OS.sel_setType_1, aType); |
748 } | 749 } |
749 | 750 |
750 public NSText setUpFieldEditorAttributes (NSText textObj) | 751 public NSText setUpFieldEditorAttributes (NSText textObj) |
751 { | 752 { |
752 objc.id result = OS.objc_msgSend(this.id, OS.sel_setUpFieldEditorAttributes_1, textObj !is null ? textObj.id : null); | 753 objc.id result = OS.objc_msgSend(this.id_, OS.sel_setUpFieldEditorAttributes_1, textObj !is null ? textObj.id_ : null); |
753 return result !is null ? new NSText(result) : null; | 754 return result !is null ? new NSText(result) : null; |
754 } | 755 } |
755 | 756 |
756 public void setWraps (bool flag) | 757 public void setWraps (bool flag) |
757 { | 758 { |
758 OS.objc_msgSend(this.id, OS.sel_setWraps_1, flag); | 759 OS.objc_msgSend(this.id_, OS.sel_setWraps_1, flag); |
759 } | 760 } |
760 | 761 |
761 public bool showsFirstResponder () | 762 public bool showsFirstResponder () |
762 { | 763 { |
763 return OS.objc_msgSend(this.id, OS.sel_showsFirstResponder) !is null; | 764 return OS.objc_msgSend(this.id_, OS.sel_showsFirstResponder) !is null; |
764 } | 765 } |
765 | 766 |
766 public bool startTrackingAt (NSPoint startPoint, NSView controlView) | 767 public bool startTrackingAt (NSPoint startPoint, NSView controlView) |
767 { | 768 { |
768 return OS.objc_msgSend(this.id, OS.sel_startTrackingAt_1inView_1, startPoint, controlView !is null ? controlView.id : null) !is null; | 769 return OS.objc_msgSend(this.id_, OS.sel_startTrackingAt_1inView_1, startPoint, controlView !is null ? controlView.id_ : null) !is null; |
769 } | 770 } |
770 | 771 |
771 public NSInteger state () | 772 public NSInteger state () |
772 { | 773 { |
773 return OS.objc_msgSend(this.id, OS.sel_state); | 774 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_state); |
774 } | 775 } |
775 | 776 |
776 public void stopTracking (NSPoint lastPoint, NSPoint stopPoint, NSView controlView, bool flag) | 777 public void stopTracking (NSPoint lastPoint, NSPoint stopPoint, NSView controlView, bool flag) |
777 { | 778 { |
778 OS.objc_msgSend(this.id, OS.sel_stopTracking_1at_1inView_1mouseIsUp_1, lastPoint, stopPoint, controlView !is null ? controlView.id : null, | 779 OS.objc_msgSend(this.id_, OS.sel_stopTracking_1at_1inView_1mouseIsUp_1, lastPoint, stopPoint, controlView !is null ? controlView.id_ : null, |
779 flag); | 780 flag); |
780 } | 781 } |
781 | 782 |
782 public NSString StringValue () | 783 public NSString StringValue () |
783 { | 784 { |
784 objc.id result = OS.objc_msgSend(this.id, OS.sel_StringValue); | 785 objc.id result = OS.objc_msgSend(this.id_, OS.sel_stringValue); |
785 return result !is null ? new NSString(result) : null; | 786 return result !is null ? new NSString(result) : null; |
786 } | 787 } |
787 | 788 |
788 public NSInteger tag () | 789 public NSInteger tag () |
789 { | 790 { |
790 return OS.objc_msgSend(this.id, OS.sel_tag); | 791 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_tag); |
791 } | 792 } |
792 | 793 |
793 public void takeDoubleValueFrom (id sender) | 794 public void takeDoubleValueFrom (id sender) |
794 { | 795 { |
795 OS.objc_msgSend(this.id, OS.sel_takeDoubleValueFrom_1, sender !is null ? sender.id : null); | 796 OS.objc_msgSend(this.id_, OS.sel_takeDoubleValueFrom_1, sender !is null ? sender.id_ : null); |
796 } | 797 } |
797 | 798 |
798 public void takeFloatValueFrom (id sender) | 799 public void takeFloatValueFrom (id sender) |
799 { | 800 { |
800 OS.objc_msgSend(this.id, OS.sel_takeFloatValueFrom_1, sender !is null ? sender.id : null); | 801 OS.objc_msgSend(this.id_, OS.sel_takeFloatValueFrom_1, sender !is null ? sender.id_ : null); |
801 } | 802 } |
802 | 803 |
803 public void takeIntValueFrom (id sender) | 804 public void takeIntValueFrom (id sender) |
804 { | 805 { |
805 OS.objc_msgSend(this.id, OS.sel_takeIntValueFrom_1, sender !is null ? sender.id : null); | 806 OS.objc_msgSend(this.id_, OS.sel_takeIntValueFrom_1, sender !is null ? sender.id_ : null); |
806 } | 807 } |
807 | 808 |
808 public void takeIntegerValueFrom (id sender) | 809 public void takeIntegerValueFrom (id sender) |
809 { | 810 { |
810 OS.objc_msgSend(this.id, OS.sel_takeIntegerValueFrom_1, sender !is null ? sender.id : null); | 811 OS.objc_msgSend(this.id_, OS.sel_takeIntegerValueFrom_1, sender !is null ? sender.id_ : null); |
811 } | 812 } |
812 | 813 |
813 public void takeObjectValueFrom (id sender) | 814 public void takeObjectValueFrom (id sender) |
814 { | 815 { |
815 OS.objc_msgSend(this.id, OS.sel_takeObjectValueFrom_1, sender !is null ? sender.id : null); | 816 OS.objc_msgSend(this.id_, OS.sel_takeObjectValueFrom_1, sender !is null ? sender.id_ : null); |
816 } | 817 } |
817 | 818 |
818 public void takeStringValueFrom (id sender) | 819 public void takeStringValueFrom (id sender) |
819 { | 820 { |
820 OS.objc_msgSend(this.id, OS.sel_takeStringValueFrom_1, sender !is null ? sender.id : null); | 821 OS.objc_msgSend(this.id_, OS.sel_takeStringValueFrom_1, sender !is null ? sender.id_ : null); |
821 } | 822 } |
822 | 823 |
823 public id target () | 824 public id target () |
824 { | 825 { |
825 objc.id result = OS.objc_msgSend(this.id, OS.sel_target); | 826 objc.id result = OS.objc_msgSend(this.id_, OS.sel_target); |
826 return result !is null ? new id(result) : null; | 827 return result !is null ? new id(result) : null; |
827 } | 828 } |
828 | 829 |
829 public NSString title () | 830 public NSString title () |
830 { | 831 { |
831 objc.id result = OS.objc_msgSend(this.id, OS.sel_title); | 832 objc.id result = OS.objc_msgSend(this.id_, OS.sel_title); |
832 return result !is null ? new NSString(result) : null; | 833 return result !is null ? new NSString(result) : null; |
833 } | 834 } |
834 | 835 |
835 public NSRect titleRectForBounds (NSRect theRect) | 836 public NSRect titleRectForBounds (NSRect theRect) |
836 { | 837 { |
837 NSRect result; | 838 NSRect result; |
838 OS.objc_msgSend_stret(result, this.id, OS.sel_titleRectForBounds_1, theRect); | 839 OS.objc_msgSend_stret(&result, this.id_, OS.sel_titleRectForBounds_1, theRect); |
839 return result; | 840 return result; |
840 } | 841 } |
841 | 842 |
842 public bool trackMouse (NSEvent theEvent, NSRect cellFrame, NSView controlView, bool flag) | 843 public bool trackMouse (NSEvent theEvent, NSRect cellFrame, NSView controlView, bool flag) |
843 { | 844 { |
844 return OS.objc_msgSend(this.id, OS.sel_trackMouse_1inRect_1ofView_1untilMouseUp_1, theEvent !is null ? theEvent.id : null, cellFrame, | 845 return OS.objc_msgSend(this.id_, OS.sel_trackMouse_1inRect_1ofView_1untilMouseUp_1, theEvent !is null ? theEvent.id_ : null, cellFrame, |
845 controlView !is null ? controlView.id : null, flag) !is null; | 846 controlView !is null ? controlView.id_ : null, flag) !is null; |
846 } | 847 } |
847 | 848 |
848 public bool truncatesLastVisibleLine () | 849 public bool truncatesLastVisibleLine () |
849 { | 850 { |
850 return OS.objc_msgSend(this.id, OS.sel_truncatesLastVisibleLine) !is null; | 851 return OS.objc_msgSend(this.id_, OS.sel_truncatesLastVisibleLine) !is null; |
851 } | 852 } |
852 | 853 |
853 public objc.id type () | 854 public objc.id type () |
854 { | 855 { |
855 return OS.objc_msgSend(this.id, OS.sel_type); | 856 return OS.objc_msgSend(this.id_, OS.sel_type); |
856 } | 857 } |
857 | 858 |
858 public bool wantsNotificationForMarkedText () | 859 public bool wantsNotificationForMarkedText () |
859 { | 860 { |
860 return OS.objc_msgSend(this.id, OS.sel_wantsNotificationForMarkedText) !is null; | 861 return OS.objc_msgSend(this.id_, OS.sel_wantsNotificationForMarkedText) !is null; |
861 } | 862 } |
862 | 863 |
863 public bool wraps () | 864 public bool wraps () |
864 { | 865 { |
865 return OS.objc_msgSend(this.id, OS.sel_wraps) !is null; | 866 return OS.objc_msgSend(this.id_, OS.sel_wraps) !is null; |
866 } | 867 } |
867 | 868 |
868 } | 869 } |