1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
//
// DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsITreeBoxObject.idl
//


/// `interface nsITreeBoxObject : nsISupports`
///


// The actual type definition for the interface. This struct has methods
// declared on it which will call through its vtable. You never want to pass
// this type around by value, always pass it behind a reference.

#[repr(C)]
pub struct nsITreeBoxObject {
    vtable: *const nsITreeBoxObjectVTable,

    /// This field is a phantomdata to ensure that the VTable type and any
    /// struct containing it is not safe to send across threads, as XPCOM is
    /// generally not threadsafe.
    ///
    /// XPCOM interfaces in general are not safe to send across threads.
    __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>,
}

// Implementing XpCom for an interface exposes its IID, which allows for easy
// use of the `.query_interface<T>` helper method. This also defines that
// method for nsITreeBoxObject.
unsafe impl XpCom for nsITreeBoxObject {
    const IID: nsIID = nsID(0xf3da0c5e, 0x51f5, 0x45f0,
        [0xb2, 0xcd, 0x6b, 0xe3, 0xab, 0x68, 0x47, 0xae]);
}

// We need to implement the RefCounted trait so we can be used with `RefPtr`.
// This trait teaches `RefPtr` how to manage our memory.
unsafe impl RefCounted for nsITreeBoxObject {
    #[inline]
    unsafe fn addref(&self) {
        self.AddRef();
    }
    #[inline]
    unsafe fn release(&self) {
        self.Release();
    }
}

// This trait is implemented on all types which can be coerced to from nsITreeBoxObject.
// It is used in the implementation of `fn coerce<T>`. We hide it from the
// documentation, because it clutters it up a lot.
#[doc(hidden)]
pub trait nsITreeBoxObjectCoerce {
    /// Cheaply cast a value of this type from a `nsITreeBoxObject`.
    fn coerce_from(v: &nsITreeBoxObject) -> &Self;
}

// The trivial implementation: We can obviously coerce ourselves to ourselves.
impl nsITreeBoxObjectCoerce for nsITreeBoxObject {
    #[inline]
    fn coerce_from(v: &nsITreeBoxObject) -> &Self {
        v
    }
}

impl nsITreeBoxObject {
    /// Cast this `nsITreeBoxObject` to one of its base interfaces.
    #[inline]
    pub fn coerce<T: nsITreeBoxObjectCoerce>(&self) -> &T {
        T::coerce_from(self)
    }
}

// Every interface struct type implements `Deref` to its base interface. This
// causes methods on the base interfaces to be directly avaliable on the
// object. For example, you can call `.AddRef` or `.QueryInterface` directly
// on any interface which inherits from `nsISupports`.
impl ::std::ops::Deref for nsITreeBoxObject {
    type Target = nsISupports;
    #[inline]
    fn deref(&self) -> &nsISupports {
        unsafe {
            ::std::mem::transmute(self)
        }
    }
}

// Ensure we can use .coerce() to cast to our base types as well. Any type which
// our base interface can coerce from should be coercable from us as well.
impl<T: nsISupportsCoerce> nsITreeBoxObjectCoerce for T {
    #[inline]
    fn coerce_from(v: &nsITreeBoxObject) -> &Self {
        T::coerce_from(v)
    }
}

// This struct represents the interface's VTable. A pointer to a statically
// allocated version of this struct is at the beginning of every nsITreeBoxObject
// object. It contains one pointer field for each method in the interface. In
// the case where we can't generate a binding for a method, we include a void
// pointer.
#[doc(hidden)]
#[repr(C)]
pub struct nsITreeBoxObjectVTable {
    /// We need to include the members from the base interface's vtable at the start
    /// of the VTable definition.
    pub __base: nsISupportsVTable,

    /* readonly attribute nsITreeColumns columns; */
    pub GetColumns: unsafe extern "system" fn (this: *const nsITreeBoxObject, aColumns: *mut *const nsITreeColumns) -> nsresult,

