1 // This file was auto-generated at one time, but is hardcoded here as part of the fix 2 // for the AtkTable interface; see https://bugzilla.novell.com/show_bug.cgi?id=512477 3 // The generated code may have been modified as part of this fix; see atk-table.patch 4 5 namespace Atk { 6 7 using System; 8 using System.Runtime.InteropServices; 9 10 #region Autogenerated code 11 public class TableAdapter : GLib.GInterfaceAdapter, Atk.Table { 12 13 static TableIface iface; 14 15 struct TableIface { 16 public IntPtr gtype; 17 public IntPtr itype; 18 19 public RefAtDelegate ref_at; 20 public GetIndexAtDelegate get_index_at; 21 public GetColumnAtIndexDelegate get_column_at_index; 22 public GetRowAtIndexDelegate get_row_at_index; 23 public GetNColumnsDelegate get_n_columns; 24 public GetNRowsDelegate get_n_rows; 25 public GetColumnExtentAtDelegate get_column_extent_at; 26 public GetRowExtentAtDelegate get_row_extent_at; 27 public GetCaptionDelegate get_caption; 28 public GetColumnDescriptionDelegate get_column_description; 29 public GetColumnHeaderDelegate get_column_header; 30 public GetRowDescriptionDelegate get_row_description; 31 public GetRowHeaderDelegate get_row_header; 32 public GetSummaryDelegate get_summary; 33 public SetCaptionDelegate set_caption; 34 public SetColumnDescriptionDelegate set_column_description; 35 public SetColumnHeaderDelegate set_column_header; 36 public SetRowDescriptionDelegate set_row_description; 37 public SetRowHeaderDelegate set_row_header; 38 public SetSummaryDelegate set_summary; 39 public GetSelectedColumnsDelegate get_selected_columns; 40 public GetSelectedRowsDelegate get_selected_rows; 41 public IsColumnSelectedDelegate is_column_selected; 42 public IsRowSelectedDelegate is_row_selected; 43 public IsSelectedDelegate is_selected; 44 public AddRowSelectionDelegate add_row_selection; 45 public RemoveRowSelectionDelegate remove_row_selection; 46 public AddColumnSelectionDelegate add_column_selection; 47 public RemoveColumnSelectionDelegate remove_column_selection; 48 public IntPtr row_inserted; 49 public IntPtr column_inserted; 50 public IntPtr row_deleted; 51 public IntPtr column_deleted; 52 public IntPtr row_reordered; 53 public IntPtr column_reordered; 54 public IntPtr model_changed; 55 } 56 TableAdapter()57 static TableAdapter () 58 { 59 GLib.GType.Register (_gtype, typeof(TableAdapter)); 60 iface.ref_at = new RefAtDelegate (RefAtCallback); 61 iface.get_index_at = new GetIndexAtDelegate (GetIndexAtCallback); 62 iface.get_column_at_index = new GetColumnAtIndexDelegate (GetColumnAtIndexCallback); 63 iface.get_row_at_index = new GetRowAtIndexDelegate (GetRowAtIndexCallback); 64 iface.get_n_columns = new GetNColumnsDelegate (GetNColumnsCallback); 65 iface.get_n_rows = new GetNRowsDelegate (GetNRowsCallback); 66 iface.get_column_extent_at = new GetColumnExtentAtDelegate (GetColumnExtentAtCallback); 67 iface.get_row_extent_at = new GetRowExtentAtDelegate (GetRowExtentAtCallback); 68 iface.get_caption = new GetCaptionDelegate (GetCaptionCallback); 69 iface.get_column_description = new GetColumnDescriptionDelegate (GetColumnDescriptionCallback); 70 iface.get_column_header = new GetColumnHeaderDelegate (GetColumnHeaderCallback); 71 iface.get_row_description = new GetRowDescriptionDelegate (GetRowDescriptionCallback); 72 iface.get_row_header = new GetRowHeaderDelegate (GetRowHeaderCallback); 73 iface.get_summary = new GetSummaryDelegate (GetSummaryCallback); 74 iface.set_caption = new SetCaptionDelegate (SetCaptionCallback); 75 iface.set_column_description = new SetColumnDescriptionDelegate (SetColumnDescriptionCallback); 76 iface.set_column_header = new SetColumnHeaderDelegate (SetColumnHeaderCallback); 77 iface.set_row_description = new SetRowDescriptionDelegate (SetRowDescriptionCallback); 78 iface.set_row_header = new SetRowHeaderDelegate (SetRowHeaderCallback); 79 iface.set_summary = new SetSummaryDelegate (SetSummaryCallback); 80 iface.get_selected_columns = new GetSelectedColumnsDelegate (GetSelectedColumnsCallback); 81 iface.get_selected_rows = new GetSelectedRowsDelegate (GetSelectedRowsCallback); 82 iface.is_column_selected = new IsColumnSelectedDelegate (IsColumnSelectedCallback); 83 iface.is_row_selected = new IsRowSelectedDelegate (IsRowSelectedCallback); 84 iface.is_selected = new IsSelectedDelegate (IsSelectedCallback); 85 iface.add_row_selection = new AddRowSelectionDelegate (AddRowSelectionCallback); 86 iface.remove_row_selection = new RemoveRowSelectionDelegate (RemoveRowSelectionCallback); 87 iface.add_column_selection = new AddColumnSelectionDelegate (AddColumnSelectionCallback); 88 iface.remove_column_selection = new RemoveColumnSelectionDelegate (RemoveColumnSelectionCallback); 89 } 90 91 92 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] RefAtDelegate(IntPtr table, int row, int column)93 delegate IntPtr RefAtDelegate (IntPtr table, int row, int column); 94 RefAtCallback(IntPtr table, int row, int column)95 static IntPtr RefAtCallback (IntPtr table, int row, int column) 96 { 97 try { 98 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 99 Atk.Object __result = __obj.RefAt (row, column); 100 return __result == null ? IntPtr.Zero : __result.OwnedHandle; 101 } catch (Exception e) { 102 GLib.ExceptionManager.RaiseUnhandledException (e, true); 103 // NOTREACHED: above call does not return. 104 throw e; 105 } 106 } 107 108 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetIndexAtDelegate(IntPtr table, int row, int column)109 delegate int GetIndexAtDelegate (IntPtr table, int row, int column); 110 GetIndexAtCallback(IntPtr table, int row, int column)111 static int GetIndexAtCallback (IntPtr table, int row, int column) 112 { 113 try { 114 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 115 int __result = __obj.GetIndexAt (row, column); 116 return __result; 117 } catch (Exception e) { 118 GLib.ExceptionManager.RaiseUnhandledException (e, true); 119 // NOTREACHED: above call does not return. 120 throw e; 121 } 122 } 123 124 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetColumnAtIndexDelegate(IntPtr table, int index_)125 delegate int GetColumnAtIndexDelegate (IntPtr table, int index_); 126 GetColumnAtIndexCallback(IntPtr table, int index_)127 static int GetColumnAtIndexCallback (IntPtr table, int index_) 128 { 129 try { 130 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 131 int __result = __obj.GetColumnAtIndex (index_); 132 return __result; 133 } catch (Exception e) { 134 GLib.ExceptionManager.RaiseUnhandledException (e, true); 135 // NOTREACHED: above call does not return. 136 throw e; 137 } 138 } 139 140 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetRowAtIndexDelegate(IntPtr table, int index_)141 delegate int GetRowAtIndexDelegate (IntPtr table, int index_); 142 GetRowAtIndexCallback(IntPtr table, int index_)143 static int GetRowAtIndexCallback (IntPtr table, int index_) 144 { 145 try { 146 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 147 int __result = __obj.GetRowAtIndex (index_); 148 return __result; 149 } catch (Exception e) { 150 GLib.ExceptionManager.RaiseUnhandledException (e, true); 151 // NOTREACHED: above call does not return. 152 throw e; 153 } 154 } 155 156 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetNColumnsDelegate(IntPtr table)157 delegate int GetNColumnsDelegate (IntPtr table); 158 GetNColumnsCallback(IntPtr table)159 static int GetNColumnsCallback (IntPtr table) 160 { 161 try { 162 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 163 int __result = __obj.NColumns; 164 return __result; 165 } catch (Exception e) { 166 GLib.ExceptionManager.RaiseUnhandledException (e, true); 167 // NOTREACHED: above call does not return. 168 throw e; 169 } 170 } 171 172 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetNRowsDelegate(IntPtr table)173 delegate int GetNRowsDelegate (IntPtr table); 174 GetNRowsCallback(IntPtr table)175 static int GetNRowsCallback (IntPtr table) 176 { 177 try { 178 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 179 int __result = __obj.NRows; 180 return __result; 181 } catch (Exception e) { 182 GLib.ExceptionManager.RaiseUnhandledException (e, true); 183 // NOTREACHED: above call does not return. 184 throw e; 185 } 186 } 187 188 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetColumnExtentAtDelegate(IntPtr table, int row, int column)189 delegate int GetColumnExtentAtDelegate (IntPtr table, int row, int column); 190 GetColumnExtentAtCallback(IntPtr table, int row, int column)191 static int GetColumnExtentAtCallback (IntPtr table, int row, int column) 192 { 193 try { 194 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 195 int __result = __obj.GetColumnExtentAt (row, column); 196 return __result; 197 } catch (Exception e) { 198 GLib.ExceptionManager.RaiseUnhandledException (e, true); 199 // NOTREACHED: above call does not return. 200 throw e; 201 } 202 } 203 204 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetRowExtentAtDelegate(IntPtr table, int row, int column)205 delegate int GetRowExtentAtDelegate (IntPtr table, int row, int column); 206 GetRowExtentAtCallback(IntPtr table, int row, int column)207 static int GetRowExtentAtCallback (IntPtr table, int row, int column) 208 { 209 try { 210 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 211 int __result = __obj.GetRowExtentAt (row, column); 212 return __result; 213 } catch (Exception e) { 214 GLib.ExceptionManager.RaiseUnhandledException (e, true); 215 // NOTREACHED: above call does not return. 216 throw e; 217 } 218 } 219 220 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetCaptionDelegate(IntPtr table)221 delegate IntPtr GetCaptionDelegate (IntPtr table); 222 GetCaptionCallback(IntPtr table)223 static IntPtr GetCaptionCallback (IntPtr table) 224 { 225 try { 226 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 227 Atk.Object __result = __obj.Caption; 228 return __result == null ? IntPtr.Zero : __result.Handle; 229 } catch (Exception e) { 230 GLib.ExceptionManager.RaiseUnhandledException (e, true); 231 // NOTREACHED: above call does not return. 232 throw e; 233 } 234 } 235 236 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetColumnDescriptionDelegate(IntPtr table, int column)237 delegate IntPtr GetColumnDescriptionDelegate (IntPtr table, int column); 238 GetColumnDescriptionCallback(IntPtr table, int column)239 static IntPtr GetColumnDescriptionCallback (IntPtr table, int column) 240 { 241 try { 242 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 243 string __result = __obj.GetColumnDescription (column); 244 return GLib.Marshaller.StringToPtrGStrdup (__result); 245 } catch (Exception e) { 246 GLib.ExceptionManager.RaiseUnhandledException (e, true); 247 // NOTREACHED: above call does not return. 248 throw e; 249 } 250 } 251 252 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetColumnHeaderDelegate(IntPtr table, int column)253 delegate IntPtr GetColumnHeaderDelegate (IntPtr table, int column); 254 GetColumnHeaderCallback(IntPtr table, int column)255 static IntPtr GetColumnHeaderCallback (IntPtr table, int column) 256 { 257 try { 258 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 259 Atk.Object __result = __obj.GetColumnHeader (column); 260 return __result == null ? IntPtr.Zero : __result.Handle; 261 } catch (Exception e) { 262 GLib.ExceptionManager.RaiseUnhandledException (e, true); 263 // NOTREACHED: above call does not return. 264 throw e; 265 } 266 } 267 268 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetRowDescriptionDelegate(IntPtr table, int row)269 delegate IntPtr GetRowDescriptionDelegate (IntPtr table, int row); 270 GetRowDescriptionCallback(IntPtr table, int row)271 static IntPtr GetRowDescriptionCallback (IntPtr table, int row) 272 { 273 try { 274 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 275 string __result = __obj.GetRowDescription (row); 276 return GLib.Marshaller.StringToPtrGStrdup (__result); 277 } catch (Exception e) { 278 GLib.ExceptionManager.RaiseUnhandledException (e, true); 279 // NOTREACHED: above call does not return. 280 throw e; 281 } 282 } 283 284 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetRowHeaderDelegate(IntPtr table, int row)285 delegate IntPtr GetRowHeaderDelegate (IntPtr table, int row); 286 GetRowHeaderCallback(IntPtr table, int row)287 static IntPtr GetRowHeaderCallback (IntPtr table, int row) 288 { 289 try { 290 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 291 Atk.Object __result = __obj.GetRowHeader (row); 292 return __result == null ? IntPtr.Zero : __result.Handle; 293 } catch (Exception e) { 294 GLib.ExceptionManager.RaiseUnhandledException (e, true); 295 // NOTREACHED: above call does not return. 296 throw e; 297 } 298 } 299 300 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetSummaryDelegate(IntPtr table)301 delegate IntPtr GetSummaryDelegate (IntPtr table); 302 GetSummaryCallback(IntPtr table)303 static IntPtr GetSummaryCallback (IntPtr table) 304 { 305 try { 306 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 307 Atk.Object __result = __obj.Summary; 308 return __result == null ? IntPtr.Zero : __result.Handle; 309 } catch (Exception e) { 310 GLib.ExceptionManager.RaiseUnhandledException (e, true); 311 // NOTREACHED: above call does not return. 312 throw e; 313 } 314 } 315 316 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] SetCaptionDelegate(IntPtr table, IntPtr caption)317 delegate void SetCaptionDelegate (IntPtr table, IntPtr caption); 318 SetCaptionCallback(IntPtr table, IntPtr caption)319 static void SetCaptionCallback (IntPtr table, IntPtr caption) 320 { 321 try { 322 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 323 __obj.Caption = GLib.Object.GetObject(caption) as Atk.Object; 324 } catch (Exception e) { 325 GLib.ExceptionManager.RaiseUnhandledException (e, false); 326 } 327 } 328 329 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] SetColumnDescriptionDelegate(IntPtr table, int column, IntPtr description)330 delegate void SetColumnDescriptionDelegate (IntPtr table, int column, IntPtr description); 331 SetColumnDescriptionCallback(IntPtr table, int column, IntPtr description)332 static void SetColumnDescriptionCallback (IntPtr table, int column, IntPtr description) 333 { 334 try { 335 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 336 __obj.SetColumnDescription (column, GLib.Marshaller.Utf8PtrToString (description)); 337 } catch (Exception e) { 338 GLib.ExceptionManager.RaiseUnhandledException (e, false); 339 } 340 } 341 342 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] SetColumnHeaderDelegate(IntPtr table, int column, IntPtr header)343 delegate void SetColumnHeaderDelegate (IntPtr table, int column, IntPtr header); 344 SetColumnHeaderCallback(IntPtr table, int column, IntPtr header)345 static void SetColumnHeaderCallback (IntPtr table, int column, IntPtr header) 346 { 347 try { 348 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 349 __obj.SetColumnHeader (column, GLib.Object.GetObject(header) as Atk.Object); 350 } catch (Exception e) { 351 GLib.ExceptionManager.RaiseUnhandledException (e, false); 352 } 353 } 354 355 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] SetRowDescriptionDelegate(IntPtr table, int row, IntPtr description)356 delegate void SetRowDescriptionDelegate (IntPtr table, int row, IntPtr description); 357 SetRowDescriptionCallback(IntPtr table, int row, IntPtr description)358 static void SetRowDescriptionCallback (IntPtr table, int row, IntPtr description) 359 { 360 try { 361 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 362 __obj.SetRowDescription (row, GLib.Marshaller.Utf8PtrToString (description)); 363 } catch (Exception e) { 364 GLib.ExceptionManager.RaiseUnhandledException (e, false); 365 } 366 } 367 368 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] SetRowHeaderDelegate(IntPtr table, int row, IntPtr header)369 delegate void SetRowHeaderDelegate (IntPtr table, int row, IntPtr header); 370 SetRowHeaderCallback(IntPtr table, int row, IntPtr header)371 static void SetRowHeaderCallback (IntPtr table, int row, IntPtr header) 372 { 373 try { 374 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 375 __obj.SetRowHeader (row, GLib.Object.GetObject(header) as Atk.Object); 376 } catch (Exception e) { 377 GLib.ExceptionManager.RaiseUnhandledException (e, false); 378 } 379 } 380 381 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] SetSummaryDelegate(IntPtr table, IntPtr accessible)382 delegate void SetSummaryDelegate (IntPtr table, IntPtr accessible); 383 SetSummaryCallback(IntPtr table, IntPtr accessible)384 static void SetSummaryCallback (IntPtr table, IntPtr accessible) 385 { 386 try { 387 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 388 __obj.Summary = GLib.Object.GetObject(accessible) as Atk.Object; 389 } catch (Exception e) { 390 GLib.ExceptionManager.RaiseUnhandledException (e, false); 391 } 392 } 393 394 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetSelectedColumnsDelegate(IntPtr table, out IntPtr selected_ptr)395 delegate int GetSelectedColumnsDelegate (IntPtr table, out IntPtr selected_ptr); 396 GetSelectedColumnsCallback(IntPtr table, out IntPtr selected_ptr)397 static int GetSelectedColumnsCallback (IntPtr table, out IntPtr selected_ptr) 398 { 399 try { 400 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 401 int [] selected = __obj.SelectedColumns; 402 if (selected.Length > 0) { 403 selected_ptr = GLib.Marshaller.Malloc ((ulong)(sizeof(int) * selected.Length)); 404 Marshal.Copy (selected, 0, selected_ptr, selected.Length); 405 } else { 406 selected_ptr = IntPtr.Zero; 407 } 408 return selected.Length; 409 } catch (Exception e) { 410 GLib.ExceptionManager.RaiseUnhandledException (e, true); 411 // NOTREACHED: above call does not return. 412 throw e; 413 } 414 } 415 416 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] GetSelectedRowsDelegate(IntPtr table, out IntPtr selected)417 delegate int GetSelectedRowsDelegate (IntPtr table, out IntPtr selected); 418 GetSelectedRowsCallback(IntPtr table, out IntPtr selected_ptr)419 static int GetSelectedRowsCallback (IntPtr table, out IntPtr selected_ptr) 420 { 421 try { 422 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 423 int [] selected = __obj.SelectedRows; 424 if (selected.Length > 0) { 425 selected_ptr = GLib.Marshaller.Malloc ((ulong)(sizeof (int) * selected.Length)); 426 Marshal.Copy (selected, 0, selected_ptr, selected.Length); 427 } else { 428 selected_ptr = IntPtr.Zero; 429 } 430 return selected.Length; 431 } catch (Exception e) { 432 GLib.ExceptionManager.RaiseUnhandledException (e, true); 433 // NOTREACHED: above call does not return. 434 throw e; 435 } 436 } 437 438 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] IsColumnSelectedDelegate(IntPtr table, int column)439 delegate bool IsColumnSelectedDelegate (IntPtr table, int column); 440 IsColumnSelectedCallback(IntPtr table, int column)441 static bool IsColumnSelectedCallback (IntPtr table, int column) 442 { 443 try { 444 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 445 bool __result = __obj.IsColumnSelected (column); 446 return __result; 447 } catch (Exception e) { 448 GLib.ExceptionManager.RaiseUnhandledException (e, true); 449 // NOTREACHED: above call does not return. 450 throw e; 451 } 452 } 453 454 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] IsRowSelectedDelegate(IntPtr table, int row)455 delegate bool IsRowSelectedDelegate (IntPtr table, int row); 456 IsRowSelectedCallback(IntPtr table, int row)457 static bool IsRowSelectedCallback (IntPtr table, int row) 458 { 459 try { 460 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 461 bool __result = __obj.IsRowSelected (row); 462 return __result; 463 } catch (Exception e) { 464 GLib.ExceptionManager.RaiseUnhandledException (e, true); 465 // NOTREACHED: above call does not return. 466 throw e; 467 } 468 } 469 470 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] IsSelectedDelegate(IntPtr table, int row, int column)471 delegate bool IsSelectedDelegate (IntPtr table, int row, int column); 472 IsSelectedCallback(IntPtr table, int row, int column)473 static bool IsSelectedCallback (IntPtr table, int row, int column) 474 { 475 try { 476 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 477 bool __result = __obj.IsSelected (row, column); 478 return __result; 479 } catch (Exception e) { 480 GLib.ExceptionManager.RaiseUnhandledException (e, true); 481 // NOTREACHED: above call does not return. 482 throw e; 483 } 484 } 485 486 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] AddRowSelectionDelegate(IntPtr table, int row)487 delegate bool AddRowSelectionDelegate (IntPtr table, int row); 488 AddRowSelectionCallback(IntPtr table, int row)489 static bool AddRowSelectionCallback (IntPtr table, int row) 490 { 491 try { 492 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 493 bool __result = __obj.AddRowSelection (row); 494 return __result; 495 } catch (Exception e) { 496 GLib.ExceptionManager.RaiseUnhandledException (e, true); 497 // NOTREACHED: above call does not return. 498 throw e; 499 } 500 } 501 502 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] RemoveRowSelectionDelegate(IntPtr table, int row)503 delegate bool RemoveRowSelectionDelegate (IntPtr table, int row); 504 RemoveRowSelectionCallback(IntPtr table, int row)505 static bool RemoveRowSelectionCallback (IntPtr table, int row) 506 { 507 try { 508 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 509 bool __result = __obj.RemoveRowSelection (row); 510 return __result; 511 } catch (Exception e) { 512 GLib.ExceptionManager.RaiseUnhandledException (e, true); 513 // NOTREACHED: above call does not return. 514 throw e; 515 } 516 } 517 518 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] AddColumnSelectionDelegate(IntPtr table, int column)519 delegate bool AddColumnSelectionDelegate (IntPtr table, int column); 520 AddColumnSelectionCallback(IntPtr table, int column)521 static bool AddColumnSelectionCallback (IntPtr table, int column) 522 { 523 try { 524 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 525 bool __result = __obj.AddColumnSelection (column); 526 return __result; 527 } catch (Exception e) { 528 GLib.ExceptionManager.RaiseUnhandledException (e, true); 529 // NOTREACHED: above call does not return. 530 throw e; 531 } 532 } 533 534 [UnmanagedFunctionPointer (CallingConvention.Cdecl)] RemoveColumnSelectionDelegate(IntPtr table, int column)535 delegate bool RemoveColumnSelectionDelegate (IntPtr table, int column); 536 RemoveColumnSelectionCallback(IntPtr table, int column)537 static bool RemoveColumnSelectionCallback (IntPtr table, int column) 538 { 539 try { 540 Atk.TableImplementor __obj = GLib.Object.GetObject (table, false) as Atk.TableImplementor; 541 bool __result = __obj.RemoveColumnSelection (column); 542 return __result; 543 } catch (Exception e) { 544 GLib.ExceptionManager.RaiseUnhandledException (e, true); 545 // NOTREACHED: above call does not return. 546 throw e; 547 } 548 } Initialize(IntPtr ifaceptr, IntPtr data)549 static void Initialize (IntPtr ifaceptr, IntPtr data) 550 { 551 TableIface native_iface = Marshal.PtrToStructure<TableIface> (ifaceptr); 552 native_iface.ref_at = iface.ref_at; 553 native_iface.get_index_at = iface.get_index_at; 554 native_iface.get_column_at_index = iface.get_column_at_index; 555 native_iface.get_row_at_index = iface.get_row_at_index; 556 native_iface.get_n_columns = iface.get_n_columns; 557 native_iface.get_n_rows = iface.get_n_rows; 558 native_iface.get_column_extent_at = iface.get_column_extent_at; 559 native_iface.get_row_extent_at = iface.get_row_extent_at; 560 native_iface.get_caption = iface.get_caption; 561 native_iface.get_column_description = iface.get_column_description; 562 native_iface.get_column_header = iface.get_column_header; 563 native_iface.get_row_description = iface.get_row_description; 564 native_iface.get_row_header = iface.get_row_header; 565 native_iface.get_summary = iface.get_summary; 566 native_iface.set_caption = iface.set_caption; 567 native_iface.set_column_description = iface.set_column_description; 568 native_iface.set_column_header = iface.set_column_header; 569 native_iface.set_row_description = iface.set_row_description; 570 native_iface.set_row_header = iface.set_row_header; 571 native_iface.set_summary = iface.set_summary; 572 native_iface.get_selected_columns = iface.get_selected_columns; 573 native_iface.get_selected_rows = iface.get_selected_rows; 574 native_iface.is_column_selected = iface.is_column_selected; 575 native_iface.is_row_selected = iface.is_row_selected; 576 native_iface.is_selected = iface.is_selected; 577 native_iface.add_row_selection = iface.add_row_selection; 578 native_iface.remove_row_selection = iface.remove_row_selection; 579 native_iface.add_column_selection = iface.add_column_selection; 580 native_iface.remove_column_selection = iface.remove_column_selection; 581 Marshal.StructureToPtr (native_iface, ifaceptr, false); 582 GCHandle gch = (GCHandle) data; 583 gch.Free (); 584 } 585 TableAdapter()586 public TableAdapter () 587 { 588 InitHandler = new GLib.GInterfaceInitHandler (Initialize); 589 } 590 591 TableImplementor implementor; 592 TableAdapter(TableImplementor implementor)593 public TableAdapter (TableImplementor implementor) 594 { 595 if (implementor == null) 596 throw new ArgumentNullException ("implementor"); 597 this.implementor = implementor; 598 } 599 TableAdapter(IntPtr handle)600 public TableAdapter (IntPtr handle) 601 { 602 this.handle = handle; 603 } 604 605 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_type()606 static extern IntPtr atk_table_get_type(); 607 608 private static GLib.GType _gtype = new GLib.GType (atk_table_get_type ()); 609 610 public override GLib.GType GType { 611 get { 612 return _gtype; 613 } 614 } 615 616 IntPtr handle; 617 public override IntPtr Handle { 618 get { 619 if (handle != IntPtr.Zero) 620 return handle; 621 return implementor == null ? IntPtr.Zero : implementor.Handle; 622 } 623 } 624 GetObject(IntPtr handle, bool owned)625 public static Table GetObject (IntPtr handle, bool owned) 626 { 627 GLib.Object obj = GLib.Object.GetObject (handle, owned); 628 return GetObject (obj); 629 } 630 GetObject(GLib.Object obj)631 public static Table GetObject (GLib.Object obj) 632 { 633 if (obj == null) 634 return null; 635 else if (obj is TableImplementor) 636 return new TableAdapter (obj as TableImplementor); 637 else if (obj as Table == null) 638 return new TableAdapter (obj.Handle); 639 else 640 return obj as Table; 641 } 642 643 public TableImplementor Implementor { 644 get { 645 return implementor; 646 } 647 } 648 649 [GLib.Signal("column_reordered")] 650 public event System.EventHandler ColumnReordered { 651 add { 652 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "column_reordered"); 653 sig.AddDelegate (value); 654 } 655 remove { 656 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "column_reordered"); 657 sig.RemoveDelegate (value); 658 } 659 } 660 661 [GLib.Signal("column_deleted")] 662 public event Atk.ColumnDeletedHandler ColumnDeleted { 663 add { 664 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "column_deleted", typeof (Atk.ColumnDeletedArgs)); 665 sig.AddDelegate (value); 666 } 667 remove { 668 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "column_deleted", typeof (Atk.ColumnDeletedArgs)); 669 sig.RemoveDelegate (value); 670 } 671 } 672 673 [GLib.Signal("row_reordered")] 674 public event System.EventHandler RowReordered { 675 add { 676 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "row_reordered"); 677 sig.AddDelegate (value); 678 } 679 remove { 680 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "row_reordered"); 681 sig.RemoveDelegate (value); 682 } 683 } 684 685 [GLib.Signal("column_inserted")] 686 public event Atk.ColumnInsertedHandler ColumnInserted { 687 add { 688 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "column_inserted", typeof (Atk.ColumnInsertedArgs)); 689 sig.AddDelegate (value); 690 } 691 remove { 692 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "column_inserted", typeof (Atk.ColumnInsertedArgs)); 693 sig.RemoveDelegate (value); 694 } 695 } 696 697 [GLib.Signal("model_changed")] 698 public event System.EventHandler ModelChanged { 699 add { 700 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "model_changed"); 701 sig.AddDelegate (value); 702 } 703 remove { 704 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "model_changed"); 705 sig.RemoveDelegate (value); 706 } 707 } 708 709 [GLib.Signal("row_inserted")] 710 public event Atk.RowInsertedHandler RowInserted { 711 add { 712 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "row_inserted", typeof (Atk.RowInsertedArgs)); 713 sig.AddDelegate (value); 714 } 715 remove { 716 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "row_inserted", typeof (Atk.RowInsertedArgs)); 717 sig.RemoveDelegate (value); 718 } 719 } 720 721 [GLib.Signal("row_deleted")] 722 public event Atk.RowDeletedHandler RowDeleted { 723 add { 724 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "row_deleted", typeof (Atk.RowDeletedArgs)); 725 sig.AddDelegate (value); 726 } 727 remove { 728 GLib.Signal sig = GLib.Signal.Lookup (GLib.Object.GetObject (Handle), "row_deleted", typeof (Atk.RowDeletedArgs)); 729 sig.RemoveDelegate (value); 730 } 731 } 732 733 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_n_rows(IntPtr raw)734 static extern int atk_table_get_n_rows(IntPtr raw); 735 736 public int NRows { 737 get { 738 int raw_ret = atk_table_get_n_rows(Handle); 739 int ret = raw_ret; 740 return ret; 741 } 742 } 743 744 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_add_row_selection(IntPtr raw, int row)745 static extern bool atk_table_add_row_selection(IntPtr raw, int row); 746 AddRowSelection(int row)747 public bool AddRowSelection(int row) { 748 bool raw_ret = atk_table_add_row_selection(Handle, row); 749 bool ret = raw_ret; 750 return ret; 751 } 752 753 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_column_extent_at(IntPtr raw, int row, int column)754 static extern int atk_table_get_column_extent_at(IntPtr raw, int row, int column); 755 GetColumnExtentAt(int row, int column)756 public int GetColumnExtentAt(int row, int column) { 757 int raw_ret = atk_table_get_column_extent_at(Handle, row, column); 758 int ret = raw_ret; 759 return ret; 760 } 761 762 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_column_header(IntPtr raw, int column)763 static extern IntPtr atk_table_get_column_header(IntPtr raw, int column); 764 GetColumnHeader(int column)765 public Atk.Object GetColumnHeader(int column) { 766 IntPtr raw_ret = atk_table_get_column_header(Handle, column); 767 Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object; 768 return ret; 769 } 770 771 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_is_selected(IntPtr raw, int row, int column)772 static extern bool atk_table_is_selected(IntPtr raw, int row, int column); 773 IsSelected(int row, int column)774 public bool IsSelected(int row, int column) { 775 bool raw_ret = atk_table_is_selected(Handle, row, column); 776 bool ret = raw_ret; 777 return ret; 778 } 779 780 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_summary(IntPtr raw)781 static extern IntPtr atk_table_get_summary(IntPtr raw); 782 783 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_set_summary(IntPtr raw, IntPtr accessible)784 static extern void atk_table_set_summary(IntPtr raw, IntPtr accessible); 785 786 public Atk.Object Summary { 787 get { 788 IntPtr raw_ret = atk_table_get_summary(Handle); 789 Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object; 790 return ret; 791 } 792 set { 793 atk_table_set_summary(Handle, value == null ? IntPtr.Zero : value.Handle); 794 } 795 } 796 797 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_column_description(IntPtr raw, int column)798 static extern IntPtr atk_table_get_column_description(IntPtr raw, int column); 799 GetColumnDescription(int column)800 public string GetColumnDescription(int column) { 801 IntPtr raw_ret = atk_table_get_column_description(Handle, column); 802 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); 803 return ret; 804 } 805 806 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_add_column_selection(IntPtr raw, int column)807 static extern bool atk_table_add_column_selection(IntPtr raw, int column); 808 AddColumnSelection(int column)809 public bool AddColumnSelection(int column) { 810 bool raw_ret = atk_table_add_column_selection(Handle, column); 811 bool ret = raw_ret; 812 return ret; 813 } 814 815 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_set_row_header(IntPtr raw, int row, IntPtr header)816 static extern void atk_table_set_row_header(IntPtr raw, int row, IntPtr header); 817 SetRowHeader(int row, Atk.Object header)818 public void SetRowHeader(int row, Atk.Object header) { 819 atk_table_set_row_header(Handle, row, header == null ? IntPtr.Zero : header.Handle); 820 } 821 822 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_row_description(IntPtr raw, int row)823 static extern IntPtr atk_table_get_row_description(IntPtr raw, int row); 824 GetRowDescription(int row)825 public string GetRowDescription(int row) { 826 IntPtr raw_ret = atk_table_get_row_description(Handle, row); 827 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); 828 return ret; 829 } 830 831 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_ref_at(IntPtr raw, int row, int column)832 static extern IntPtr atk_table_ref_at(IntPtr raw, int row, int column); 833 RefAt(int row, int column)834 public Atk.Object RefAt(int row, int column) { 835 IntPtr raw_ret = atk_table_ref_at(Handle, row, column); 836 Atk.Object ret = GLib.Object.GetObject(raw_ret, true) as Atk.Object; 837 return ret; 838 } 839 840 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_set_column_description(IntPtr raw, int column, IntPtr description)841 static extern void atk_table_set_column_description(IntPtr raw, int column, IntPtr description); 842 SetColumnDescription(int column, string description)843 public void SetColumnDescription(int column, string description) { 844 IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description); 845 atk_table_set_column_description(Handle, column, native_description); 846 GLib.Marshaller.Free (native_description); 847 } 848 849 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_index_at(IntPtr raw, int row, int column)850 static extern int atk_table_get_index_at(IntPtr raw, int row, int column); 851 GetIndexAt(int row, int column)852 public int GetIndexAt(int row, int column) { 853 int raw_ret = atk_table_get_index_at(Handle, row, column); 854 int ret = raw_ret; 855 return ret; 856 } 857 858 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_row_header(IntPtr raw, int row)859 static extern IntPtr atk_table_get_row_header(IntPtr raw, int row); 860 GetRowHeader(int row)861 public Atk.Object GetRowHeader(int row) { 862 IntPtr raw_ret = atk_table_get_row_header(Handle, row); 863 Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object; 864 return ret; 865 } 866 867 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_is_column_selected(IntPtr raw, int column)868 static extern bool atk_table_is_column_selected(IntPtr raw, int column); 869 IsColumnSelected(int column)870 public bool IsColumnSelected(int column) { 871 bool raw_ret = atk_table_is_column_selected(Handle, column); 872 bool ret = raw_ret; 873 return ret; 874 } 875 876 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_selected_rows(IntPtr raw, out IntPtr selected)877 static extern int atk_table_get_selected_rows(IntPtr raw, out IntPtr selected); 878 879 private static readonly int [] empty_int_array = new int[0]; 880 881 public int [] SelectedRows { 882 get { 883 IntPtr selected_ptr; 884 int len = atk_table_get_selected_rows(Handle, out selected_ptr); 885 int [] selected = null; 886 887 if (len > 0) { 888 selected = new int [len]; 889 Marshal.Copy (selected_ptr, selected, 0, len); 890 } 891 892 if (selected_ptr != IntPtr.Zero) { 893 GLib.Marshaller.Free (selected_ptr); 894 } 895 896 return selected == null ? empty_int_array : selected; 897 } 898 } 899 900 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_set_row_description(IntPtr raw, int row, IntPtr description)901 static extern void atk_table_set_row_description(IntPtr raw, int row, IntPtr description); 902 SetRowDescription(int row, string description)903 public void SetRowDescription(int row, string description) { 904 IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description); 905 atk_table_set_row_description(Handle, row, native_description); 906 GLib.Marshaller.Free (native_description); 907 } 908 909 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_is_row_selected(IntPtr raw, int row)910 static extern bool atk_table_is_row_selected(IntPtr raw, int row); 911 IsRowSelected(int row)912 public bool IsRowSelected(int row) { 913 bool raw_ret = atk_table_is_row_selected(Handle, row); 914 bool ret = raw_ret; 915 return ret; 916 } 917 918 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_row_extent_at(IntPtr raw, int row, int column)919 static extern int atk_table_get_row_extent_at(IntPtr raw, int row, int column); 920 GetRowExtentAt(int row, int column)921 public int GetRowExtentAt(int row, int column) { 922 int raw_ret = atk_table_get_row_extent_at(Handle, row, column); 923 int ret = raw_ret; 924 return ret; 925 } 926 927 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_selected_columns(IntPtr raw, out IntPtr selected)928 static extern int atk_table_get_selected_columns(IntPtr raw, out IntPtr selected); 929 930 public int [] SelectedColumns{ 931 get { 932 IntPtr selected_ptr; 933 int len = atk_table_get_selected_columns(Handle, out selected_ptr); 934 int [] selected = null; 935 936 if (len > 0) { 937 selected = new int [len]; 938 Marshal.Copy (selected_ptr, selected, 0, len); 939 } 940 941 if (selected_ptr != IntPtr.Zero) { 942 GLib.Marshaller.Free (selected_ptr); 943 } 944 945 return selected == null ? empty_int_array : selected; 946 } 947 } 948 949 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_column_at_index(IntPtr raw, int index_)950 static extern int atk_table_get_column_at_index(IntPtr raw, int index_); 951 GetColumnAtIndex(int index_)952 public int GetColumnAtIndex(int index_) { 953 int raw_ret = atk_table_get_column_at_index(Handle, index_); 954 int ret = raw_ret; 955 return ret; 956 } 957 958 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_row_at_index(IntPtr raw, int index_)959 static extern int atk_table_get_row_at_index(IntPtr raw, int index_); 960 GetRowAtIndex(int index_)961 public int GetRowAtIndex(int index_) { 962 int raw_ret = atk_table_get_row_at_index(Handle, index_); 963 int ret = raw_ret; 964 return ret; 965 } 966 967 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_caption(IntPtr raw)968 static extern IntPtr atk_table_get_caption(IntPtr raw); 969 970 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_set_caption(IntPtr raw, IntPtr caption)971 static extern void atk_table_set_caption(IntPtr raw, IntPtr caption); 972 973 public Atk.Object Caption { 974 get { 975 IntPtr raw_ret = atk_table_get_caption(Handle); 976 Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object; 977 return ret; 978 } 979 set { 980 atk_table_set_caption(Handle, value == null ? IntPtr.Zero : value.Handle); 981 } 982 } 983 984 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_get_n_columns(IntPtr raw)985 static extern int atk_table_get_n_columns(IntPtr raw); 986 987 public int NColumns { 988 get { 989 int raw_ret = atk_table_get_n_columns(Handle); 990 int ret = raw_ret; 991 return ret; 992 } 993 } 994 995 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_remove_row_selection(IntPtr raw, int row)996 static extern bool atk_table_remove_row_selection(IntPtr raw, int row); 997 RemoveRowSelection(int row)998 public bool RemoveRowSelection(int row) { 999 bool raw_ret = atk_table_remove_row_selection(Handle, row); 1000 bool ret = raw_ret; 1001 return ret; 1002 } 1003 1004 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_remove_column_selection(IntPtr raw, int column)1005 static extern bool atk_table_remove_column_selection(IntPtr raw, int column); 1006 RemoveColumnSelection(int column)1007 public bool RemoveColumnSelection(int column) { 1008 bool raw_ret = atk_table_remove_column_selection(Handle, column); 1009 bool ret = raw_ret; 1010 return ret; 1011 } 1012 1013 [DllImport("libatk-1.0-0.dll", CallingConvention=CallingConvention.Cdecl)] atk_table_set_column_header(IntPtr raw, int column, IntPtr header)1014 static extern void atk_table_set_column_header(IntPtr raw, int column, IntPtr header); 1015 SetColumnHeader(int column, Atk.Object header)1016 public void SetColumnHeader(int column, Atk.Object header) { 1017 atk_table_set_column_header(Handle, column, header == null ? IntPtr.Zero : header.Handle); 1018 } 1019 1020 #endregion 1021 } 1022 } 1023