Struct xpcom::interfaces::nsITreeBoxObject [] [src]

#[repr(C)]
pub struct nsITreeBoxObject { /* fields omitted */ }

interface nsITreeBoxObject : nsISupports

Methods

impl nsITreeBoxObject
[src]

[src]

Cast this nsITreeBoxObject to one of its base interfaces.

impl nsITreeBoxObject
[src]

[src]

/**
   * Obtain the columns.
   */

readonly attribute nsITreeColumns columns;

[src]

/**
   * 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;

[src]

/**
   * 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;

[src]

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

attribute boolean focused;

[src]

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

attribute boolean focused;

[src]

/**
   * Obtain the treebody content node
   */

readonly attribute nsIDOMElement treeBody;

[src]

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

readonly attribute long rowHeight;

[src]

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

readonly attribute long rowWidth;

[src]

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

readonly attribute long horizontalPosition;

[src]

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

readonly attribute nsIScriptableRegion selectionRegion;

[src]

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

long getFirstVisibleRow ();

[src]

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

long getLastVisibleRow ();

[src]

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

long getPageLength ();

[src]

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

void ensureRowIsVisible (in long index);

[src]

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

void ensureCellIsVisible (in long row, in nsITreeColumn col);

[src]

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

void scrollToRow (in long index);

[src]

/**
   * 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);

[src]

/**
   * 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);

[src]

/**
   * 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);

[src]

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

void scrollToColumn (in nsITreeColumn col);

[src]

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

void scrollToHorizontalPosition (in long horizontalPosition);

[src]

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

void invalidate ();

[src]

void invalidateColumn (in nsITreeColumn col);

[src]

void invalidateRow (in long index);

[src]

void invalidateCell (in long row, in nsITreeColumn col);

[src]

void invalidateRange (in long startIndex, in long endIndex);

[src]

void invalidateColumnRange (in long startIndex, in long endIndex, in nsITreeColumn col);

[src]

/**
   * 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);

[src]

/**
   * 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);

[src]

/**
   * 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);

[src]

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

boolean isCellCropped (in long row, in nsITreeColumn col);

[src]

/**
   * 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);

[src]

/**
   * 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 ();

[src]

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

void endUpdateBatch ();

[src]

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

void clearStyleAndImageCaches ();

[src]

/**
   * 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);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsITreeBoxObject
[src]

IID: nsIID = nsID(4091153502, 20981, 17904, [178, 205, 107, 227, 171, 104, 71, 174])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsITreeBoxObject
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsITreeBoxObject
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.