    /* attribute nsITreeView view; */
    pub GetView: unsafe extern "system" fn (this: *const nsITreeBoxObject, aView: *mut *const nsITreeView) -> nsresult,

    /* attribute nsITreeView view; */
    pub SetView: unsafe extern "system" fn (this: *const nsITreeBoxObject, aView: *const nsITreeView) -> nsresult,

    /* attribute boolean focused; */
    pub GetFocused: unsafe extern "system" fn (this: *const nsITreeBoxObject, aFocused: *mut bool) -> nsresult,

    /* attribute boolean focused; */
    pub SetFocused: unsafe extern "system" fn (this: *const nsITreeBoxObject, aFocused: bool) -> nsresult,

    /* readonly attribute nsIDOMElement treeBody; */
    pub GetTreeBody: unsafe extern "system" fn (this: *const nsITreeBoxObject, aTreeBody: *mut *const nsIDOMElement) -> nsresult,

    /* readonly attribute long rowHeight; */
    pub GetRowHeight: unsafe extern "system" fn (this: *const nsITreeBoxObject, aRowHeight: *mut libc::int32_t) -> nsresult,

    /* readonly attribute long rowWidth; */
    pub GetRowWidth: unsafe extern "system" fn (this: *const nsITreeBoxObject, aRowWidth: *mut libc::int32_t) -> nsresult,

    /* readonly attribute long horizontalPosition; */
    pub GetHorizontalPosition: unsafe extern "system" fn (this: *const nsITreeBoxObject, aHorizontalPosition: *mut libc::int32_t) -> nsresult,

    /* readonly attribute nsIScriptableRegion selectionRegion; */
    pub GetSelectionRegion: unsafe extern "system" fn (this: *const nsITreeBoxObject, aSelectionRegion: *mut *const nsIScriptableRegion) -> nsresult,

    /* long getFirstVisibleRow (); */
    pub GetFirstVisibleRow: unsafe extern "system" fn (this: *const nsITreeBoxObject, _retval: *mut libc::int32_t) -> nsresult,

    /* long getLastVisibleRow (); */
    pub GetLastVisibleRow: unsafe extern "system" fn (this: *const nsITreeBoxObject, _retval: *mut libc::int32_t) -> nsresult,

    /* long getPageLength (); */
    pub GetPageLength: unsafe extern "system" fn (this: *const nsITreeBoxObject, _retval: *mut libc::int32_t) -> nsresult,

    /* void ensureRowIsVisible (in long index); */
    pub EnsureRowIsVisible: unsafe extern "system" fn (this: *const nsITreeBoxObject, index: libc::int32_t) -> nsresult,

    /* void ensureCellIsVisible (in long row, in nsITreeColumn col); */
    pub EnsureCellIsVisible: unsafe extern "system" fn (this: *const nsITreeBoxObject, row: libc::int32_t, col: *const nsITreeColumn) -> nsresult,

    /* void scrollToRow (in long index); */
    pub ScrollToRow: unsafe extern "system" fn (this: *const nsITreeBoxObject, index: libc::int32_t) -> nsresult,

    /* void scrollByLines (in long numLines); */
    pub ScrollByLines: unsafe extern "system" fn (this: *const nsITreeBoxObject, numLines: libc::int32_t) -> nsresult,

    /* void scrollByPages (in long numPages); */
    pub ScrollByPages: unsafe extern "system" fn (this: *const nsITreeBoxObject, numPages: libc::int32_t) -> nsresult,

    /* void scrollToCell (in long row, in nsITreeColumn col); */
    pub ScrollToCell: unsafe extern "system" fn (this: *const nsITreeBoxObject, row: libc::int32_t, col: *const nsITreeColumn) -> nsresult,

    /* void scrollToColumn (in nsITreeColumn col); */
    pub ScrollToColumn: unsafe extern "system" fn (this: *const nsITreeBoxObject, col: *const nsITreeColumn) -> nsresult,

