Struct xpcom::interfaces::nsITreeSelection [] [src]

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

interface nsITreeSelection : nsISupports

Methods

impl nsITreeSelection
[src]

[src]

Cast this nsITreeSelection to one of its base interfaces.

impl nsITreeSelection
[src]

[src]

/**
   * The tree widget for this selection.
   */

attribute nsITreeBoxObject tree;

[src]

/**
   * The tree widget for this selection.
   */

attribute nsITreeBoxObject tree;

[src]

/**
   * This attribute is a boolean indicating single selection.
   */

readonly attribute boolean single;

[src]

/**
   * The number of rows currently selected in this tree.
   */

readonly attribute long count;

[src]

/**
   * Indicates whether or not the row at the specified index is
   * part of the selection.
   */

boolean isSelected (in long index);

[src]

/**
   * Deselect all rows and select the row at the specified index.
   */

void select (in long index);

[src]

/**
   * Perform a timed select.
   */

void timedSelect (in long index, in long delay);

[src]

/**
   * Toggle the selection state of the row at the specified index.
   */

void toggleSelect (in long index);

[src]

/**
   * Select the range specified by the indices.  If augment is true,
   * then we add the range to the selection without clearing out anything
   * else.  If augment is false, everything is cleared except for the specified range.
   */

void rangedSelect (in long startIndex, in long endIndex, in boolean augment);

[src]

/**
   * Clears the range.
   */

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

[src]

/**
   * Clears the selection.
   */

void clearSelection ();

[src]

/**
   * Inverts the selection.
   */

void invertSelection ();

[src]

/**
   * Selects all rows.
   */

void selectAll ();

[src]

/**
   * Iterate the selection using these methods.
   */

long getRangeCount ();

[src]

void getRangeAt (in long i, out long min, out long max);

[src]

/**
   * Can be used to invalidate the selection.
   */

void invalidateSelection ();

[src]

/**
   * Called when the row count changes to adjust selection indices.
   */

void adjustSelection (in long index, in long count);

[src]

/**
   * This attribute is a boolean indicating whether or not the
   * "select" event should fire when the selection is changed using
   * one of our methods.  A view can use this to temporarily suppress
   * the selection while manipulating all of the indices, e.g., on
   * a sort.
   * Note: setting this attribute to false will fire a select event.
   */

attribute boolean selectEventsSuppressed;

[src]

/**
   * This attribute is a boolean indicating whether or not the
   * "select" event should fire when the selection is changed using
   * one of our methods.  A view can use this to temporarily suppress
   * the selection while manipulating all of the indices, e.g., on
   * a sort.
   * Note: setting this attribute to false will fire a select event.
   */

attribute boolean selectEventsSuppressed;

[src]

/**
   * The current item (the one that gets a focus rect in addition to being
   * selected).
   */

attribute long currentIndex;

[src]

/**
   * The current item (the one that gets a focus rect in addition to being
   * selected).
   */

attribute long currentIndex;

[src]

/**
   * The current column.
   */

attribute nsITreeColumn currentColumn;

[src]

/**
   * The current column.
   */

attribute nsITreeColumn currentColumn;

[src]

/**
   * The selection "pivot".  This is the first item the user selected as
   * part of a ranged select.
   */

readonly attribute long shiftSelectPivot;

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 nsITreeSelection
[src]

IID: nsIID = nsID(2876237638, 12299, 19124, [171, 185, 28, 14, 57, 119, 135, 76])

[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 nsITreeSelection
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsITreeSelection
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.