Struct xpcom::interfaces::nsINativeTreeSelection [] [src]

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

interface nsINativeTreeSelection : nsITreeSelection

/**
 * The following interface is not scriptable and MUST NEVER BE MADE scriptable.
 * Native treeselections implement it, and we use this to check whether a
 * treeselection is native (and therefore suitable for use by untrusted content).
 */

Methods

impl nsINativeTreeSelection
[src]

[src]

Cast this nsINativeTreeSelection to one of its base interfaces.

impl nsINativeTreeSelection
[src]

[src]

[noscript] void ensureNative ();

Methods from Deref<Target = nsITreeSelection>

[src]

Cast this nsITreeSelection to one of its base interfaces.

[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;

Trait Implementations

impl XpCom for nsINativeTreeSelection
[src]

IID: nsIID = nsID(466982520, 23731, 17174, [178, 70, 49, 169, 27, 25, 170, 190])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsINativeTreeSelection
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.