    /* void scrollToHorizontalPosition (in long horizontalPosition); */
    pub ScrollToHorizontalPosition: unsafe extern "system" fn (this: *const nsITreeBoxObject, horizontalPosition: libc::int32_t) -> nsresult,

    /* void invalidate (); */
    pub Invalidate: unsafe extern "system" fn (this: *const nsITreeBoxObject) -> nsresult,

    /* void invalidateColumn (in nsITreeColumn col); */
    pub InvalidateColumn: unsafe extern "system" fn (this: *const nsITreeBoxObject, col: *const nsITreeColumn) -> nsresult,

    /* void invalidateRow (in long index); */
    pub InvalidateRow: unsafe extern "system" fn (this: *const nsITreeBoxObject, index: libc::int32_t) -> nsresult,

    /* void invalidateCell (in long row, in nsITreeColumn col); */
    pub InvalidateCell: unsafe extern "system" fn (this: *const nsITreeBoxObject, row: libc::int32_t, col: *const nsITreeColumn) -> nsresult,

    /* void invalidateRange (in long startIndex, in long endIndex); */
    pub InvalidateRange: unsafe extern "system" fn (this: *const nsITreeBoxObject, startIndex: libc::int32_t, endIndex: libc::int32_t) -> nsresult,

    /* void invalidateColumnRange (in long startIndex, in long endIndex, in nsITreeColumn col); */
    pub InvalidateColumnRange: unsafe extern "system" fn (this: *const nsITreeBoxObject, startIndex: libc::int32_t, endIndex: libc::int32_t, col: *const nsITreeColumn) -> nsresult,

    /* long getRowAt (in long x, in long y); */
    pub GetRowAt: unsafe extern "system" fn (this: *const nsITreeBoxObject, x: libc::int32_t, y: libc::int32_t, _retval: *mut libc::int32_t) -> nsresult,

    /* void getCellAt (in long x, in long y, out long row, out nsITreeColumn col, out AString childElt); */
    pub GetCellAt: unsafe extern "system" fn (this: *const nsITreeBoxObject, x: libc::int32_t, y: libc::int32_t, row: *mut libc::int32_t, col: *mut *const nsITreeColumn, childElt: &mut ::nsstring::nsAString) -> nsresult,

    /* void getCoordsForCellItem (in long row, in nsITreeColumn col, in AString element, out long x, out long y, out long width, out long height); */
    pub GetCoordsForCellItem: unsafe extern "system" fn (this: *const nsITreeBoxObject, row: libc::int32_t, col: *const nsITreeColumn, element: &::nsstring::nsAString, x: *mut libc::int32_t, y: *mut libc::int32_t, width: *mut libc::int32_t, height: *mut libc::int32_t) -> nsresult,

    /* boolean isCellCropped (in long row, in nsITreeColumn col); */
    pub IsCellCropped: unsafe extern "system" fn (this: *const nsITreeBoxObject, row: libc::int32_t, col: *const nsITreeColumn, _retval: *mut bool) -> nsresult,

    /* void rowCountChanged (in long index, in long count); */
    pub RowCountChanged: unsafe extern "system" fn (this: *const nsITreeBoxObject, index: libc::int32_t, count: libc::int32_t) -> nsresult,

    /* void beginUpdateBatch (); */
    pub BeginUpdateBatch: unsafe extern "system" fn (this: *const nsITreeBoxObject) -> nsresult,

    /* void endUpdateBatch (); */
    pub EndUpdateBatch: unsafe extern "system" fn (this: *const nsITreeBoxObject) -> nsresult,

    /* void clearStyleAndImageCaches (); */
    pub ClearStyleAndImageCaches: unsafe extern "system" fn (this: *const nsITreeBoxObject) -> nsresult,

    /* void removeImageCacheEntry (in long row, in nsITreeColumn col); */
    pub RemoveImageCacheEntry: unsafe extern "system" fn (this: *const nsITreeBoxObject, row: libc::int32_t, col: *const nsITreeColumn) -> nsresult,
}


