comparison dwt/internal/cocoa/NSMatrix.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
19 import dwt.internal.cocoa.NSColor; 19 import dwt.internal.cocoa.NSColor;
20 import dwt.internal.cocoa.NSControl; 20 import dwt.internal.cocoa.NSControl;
21 import dwt.internal.cocoa.NSEvent; 21 import dwt.internal.cocoa.NSEvent;
22 import dwt.internal.cocoa.NSInteger; 22 import dwt.internal.cocoa.NSInteger;
23 import dwt.internal.cocoa.NSNotification; 23 import dwt.internal.cocoa.NSNotification;
24 import dwt.internal.cocoa.NSPoint;
24 import dwt.internal.cocoa.NSRect; 25 import dwt.internal.cocoa.NSRect;
25 import dwt.internal.cocoa.NSSize; 26 import dwt.internal.cocoa.NSSize;
26 import dwt.internal.cocoa.NSString; 27 import dwt.internal.cocoa.NSString;
27 import dwt.internal.cocoa.NSText; 28 import dwt.internal.cocoa.NSText;
28 import dwt.internal.cocoa.OS; 29 import dwt.internal.cocoa.OS;
54 super(id); 55 super(id);
55 } 56 }
56 57
57 public bool acceptsFirstMouse (NSEvent theEvent) 58 public bool acceptsFirstMouse (NSEvent theEvent)
58 { 59 {
59 return OS.objc_msgSend(this.id, OS.sel_acceptsFirstMouse_1, theEvent !is null ? theEvent.id : null) !is null; 60 return OS.objc_msgSend(this.id_, OS.sel_acceptsFirstMouse_1, theEvent !is null ? theEvent.id_ : null) !is null;
60 } 61 }
61 62
62 public void addColumn () 63 public void addColumn ()
63 { 64 {
64 OS.objc_msgSend(this.id, OS.sel_addColumn); 65 OS.objc_msgSend(this.id_, OS.sel_addColumn);
65 } 66 }
66 67
67 public void addColumnWithCells (NSArray newCells) 68 public void addColumnWithCells (NSArray newCells)
68 { 69 {
69 OS.objc_msgSend(this.id, OS.sel_addColumnWithCells_1, newCells !is null ? newCells.id : null); 70 OS.objc_msgSend(this.id_, OS.sel_addColumnWithCells_1, newCells !is null ? newCells.id_ : null);
70 } 71 }
71 72
72 public void addRow () 73 public void addRow ()
73 { 74 {
74 OS.objc_msgSend(this.id, OS.sel_addRow); 75 OS.objc_msgSend(this.id_, OS.sel_addRow);
75 } 76 }
76 77
77 public void addRowWithCells (NSArray newCells) 78 public void addRowWithCells (NSArray newCells)
78 { 79 {
79 OS.objc_msgSend(this.id, OS.sel_addRowWithCells_1, newCells !is null ? newCells.id : null); 80 OS.objc_msgSend(this.id_, OS.sel_addRowWithCells_1, newCells !is null ? newCells.id_ : null);
80 } 81 }
81 82
82 public bool allowsEmptySelection () 83 public bool allowsEmptySelection ()
83 { 84 {
84 return OS.objc_msgSend(this.id, OS.sel_allowsEmptySelection) !is null; 85 return OS.objc_msgSend(this.id_, OS.sel_allowsEmptySelection) !is null;
85 } 86 }
86 87
87 public bool autosizesCells () 88 public bool autosizesCells ()
88 { 89 {
89 return OS.objc_msgSend(this.id, OS.sel_autosizesCells) !is null; 90 return OS.objc_msgSend(this.id_, OS.sel_autosizesCells) !is null;
90 } 91 }
91 92
92 public NSColor backgroundColor () 93 public NSColor backgroundColor ()
93 { 94 {
94 objc.id result = OS.objc_msgSend(this.id, OS.sel_backgroundColor); 95 objc.id result = OS.objc_msgSend(this.id_, OS.sel_backgroundColor);
95 return result !is null ? new NSColor(result) : null; 96 return result !is null ? new NSColor(result) : null;
96 } 97 }
97 98
98 public id cellAtRow (NSInteger row, NSInteger col) 99 public id cellAtRow (NSInteger row, NSInteger col)
99 { 100 {
100 objc.id result = OS.objc_msgSend(this.id, OS.sel_cellAtRow_1column_1, row, col); 101 objc.id result = OS.objc_msgSend(this.id_, OS.sel_cellAtRow_1column_1, row, col);
101 return result !is null ? new id(result) : null; 102 return result !is null ? new id(result) : null;
102 } 103 }
103 104
104 public NSColor cellBackgroundColor () 105 public NSColor cellBackgroundColor ()
105 { 106 {
106 objc.id result = OS.objc_msgSend(this.id, OS.sel_cellBackgroundColor); 107 objc.id result = OS.objc_msgSend(this.id_, OS.sel_cellBackgroundColor);
107 return result !is null ? new NSColor(result) : null; 108 return result !is null ? new NSColor(result) : null;
108 } 109 }
109 110
110 //public objc.Class cellClass() { 111 //public objc.Class cellClass() {
111 // return OS.objc_msgSend(this.id, OS.sel_cellClass); 112 // return OS.objc_msgSend(this.id_, OS.sel_cellClass);
112 //} 113 //}
113 114
114 public NSRect cellFrameAtRow (NSInteger row, NSInteger col) 115 public NSRect cellFrameAtRow (NSInteger row, NSInteger col)
115 { 116 {
116 NSRect result; 117 NSRect result;
117 OS.objc_msgSend_stret(result, this.id, OS.sel_cellFrameAtRow_1column_1, row, col); 118 OS.objc_msgSend_stret(&result, this.id_, OS.sel_cellFrameAtRow_1column_1, row, col);
118 return result; 119 return result;
119 } 120 }
120 121
121 public NSSize cellSize () 122 public NSSize cellSize ()
122 { 123 {
123 NSSize result; 124 NSSize result;
124 OS.objc_msgSend_stret(result, this.id, OS.sel_cellSize); 125 OS.objc_msgSend_stret(&result, this.id_, OS.sel_cellSize);
125 return result; 126 return result;
126 } 127 }
127 128
128 public id cellWithTag (NSInteger anInt) 129 public id cellWithTag (NSInteger anInt)
129 { 130 {
130 objc.id result = OS.objc_msgSend(this.id, OS.sel_cellWithTag_1, anInt); 131 objc.id result = OS.objc_msgSend(this.id_, OS.sel_cellWithTag_1, anInt);
131 return result !is null ? new id(result) : null; 132 return result !is null ? new id(result) : null;
132 } 133 }
133 134
134 public NSArray cells () 135 public NSArray cells ()
135 { 136 {
136 objc.id result = OS.objc_msgSend(this.id, OS.sel_cells); 137 objc.id result = OS.objc_msgSend(this.id_, OS.sel_cells);
137 return result !is null ? new NSArray(result) : null; 138 return result !is null ? new NSArray(result) : null;
138 } 139 }
139 140
140 public id delegatee () 141 public id delegatee ()
141 { 142 {
142 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); 143 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate);
143 return result !is null ? new id(result) : null; 144 return result !is null ? new id(result) : null;
144 } 145 }
145 146
146 public void deselectAllCells () 147 public void deselectAllCells ()
147 { 148 {
148 OS.objc_msgSend(this.id, OS.sel_deselectAllCells); 149 OS.objc_msgSend(this.id_, OS.sel_deselectAllCells);
149 } 150 }
150 151
151 public void deselectSelectedCell () 152 public void deselectSelectedCell ()
152 { 153 {
153 OS.objc_msgSend(this.id, OS.sel_deselectSelectedCell); 154 OS.objc_msgSend(this.id_, OS.sel_deselectSelectedCell);
154 } 155 }
155 156
156 public objc.SEL doubleAction () 157 public objc.SEL doubleAction ()
157 { 158 {
158 return OS.objc_msgSend(this.id, OS.sel_doubleAction); 159 return cast(objc.SEL) OS.objc_msgSend(this.id_, OS.sel_doubleAction);
159 } 160 }
160 161
161 public void drawCellAtRow (NSInteger row, NSInteger col) 162 public void drawCellAtRow (NSInteger row, NSInteger col)
162 { 163 {
163 OS.objc_msgSend(this.id, OS.sel_drawCellAtRow_1column_1, row, col); 164 OS.objc_msgSend(this.id_, OS.sel_drawCellAtRow_1column_1, row, col);
164 } 165 }
165 166
166 public bool drawsBackground () 167 public bool drawsBackground ()
167 { 168 {
168 return OS.objc_msgSend(this.id, OS.sel_drawsBackground) !is null; 169 return OS.objc_msgSend(this.id_, OS.sel_drawsBackground) !is null;
169 } 170 }
170 171
171 public bool drawsCellBackground () 172 public bool drawsCellBackground ()
172 { 173 {
173 return OS.objc_msgSend(this.id, OS.sel_drawsCellBackground) !is null; 174 return OS.objc_msgSend(this.id_, OS.sel_drawsCellBackground) !is null;
174 } 175 }
175 176
176 public void getNumberOfRows (NSInteger* rowCount, NSInteger* colCount) 177 public void getNumberOfRows (NSInteger* rowCount, NSInteger* colCount)
177 { 178 {
178 OS.objc_msgSend(this.id, OS.sel_getNumberOfRows_1columns_1, rowCount, colCount); 179 OS.objc_msgSend(this.id_, OS.sel_getNumberOfRows_1columns_1, rowCount, colCount);
179 } 180 }
180 181
181 public bool getRow_column_forPoint_ (NSInteger* row, NSInteger* col, NSPoint aPoint) 182 public bool getRow_column_forPoint_ (NSInteger* row, NSInteger* col, NSPoint aPoint)
182 { 183 {
183 return OS.objc_msgSend(this.id, OS.sel_getRow_1column_1forPoint_1, row, col, aPoint) !is null; 184 return OS.objc_msgSend(this.id_, OS.sel_getRow_1column_1forPoint_1, row, col, aPoint) !is null;
184 } 185 }
185 186
186 public bool getRow_column_ofCell_ (NSInteger* row, NSInteger* col, NSCell aCell) 187 public bool getRow_column_ofCell_ (NSInteger* row, NSInteger* col, NSCell aCell)
187 { 188 {
188 return OS.objc_msgSend(this.id, OS.sel_getRow_1column_1ofCell_1, row, col, aCell !is null ? aCell.id : null) !is null; 189 return OS.objc_msgSend(this.id_, OS.sel_getRow_1column_1ofCell_1, row, col, aCell !is null ? aCell.id_ : null) !is null;
189 } 190 }
190 191
191 public void highlightCell (bool flag, NSInteger row, NSInteger col) 192 public void highlightCell (bool flag, NSInteger row, NSInteger col)
192 { 193 {
193 OS.objc_msgSend(this.id, OS.sel_highlightCell_1atRow_1column_1, flag, row, col); 194 OS.objc_msgSend(this.id_, OS.sel_highlightCell_1atRow_1column_1, flag, row, col);
194 } 195 }
195 196
196 public id initWithFrame_ (NSRect frameRect) 197 public id initWithFrame_ (NSRect frameRect)
197 { 198 {
198 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithFrame_1, frameRect); 199 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithFrame_1, frameRect);
199 return result !is null ? new id(result) : null; 200 return result !is null ? new id(result) : null;
200 } 201 }
201 202
202 public id initWithFrame_mode_cellClass_numberOfRows_numberOfColumns_ (NSRect frameRect, NSInteger aMode, objc.Class factoryId, 203 public id initWithFrame_mode_cellClass_numberOfRows_numberOfColumns_ (NSRect frameRect, NSInteger aMode, objc.Class factoryId,
203 NSInteger rowsHigh, NSInteger colsWide) 204 NSInteger rowsHigh, NSInteger colsWide)
204 { 205 {
205 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithFrame_1mode_1cellClass_1numberOfRows_1numberOfColumns_1, frameRect, aMode, 206 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithFrame_1mode_1cellClass_1numberOfRows_1numberOfColumns_1, frameRect, aMode,
206 factoryId, rowsHigh, colsWide); 207 factoryId, rowsHigh, colsWide);
207 return result !is null ? new id(result) : null; 208 return result !is null ? new id(result) : null;
208 } 209 }
209 210
210 public id initWithFrame_mode_prototype_numberOfRows_numberOfColumns_ (NSRect frameRect, NSInteger aMode, NSCell aCell, NSInteger rowsHigh, 211 public id initWithFrame_mode_prototype_numberOfRows_numberOfColumns_ (NSRect frameRect, NSInteger aMode, NSCell aCell, NSInteger rowsHigh,
211 NSInteger colsWide) 212 NSInteger colsWide)
212 { 213 {
213 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithFrame_1mode_1prototype_1numberOfRows_1numberOfColumns_1, frameRect, aMode, 214 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithFrame_1mode_1prototype_1numberOfRows_1numberOfColumns_1, frameRect, aMode,
214 aCell !is null ? aCell.id : null, rowsHigh, colsWide); 215 aCell !is null ? aCell.id_ : null, rowsHigh, colsWide);
215 return result !is null ? new id(result) : null; 216 return result !is null ? new id(result) : null;
216 } 217 }
217 218
218 public void insertColumn_ (NSInteger column) 219 public void insertColumn_ (NSInteger column)
219 { 220 {
220 OS.objc_msgSend(this.id, OS.sel_insertColumn_1, column); 221 OS.objc_msgSend(this.id_, OS.sel_insertColumn_1, column);
221 } 222 }
222 223
223 public void insertColumn_withCells_ (NSInteger column, NSArray newCells) 224 public void insertColumn_withCells_ (NSInteger column, NSArray newCells)
224 { 225 {
225 OS.objc_msgSend(this.id, OS.sel_insertColumn_1withCells_1, column, newCells !is null ? newCells.id : null); 226 OS.objc_msgSend(this.id_, OS.sel_insertColumn_1withCells_1, column, newCells !is null ? newCells.id_ : null);
226 } 227 }
227 228
228 public void insertRow_ (NSInteger row) 229 public void insertRow_ (NSInteger row)
229 { 230 {
230 OS.objc_msgSend(this.id, OS.sel_insertRow_1, row); 231 OS.objc_msgSend(this.id_, OS.sel_insertRow_1, row);
231 } 232 }
232 233
233 public void insertRow_withCells_ (NSInteger row, NSArray newCells) 234 public void insertRow_withCells_ (NSInteger row, NSArray newCells)
234 { 235 {
235 OS.objc_msgSend(this.id, OS.sel_insertRow_1withCells_1, row, newCells !is null ? newCells.id : null); 236 OS.objc_msgSend(this.id_, OS.sel_insertRow_1withCells_1, row, newCells !is null ? newCells.id_ : null);
236 } 237 }
237 238
238 public NSSize intercellSpacing () 239 public NSSize intercellSpacing ()
239 { 240 {
240 NSSize result; 241 NSSize result;
241 OS.objc_msgSend_stret(result, this.id, OS.sel_intercellSpacing); 242 OS.objc_msgSend_stret(&result, this.id_, OS.sel_intercellSpacing);
242 return result; 243 return result;
243 } 244 }
244 245
245 public bool isAutoscroll () 246 public bool isAutoscroll ()
246 { 247 {
247 return OS.objc_msgSend(this.id, OS.sel_isAutoscroll) !is null; 248 return OS.objc_msgSend(this.id_, OS.sel_isAutoscroll) !is null;
248 } 249 }
249 250
250 public bool isSelectionByRect () 251 public bool isSelectionByRect ()
251 { 252 {
252 return OS.objc_msgSend(this.id, OS.sel_isSelectionByRect) !is null; 253 return OS.objc_msgSend(this.id_, OS.sel_isSelectionByRect) !is null;
253 } 254 }
254 255
255 public id keyCell () 256 public id keyCell ()
256 { 257 {
257 objc.id result = OS.objc_msgSend(this.id, OS.sel_keyCell); 258 objc.id result = OS.objc_msgSend(this.id_, OS.sel_keyCell);
258 return result !is null ? new id(result) : null; 259 return result !is null ? new id(result) : null;
259 } 260 }
260 261
261 public NSCell makeCellAtRow (NSInteger row, NSInteger col) 262 public NSCell makeCellAtRow (NSInteger row, NSInteger col)
262 { 263 {
263 objc.id result = OS.objc_msgSend(this.id, OS.sel_makeCellAtRow_1column_1, row, col); 264 objc.id result = OS.objc_msgSend(this.id_, OS.sel_makeCellAtRow_1column_1, row, col);
264 return result !is null ? new NSCell(result) : null; 265 return result !is null ? new NSCell(result) : null;
265 } 266 }
266 267
267 public NSMatrixMode mode () 268 public NSMatrixMode mode ()
268 { 269 {
269 return OS.objc_msgSend(this.id, OS.sel_mode); 270 return cast(NSMatrixMode) OS.objc_msgSend(this.id_, OS.sel_mode);
270 } 271 }
271 272
272 public void mouseDown (NSEvent theEvent) 273 public void mouseDown (NSEvent theEvent)
273 { 274 {
274 OS.objc_msgSend(this.id, OS.sel_mouseDown_1, theEvent !is null ? theEvent.id : null); 275 OS.objc_msgSend(this.id_, OS.sel_mouseDown_1, theEvent !is null ? theEvent.id_ : null);
275 } 276 }
276 277
277 public NSInteger mouseDownFlags () 278 public NSInteger mouseDownFlags ()
278 { 279 {
279 return OS.objc_msgSend(this.id, OS.sel_mouseDownFlags); 280 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_mouseDownFlags);
280 } 281 }
281 282
282 public NSInteger numberOfColumns () 283 public NSInteger numberOfColumns ()
283 { 284 {
284 return OS.objc_msgSend(this.id, OS.sel_numberOfColumns); 285 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_numberOfColumns);
285 } 286 }
286 287
287 public NSInteger numberOfRows () 288 public NSInteger numberOfRows ()
288 { 289 {
289 return OS.objc_msgSend(this.id, OS.sel_numberOfRows); 290 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_numberOfRows);
290 } 291 }
291 292
292 public bool performKeyEquivalent (NSEvent theEvent) 293 public bool performKeyEquivalent (NSEvent theEvent)
293 { 294 {
294 return OS.objc_msgSend(this.id, OS.sel_performKeyEquivalent_1, theEvent !is null ? theEvent.id : null) !is null; 295 return OS.objc_msgSend(this.id_, OS.sel_performKeyEquivalent_1, theEvent !is null ? theEvent.id_ : null) !is null;
295 } 296 }
296 297
297 public id prototype () 298 public id prototype ()
298 { 299 {
299 objc.id result = OS.objc_msgSend(this.id, OS.sel_prototype); 300 objc.id result = OS.objc_msgSend(this.id_, OS.sel_prototype);
300 return result !is null ? new id(result) : null; 301 return result !is null ? new id(result) : null;
301 } 302 }
302 303
303 public void putCell (NSCell newCell, NSInteger row, NSInteger col) 304 public void putCell (NSCell newCell, NSInteger row, NSInteger col)
304 { 305 {
305 OS.objc_msgSend(this.id, OS.sel_putCell_1atRow_1column_1, newCell !is null ? newCell.id : null, row, col); 306 OS.objc_msgSend(this.id_, OS.sel_putCell_1atRow_1column_1, newCell !is null ? newCell.id_ : null, row, col);
306 } 307 }
307 308
308 public void removeColumn (NSInteger col) 309 public void removeColumn (NSInteger col)
309 { 310 {
310 OS.objc_msgSend(this.id, OS.sel_removeColumn_1, col); 311 OS.objc_msgSend(this.id_, OS.sel_removeColumn_1, col);
311 } 312 }
312 313
313 public void removeRow (NSInteger row) 314 public void removeRow (NSInteger row)
314 { 315 {
315 OS.objc_msgSend(this.id, OS.sel_removeRow_1, row); 316 OS.objc_msgSend(this.id_, OS.sel_removeRow_1, row);
316 } 317 }
317 318
318 public void renewRows (NSInteger newRows, NSInteger newCols) 319 public void renewRows (NSInteger newRows, NSInteger newCols)
319 { 320 {
320 OS.objc_msgSend(this.id, OS.sel_renewRows_1columns_1, newRows, newCols); 321 OS.objc_msgSend(this.id_, OS.sel_renewRows_1columns_1, newRows, newCols);
321 } 322 }
322 323
323 public void resetCursorRects () 324 public void resetCursorRects ()
324 { 325 {
325 OS.objc_msgSend(this.id, OS.sel_resetCursorRects); 326 OS.objc_msgSend(this.id_, OS.sel_resetCursorRects);
326 } 327 }
327 328
328 public void scrollCellToVisibleAtRow (NSInteger row, NSInteger col) 329 public void scrollCellToVisibleAtRow (NSInteger row, NSInteger col)
329 { 330 {
330 OS.objc_msgSend(this.id, OS.sel_scrollCellToVisibleAtRow_1column_1, row, col); 331 OS.objc_msgSend(this.id_, OS.sel_scrollCellToVisibleAtRow_1column_1, row, col);
331 } 332 }
332 333
333 public void selectAll (id sender) 334 public void selectAll (id sender)
334 { 335 {
335 OS.objc_msgSend(this.id, OS.sel_selectAll_1, sender !is null ? sender.id : null); 336 OS.objc_msgSend(this.id_, OS.sel_selectAll_1, sender !is null ? sender.id_ : null);
336 } 337 }
337 338
338 public void selectCellAtRow (NSInteger row, NSInteger col) 339 public void selectCellAtRow (NSInteger row, NSInteger col)
339 { 340 {
340 OS.objc_msgSend(this.id, OS.sel_selectCellAtRow_1column_1, row, col); 341 OS.objc_msgSend(this.id_, OS.sel_selectCellAtRow_1column_1, row, col);
341 } 342 }
342 343
343 public bool selectCellWithTag (NSInteger anInt) 344 public bool selectCellWithTag (NSInteger anInt)
344 { 345 {
345 return OS.objc_msgSend(this.id, OS.sel_selectCellWithTag_1, anInt) !is null; 346 return OS.objc_msgSend(this.id_, OS.sel_selectCellWithTag_1, anInt) !is null;
346 } 347 }
347 348
348 public void selectText (id sender) 349 public void selectText (id sender)
349 { 350 {
350 OS.objc_msgSend(this.id, OS.sel_selectText_1, sender !is null ? sender.id : null); 351 OS.objc_msgSend(this.id_, OS.sel_selectText_1, sender !is null ? sender.id_ : null);
351 } 352 }
352 353
353 public id selectTextAtRow (NSInteger row, NSInteger col) 354 public id selectTextAtRow (NSInteger row, NSInteger col)
354 { 355 {
355 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectTextAtRow_1column_1, row, col); 356 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectTextAtRow_1column_1, row, col);
356 return result !is null ? new id(result) : null; 357 return result !is null ? new id(result) : null;
357 } 358 }
358 359
359 public id selectedCell () 360 public id selectedCell ()
360 { 361 {
361 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedCell); 362 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedCell);
362 return result !is null ? new id(result) : null; 363 return result !is null ? new id(result) : null;
363 } 364 }
364 365
365 public NSArray selectedCells () 366 public NSArray selectedCells ()
366 { 367 {
367 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedCells); 368 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedCells);
368 return result !is null ? new NSArray(result) : null; 369 return result !is null ? new NSArray(result) : null;
369 } 370 }
370 371
371 public NSInteger selectedColumn () 372 public NSInteger selectedColumn ()
372 { 373 {
373 return OS.objc_msgSend(this.id, OS.sel_selectedColumn); 374 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_selectedColumn);
374 } 375 }
375 376
376 public NSInteger selectedRow () 377 public NSInteger selectedRow ()
377 { 378 {
378 return OS.objc_msgSend(this.id, OS.sel_selectedRow); 379 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_selectedRow);
379 } 380 }
380 381
381 public bool sendAction () 382 public bool sendAction ()
382 { 383 {
383 return OS.objc_msgSend(this.id, OS.sel_sendAction) !is null; 384 return OS.objc_msgSend(this.id_, OS.sel_sendAction) !is null;
384 } 385 }
385 386
386 public void sendAction_to_forAllCells_ (objc.SEL aSelector, id anObject, bool flag) 387 public void sendAction_to_forAllCells_ (objc.SEL aSelector, id anObject, bool flag)
387 { 388 {
388 OS.objc_msgSend(this.id, OS.sel_sendAction_1to_1forAllCells_1, aSelector, anObject !is null ? anObject.id : null, flag); 389 OS.objc_msgSend(this.id_, OS.sel_sendAction_1to_1forAllCells_1, aSelector, anObject !is null ? anObject.id_ : null, flag);
389 } 390 }
390 391
391 public void sendDoubleAction () 392 public void sendDoubleAction ()
392 { 393 {
393 OS.objc_msgSend(this.id, OS.sel_sendDoubleAction); 394 OS.objc_msgSend(this.id_, OS.sel_sendDoubleAction);
394 } 395 }
395 396
396 public void setAllowsEmptySelection (bool flag) 397 public void setAllowsEmptySelection (bool flag)
397 { 398 {
398 OS.objc_msgSend(this.id, OS.sel_setAllowsEmptySelection_1, flag); 399 OS.objc_msgSend(this.id_, OS.sel_setAllowsEmptySelection_1, flag);
399 } 400 }
400 401
401 public void setAutoscroll (bool flag) 402 public void setAutoscroll (bool flag)
402 { 403 {
403 OS.objc_msgSend(this.id, OS.sel_setAutoscroll_1, flag); 404 OS.objc_msgSend(this.id_, OS.sel_setAutoscroll_1, flag);
404 } 405 }
405 406
406 public void setAutosizesCells (bool flag) 407 public void setAutosizesCells (bool flag)
407 { 408 {
408 OS.objc_msgSend(this.id, OS.sel_setAutosizesCells_1, flag); 409 OS.objc_msgSend(this.id_, OS.sel_setAutosizesCells_1, flag);
409 } 410 }
410 411
411 public void setBackgroundColor (NSColor color) 412 public void setBackgroundColor (NSColor color)
412 { 413 {
413 OS.objc_msgSend(this.id, OS.sel_setBackgroundColor_1, color !is null ? color.id : null); 414 OS.objc_msgSend(this.id_, OS.sel_setBackgroundColor_1, color !is null ? color.id_ : null);
414 } 415 }
415 416
416 public void setCellBackgroundColor (NSColor color) 417 public void setCellBackgroundColor (NSColor color)
417 { 418 {
418 OS.objc_msgSend(this.id, OS.sel_setCellBackgroundColor_1, color !is null ? color.id : null); 419 OS.objc_msgSend(this.id_, OS.sel_setCellBackgroundColor_1, color !is null ? color.id_ : null);
419 } 420 }
420 421
421 //public void setCellClass(objc.Class factoryId) { 422 //public void setCellClass(objc.Class factoryId) {
422 // OS.objc_msgSend(this.id, OS.sel_setCellClass_1, factoryId); 423 // OS.objc_msgSend(this.id_, OS.sel_setCellClass_1, factoryId);
423 //} 424 //}
424 425
425 public void setCellSize (NSSize aSize) 426 public void setCellSize (NSSize aSize)
426 { 427 {
427 OS.objc_msgSend(this.id, OS.sel_setCellSize_1, aSize); 428 OS.objc_msgSend(this.id_, OS.sel_setCellSize_1, aSize);
428 } 429 }
429 430
430 public void setDelegate (id anObject) 431 public void setDelegate (id anObject)
431 { 432 {
432 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, anObject !is null ? anObject.id : null); 433 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, anObject !is null ? anObject.id_ : null);
433 } 434 }
434 435
435 public void setDoubleAction (objc.SEL aSelector) 436 public void setDoubleAction (objc.SEL aSelector)
436 { 437 {
437 OS.objc_msgSend(this.id, OS.sel_setDoubleAction_1, aSelector); 438 OS.objc_msgSend(this.id_, OS.sel_setDoubleAction_1, aSelector);
438 } 439 }
439 440
440 public void setDrawsBackground (bool flag) 441 public void setDrawsBackground (bool flag)
441 { 442 {
442 OS.objc_msgSend(this.id, OS.sel_setDrawsBackground_1, flag); 443 OS.objc_msgSend(this.id_, OS.sel_setDrawsBackground_1, flag);
443 } 444 }
444 445
445 public void setDrawsCellBackground (bool flag) 446 public void setDrawsCellBackground (bool flag)
446 { 447 {
447 OS.objc_msgSend(this.id, OS.sel_setDrawsCellBackground_1, flag); 448 OS.objc_msgSend(this.id_, OS.sel_setDrawsCellBackground_1, flag);
448 } 449 }
449 450
450 public void setIntercellSpacing (NSSize aSize) 451 public void setIntercellSpacing (NSSize aSize)
451 { 452 {
452 OS.objc_msgSend(this.id, OS.sel_setIntercellSpacing_1, aSize); 453 OS.objc_msgSend(this.id_, OS.sel_setIntercellSpacing_1, aSize);
453 } 454 }
454 455
455 public void setKeyCell (NSCell keyCell) 456 public void setKeyCell (NSCell keyCell)
456 { 457 {
457 OS.objc_msgSend(this.id, OS.sel_setKeyCell_1, keyCell !is null ? keyCell.id : null); 458 OS.objc_msgSend(this.id_, OS.sel_setKeyCell_1, keyCell !is null ? keyCell.id_ : null);
458 } 459 }
459 460
460 public void setMode (NSMatrixMode aMode) 461 public void setMode (NSMatrixMode aMode)
461 { 462 {
462 OS.objc_msgSend(this.id, OS.sel_setMode_1, aMode); 463 OS.objc_msgSend(this.id_, OS.sel_setMode_1, aMode);
463 } 464 }
464 465
465 public void setPrototype (NSCell aCell) 466 public void setPrototype (NSCell aCell)
466 { 467 {
467 OS.objc_msgSend(this.id, OS.sel_setPrototype_1, aCell !is null ? aCell.id : null); 468 OS.objc_msgSend(this.id_, OS.sel_setPrototype_1, aCell !is null ? aCell.id_ : null);
468 } 469 }
469 470
470 public void setScrollable (bool flag) 471 public void setScrollable (bool flag)
471 { 472 {
472 OS.objc_msgSend(this.id, OS.sel_setScrollable_1, flag); 473 OS.objc_msgSend(this.id_, OS.sel_setScrollable_1, flag);
473 } 474 }
474 475
475 public void setSelectionByRect (bool flag) 476 public void setSelectionByRect (bool flag)
476 { 477 {
477 OS.objc_msgSend(this.id, OS.sel_setSelectionByRect_1, flag); 478 OS.objc_msgSend(this.id_, OS.sel_setSelectionByRect_1, flag);
478 } 479 }
479 480
480 public void setSelectionFrom (NSInteger startPos, NSInteger endPos, NSInteger anchorPos, bool lit) 481 public void setSelectionFrom (NSInteger startPos, NSInteger endPos, NSInteger anchorPos, bool lit)
481 { 482 {
482 OS.objc_msgSend(this.id, OS.sel_setSelectionFrom_1to_1anchor_1highlight_1, startPos, endPos, anchorPos, lit); 483 OS.objc_msgSend(this.id_, OS.sel_setSelectionFrom_1to_1anchor_1highlight_1, startPos, endPos, anchorPos, lit);
483 } 484 }
484 485
485 public void setState (NSInteger value, NSInteger row, NSInteger col) 486 public void setState (NSInteger value, NSInteger row, NSInteger col)
486 { 487 {
487 OS.objc_msgSend(this.id, OS.sel_setState_1atRow_1column_1, value, row, col); 488 OS.objc_msgSend(this.id_, OS.sel_setState_1atRow_1column_1, value, row, col);
488 } 489 }
489 490
490 public void setTabKeyTraversesCells (bool flag) 491 public void setTabKeyTraversesCells (bool flag)
491 { 492 {
492 OS.objc_msgSend(this.id, OS.sel_setTabKeyTraversesCells_1, flag); 493 OS.objc_msgSend(this.id_, OS.sel_setTabKeyTraversesCells_1, flag);
493 } 494 }
494 495
495 public void setToolTip (NSString toolTipString, NSCell cell) 496 public void setToolTip (NSString toolTipString, NSCell cell)
496 { 497 {
497 OS.objc_msgSend(this.id, OS.sel_setToolTip_1forCell_1, toolTipString !is null ? toolTipString.id : null, cell !is null ? cell.id : null); 498 OS.objc_msgSend(this.id_, OS.sel_setToolTip_1forCell_1, toolTipString !is null ? toolTipString.id_ : null, cell !is null ? cell.id_ : null);
498 } 499 }
499 500
500 public void setValidateSize (bool flag) 501 public void setValidateSize (bool flag)
501 { 502 {
502 OS.objc_msgSend(this.id, OS.sel_setValidateSize_1, flag); 503 OS.objc_msgSend(this.id_, OS.sel_setValidateSize_1, flag);
503 } 504 }
504 505
505 public void sizeToCells () 506 public void sizeToCells ()
506 { 507 {
507 OS.objc_msgSend(this.id, OS.sel_sizeToCells); 508 OS.objc_msgSend(this.id_, OS.sel_sizeToCells);
508 } 509 }
509 510
510 public void sortUsingFunction (int* function(objc.id, objc.id, void*) compare, void* context) 511 public void sortUsingFunction (int* function(objc.id, objc.id, void*) compare, void* context)
511 { 512 {
512 OS.objc_msgSend(this.id, OS.sel_sortUsingFunction_1context_1, compare, context); 513 OS.objc_msgSend(this.id_, OS.sel_sortUsingFunction_1context_1, compare, context);
513 } 514 }
514 515
515 public void sortUsingSelector (objc.SEL comparator) 516 public void sortUsingSelector (objc.SEL comparator)
516 { 517 {
517 OS.objc_msgSend(this.id, OS.sel_sortUsingSelector_1, comparator); 518 OS.objc_msgSend(this.id_, OS.sel_sortUsingSelector_1, comparator);
518 } 519 }
519 520
520 public bool tabKeyTraversesCells () 521 public bool tabKeyTraversesCells ()
521 { 522 {
522 return OS.objc_msgSend(this.id, OS.sel_tabKeyTraversesCells) !is null; 523 return OS.objc_msgSend(this.id_, OS.sel_tabKeyTraversesCells) !is null;
523 } 524 }
524 525
525 public void textDidBeginEditing (NSNotification notification) 526 public void textDidBeginEditing (NSNotification notification)
526 { 527 {
527 OS.objc_msgSend(this.id, OS.sel_textDidBeginEditing_1, notification !is null ? notification.id : null); 528 OS.objc_msgSend(this.id_, OS.sel_textDidBeginEditing_1, notification !is null ? notification.id_ : null);
528 } 529 }
529 530
530 public void textDidChange (NSNotification notification) 531 public void textDidChange (NSNotification notification)
531 { 532 {
532 OS.objc_msgSend(this.id, OS.sel_textDidChange_1, notification !is null ? notification.id : null); 533 OS.objc_msgSend(this.id_, OS.sel_textDidChange_1, notification !is null ? notification.id_ : null);
533 } 534 }
534 535
535 public void textDidEndEditing (NSNotification notification) 536 public void textDidEndEditing (NSNotification notification)
536 { 537 {
537 OS.objc_msgSend(this.id, OS.sel_textDidEndEditing_1, notification !is null ? notification.id : null); 538 OS.objc_msgSend(this.id_, OS.sel_textDidEndEditing_1, notification !is null ? notification.id_ : null);
538 } 539 }
539 540
540 public bool textShouldBeginEditing (NSText textObject) 541 public bool textShouldBeginEditing (NSText textObject)
541 { 542 {
542 return OS.objc_msgSend(this.id, OS.sel_textShouldBeginEditing_1, textObject !is null ? textObject.id : null) !is null; 543 return OS.objc_msgSend(this.id_, OS.sel_textShouldBeginEditing_1, textObject !is null ? textObject.id_ : null) !is null;
543 } 544 }
544 545
545 public bool textShouldEndEditing (NSText textObject) 546 public bool textShouldEndEditing (NSText textObject)
546 { 547 {
547 return OS.objc_msgSend(this.id, OS.sel_textShouldEndEditing_1, textObject !is null ? textObject.id : null) !is null; 548 return OS.objc_msgSend(this.id_, OS.sel_textShouldEndEditing_1, textObject !is null ? textObject.id_ : null) !is null;
548 } 549 }
549 550
550 public NSString toolTipForCell (NSCell cell) 551 public NSString toolTipForCell (NSCell cell)
551 { 552 {
552 objc.id result = OS.objc_msgSend(this.id, OS.sel_toolTipForCell_1, cell !is null ? cell.id : null); 553 objc.id result = OS.objc_msgSend(this.id_, OS.sel_toolTipForCell_1, cell !is null ? cell.id_ : null);
553 return result !is null ? new NSString(result) : null; 554 return result !is null ? new NSString(result) : null;
554 } 555 }
555 556
556 } 557 }