// The implementations of the function wrappers which are exposed to rust code.
// Call these methods rather than manually calling through the VTable struct.
impl nsITreeBoxObject {

    /// ```text
    /// /**
    ///    * Obtain the columns.
    ///    */
    /// ```
    ///

    /// `readonly attribute nsITreeColumns columns;`
    #[inline]
    pub unsafe fn GetColumns(&self, aColumns: *mut *const nsITreeColumns) -> nsresult {
        ((*self.vtable).GetColumns)(self, aColumns)
    }


    /// ```text
    /// /**
    ///    * The view that backs the tree and that supplies it with its data.
    ///    * It is dynamically settable, either using a view attribute on the
    ///    * tree tag or by setting this attribute to a new value.
    ///    */
    /// ```
    ///

    /// `attribute nsITreeView view;`
    #[inline]
    pub unsafe fn GetView(&self, aView: *mut *const nsITreeView) -> nsresult {
        ((*self.vtable).GetView)(self, aView)
    }


    /// ```text
    /// /**
    ///    * The view that backs the tree and that supplies it with its data.
    ///    * It is dynamically settable, either using a view attribute on the
    ///    * tree tag or by setting this attribute to a new value.
    ///    */
    /// ```
    ///

    /// `attribute nsITreeView view;`
    #[inline]
    pub unsafe fn SetView(&self, aView: *const nsITreeView) -> nsresult {
        ((*self.vtable).SetView)(self, aView)
    }


    /// ```text
    /// /**
    ///    * Whether or not we are currently focused.
    ///    */
    /// ```
    ///

    /// `attribute boolean focused;`
    #[inline]
    pub unsafe fn GetFocused(&self, aFocused: *mut bool) -> nsresult {
        ((*self.vtable).GetFocused)(self, aFocused)
    }


    /// ```text
    /// /**
    ///    * Whether or not we are currently focused.
    ///    */
    /// ```
    ///

    /// `attribute boolean focused;`
    #[inline]
    pub unsafe fn SetFocused(&self, aFocused: bool) -> nsresult {
        ((*self.vtable).SetFocused)(self, aFocused)
    }


    /// ```text
    /// /**
    ///    * Obtain the treebody content node
    ///    */
    /// ```
    ///

    /// `readonly attribute nsIDOMElement treeBody;`
    #[inline]
    pub unsafe fn GetTreeBody(&self, aTreeBody: *mut *const nsIDOMElement) -> nsresult {
        ((*self.vtable).GetTreeBody)(self, aTreeBody)
    }


    /// ```text
    /// /**
    ///    * Obtain the height of a row.
    ///    */
    /// ```
    ///

    /// `readonly attribute long rowHeight;`
    #[inline]
    pub unsafe fn GetRowHeight(&self, aRowHeight: *mut libc::int32_t) -> nsresult {
        ((*self.vtable).GetRowHeight)(self, aRowHeight)
    }


    /// ```text
    /// /**
    ///    * Obtain the width of a row.
    ///    */
    /// ```
    ///

    /// `readonly attribute long rowWidth;`
    #[inline]
    pub unsafe fn GetRowWidth(&self, aRowWidth: *mut libc::int32_t) -> nsresult {
        ((*self.vtable).GetRowWidth)(self, aRowWidth)
    }


    /// ```text
    /// /**
    ///    * Get the pixel position of the horizontal scrollbar.
    ///    */
    /// ```
    ///

    /// `readonly attribute long horizontalPosition;`
    #[inline]
    pub unsafe fn GetHorizontalPosition(&self, aHorizontalPosition: *mut libc::int32_t) -> nsresult {
        ((*self.vtable).GetHorizontalPosition)(self, aHorizontalPosition)
    }


    /// ```text
    /// /**
    ///    * Return the region for the visible parts of the selection, in device pixels.
    ///    */
    /// ```
    ///

    /// `readonly attribute nsIScriptableRegion selectionRegion;`
    #[inline]
    pub unsafe fn GetSelectionRegion(&self, aSelectionRegion: *mut *const nsIScriptableRegion) -> nsresult {
        ((*self.vtable).GetSelectionRegion)(self, aSelectionRegion)
    }


    /// ```text
    /// /**
    ///    * Get the index of the first visible row.
    ///    */
    /// ```
    ///

    /// `long getFirstVisibleRow ();`
    #[inline]
    pub unsafe fn GetFirstVisibleRow(&self, _retval: *mut libc::int32_t) -> nsresult {
        ((*self.vtable).GetFirstVisibleRow)(self, _retval)
    }


    /// ```text
    /// /**
    ///    * Get the index of the last visible row.
    ///    */
    /// ```
    ///

    /// `long getLastVisibleRow ();`
    #[inline]
    pub unsafe fn GetLastVisibleRow(&self, _retval: *mut libc::int32_t) -> nsresult {
        ((*self.vtable).GetLastVisibleRow)(self, _retval)
    }


    /// ```text
    /// /**
    ///    * Gets the number of possible visible rows.
    ///    */
    /// ```
    ///

    /// `long getPageLength ();`
    #[inline]
    pub unsafe fn GetPageLength(&self, _retval: *mut libc::int32_t) -> nsresult {
        ((*self.vtable).GetPageLength)(self, _retval)
    }


    /// ```text
    /// /**
    ///    * Ensures that a row at a given index is visible.
    ///    */
    /// ```
    ///

    /// `void ensureRowIsVisible (in long index);`
    #[inline]
    pub unsafe fn EnsureRowIsVisible(&self, index: libc::int32_t) -> nsresult {
        ((*self.vtable).EnsureRowIsVisible)(self, index)
    }


    /// ```text
    /// /**
    ///    * Ensures that a given cell in the tree is visible.
    ///    */
    /// ```
    ///

    /// `void ensureCellIsVisible (in long row, in nsITreeColumn col);`
    #[inline]
    pub unsafe fn EnsureCellIsVisible(&self, row: libc::int32_t, col: *const nsITreeColumn) -> nsresult {
        ((*self.vtable).EnsureCellIsVisible)(self, row, col)
    }


    /// ```text
    /// /**
    ///    * Scrolls such that the row at index is at the top of the visible view.
    ///    */
    /// ```
    ///

    /// `void scrollToRow (in long index);`
    #[inline]
    pub unsafe fn ScrollToRow(&self, index: libc::int32_t) -> nsresult {
        ((*self.vtable).ScrollToRow)(self, index)
    }


    /// ```text
    /// /**
    ///    * Scroll the tree up or down by numLines lines. Positive
    ///    * values move down in the tree. Prevents scrolling off the
    ///    * end of the tree.
    ///    */
    /// ```
    ///

    /// `void scrollByLines (in long numLines);`
    #[inline]
    pub unsafe fn ScrollByLines(&self, numLines: libc::int32_t) -> nsresult {
        ((*self.vtable).ScrollByLines)(self, numLines)
    }


    /// ```text
    /// /**
    ///    * Scroll the tree up or down by numPages pages. A page
    ///    * is considered to be the amount displayed by the tree.
    ///    * Positive values move down in the tree. Prevents scrolling
    ///    * off the end of the tree.
    ///    */
    /// ```
    ///

    /// `void scrollByPages (in long numPages);`
    #[inline]
    pub unsafe fn ScrollByPages(&self, numPages: libc::int32_t) -> nsresult {
        ((*self.vtable).ScrollByPages)(self, numPages)
    }


    /// ```text
    /// /**
    ///    * Scrolls such that a given cell is visible (if possible)
    ///    * at the top left corner of the visible view.
    ///    */
    /// ```
    ///

    /// `void scrollToCell (in long row, in nsITreeColumn col);`
    #[inline]
    pub unsafe fn ScrollToCell(&self, row: libc::int32_t, col: *const nsITreeColumn) -> nsresult {
        ((*self.vtable).ScrollToCell)(self, row, col)
    }


    /// ```text
    /// /**
    ///    * Scrolls horizontally so that the specified column is
    ///    * at the left of the view (if possible).
    ///    */
    /// ```
    ///

    /// `void scrollToColumn (in nsITreeColumn col);`
    #[inline]
    pub unsafe fn ScrollToColumn(&self, col: *const nsITreeColumn) -> nsresult {
        ((*self.vtable).ScrollToColumn)(self, col)
    }


    /// ```text
    /// /**
    ///    * Scroll to a specific horizontal pixel position.
    ///    */
    /// ```
    ///

    /// `void scrollToHorizontalPosition (in long horizontalPosition);`
    #[inline]
    pub unsafe fn ScrollToHorizontalPosition(&self, horizontalPosition: libc::int32_t) -> nsresult {
        ((*self.vtable).ScrollToHorizontalPosition)(self, horizontalPosition)
    }


    /// ```text
    /// /**
    ///    * Invalidation methods for fine-grained painting control.
    ///    */
    /// ```
    ///

    /// `void invalidate ();`
    #[inline]
    pub unsafe fn Invalidate(&self, ) -> nsresult {
        ((*self.vtable).Invalidate)(self, )
    }



    /// `void invalidateColumn (in nsITreeColumn col);`
    #[inline]
    pub unsafe fn InvalidateColumn(&self, col: *const nsITreeColumn) -> nsresult {
        ((*self.vtable).InvalidateColumn)(self, col)
    }



    /// `void invalidateRow (in long index);`
    #[inline]
    pub unsafe fn InvalidateRow(&self, index: libc::int32_t) -> nsresult {
        ((*self.vtable).InvalidateRow)(self, index)
    }



    /// `void invalidateCell (in long row, in nsITreeColumn col);`
    #[inline]
    pub unsafe fn InvalidateCell(&self, row: libc::int32_t, col: *const nsITreeColumn) -> nsresult {
        ((*self.vtable).InvalidateCell)(self, row, col)
    }



    /// `void invalidateRange (in long startIndex, in long endIndex);`
    #[inline]
    pub unsafe fn InvalidateRange(&self, startIndex: libc::int32_t, endIndex: libc::int32_t) -> nsresult {
        ((*self.vtable).InvalidateRange)(self, startIndex, endIndex)
    }



    /// `void invalidateColumnRange (in long startIndex, in long endIndex, in nsITreeColumn col);`
    #[inline]
    pub unsafe fn InvalidateColumnRange(&self, startIndex: libc::int32_t, endIndex: libc::int32_t, col: *const nsITreeColumn) -> nsresult {
        ((*self.vtable).InvalidateColumnRange)(self, startIndex, endIndex, col)
    }


    /// ```text
    /// /**
    ///    * A hit test that can tell you what row the mouse is over.
    ///    * returns -1 for invalid mouse coordinates.
    ///    *
    ///    * The coordinate system is the client coordinate system for the
    ///    * document this boxObject lives in, and the units are CSS pixels.
    ///    */
    /// ```
    ///

    /// `long getRowAt (in long x, in long y);`
    #[inline]
    pub unsafe fn GetRowAt(&self, x: libc::int32_t, y: libc::int32_t, _retval: *mut libc::int32_t) -> nsresult {
        ((*self.vtable).GetRowAt)(self, x, y, _retval)
    }


    /// ```text
    /// /**
    ///    * A hit test that can tell you what cell the mouse is over.  Row is the row index
    ///    * hit,  returns -1 for invalid mouse coordinates.  ColID is the column hit.
    ///    * ChildElt is the pseudoelement hit: this can have values of
    ///    * "cell", "twisty", "image", and "text".
    ///    *
    ///    * The coordinate system is the client coordinate system for the
    ///    * document this boxObject lives in, and the units are CSS pixels.
    ///    */
    /// ```
    ///

    /// `void getCellAt (in long x, in long y, out long row, out nsITreeColumn col, out AString childElt);`
    #[inline]
    pub unsafe fn GetCellAt(&self, x: libc::int32_t, y: libc::int32_t, row: *mut libc::int32_t, col: *mut *const nsITreeColumn, childElt: &mut ::nsstring::nsAString) -> nsresult {
        ((*self.vtable).GetCellAt)(self, x, y, row, col, childElt)
    }


    /// ```text
    /// /**
    ///    * Find the coordinates of an element within a specific cell.
    ///    */
    /// ```
    ///

    /// `void getCoordsForCellItem (in long row, in nsITreeColumn col, in AString element, out long x, out long y, out long width, out long height);`
    #[inline]
    pub unsafe fn GetCoordsForCellItem(&self, row: libc::int32_t, col: *const nsITreeColumn, element: &::nsstring::nsAString, x: *mut libc::int32_t, y: *mut libc::int32_t, width: *mut libc::int32_t, height: *mut libc::int32_t) -> nsresult {
        ((*self.vtable).GetCoordsForCellItem)(self, row, col, element, x, y, width, height)
    }


    /// ```text
    /// /**
    ///    * Determine if the text of a cell is being cropped or not.
    ///    */
    /// ```
    ///

    /// `boolean isCellCropped (in long row, in nsITreeColumn col);`
    #[inline]
    pub unsafe fn IsCellCropped(&self, row: libc::int32_t, col: *const nsITreeColumn, _retval: *mut bool) -> nsresult {
        ((*self.vtable).IsCellCropped)(self, row, col, _retval)
    }


    /// ```text
    /// /**
    ///    * The view is responsible for calling these notification methods when
    ///    * rows are added or removed.  Index is the position at which the new
    ///    * rows were added or at which rows were removed.  For
    ///    * non-contiguous additions/removals, this method should be called multiple times.
    ///    */
    /// ```
    ///

    /// `void rowCountChanged (in long index, in long count);`
    #[inline]
    pub unsafe fn RowCountChanged(&self, index: libc::int32_t, count: libc::int32_t) -> nsresult {
        ((*self.vtable).RowCountChanged)(self, index, count)
    }


    /// ```text
    /// /**
    ///    * Notify the tree that the view is about to perform a batch
    ///    * update, that is, add, remove or invalidate several rows at once.
    ///    * This must be followed by calling endUpdateBatch(), otherwise the tree
    ///    * will get out of sync.
    ///    */
    /// ```
    ///

    /// `void beginUpdateBatch ();`
    #[inline]
    pub unsafe fn BeginUpdateBatch(&self, ) -> nsresult {
        ((*self.vtable).BeginUpdateBatch)(self, )
    }


    /// ```text
    /// /**
    ///    * Notify the tree that the view has completed a batch update.
    ///    */
    /// ```
    ///

    /// `void endUpdateBatch ();`
    #[inline]
    pub unsafe fn EndUpdateBatch(&self, ) -> nsresult {
        ((*self.vtable).EndUpdateBatch)(self, )
    }


    /// ```text
    /// /**
    ///    * Called on a theme switch to flush out the tree's style and image caches.
    ///    */
    /// ```
    ///

    /// `void clearStyleAndImageCaches ();`
    #[inline]
    pub unsafe fn ClearStyleAndImageCaches(&self, ) -> nsresult {
        ((*self.vtable).ClearStyleAndImageCaches)(self, )
    }


    /// ```text
    /// /**
    ///    * Remove an image source from the image cache to allow its invalidation.
    ///    *
    ///    * @note This only affects images supplied by the view, not the ones supplied
    ///    *       through the styling context, like twisties or checkboxes.
    ///    */
    /// ```
    ///

    /// `void removeImageCacheEntry (in long row, in nsITreeColumn col);`
    #[inline]
    pub unsafe fn RemoveImageCacheEntry(&self, row: libc::int32_t, col: *const nsITreeColumn) -> nsresult {
        ((*self.vtable).RemoveImageCacheEntry)(self, row, col)
    }


}