Struct xpcom::interfaces::nsIDocShellTreeItem [] [src]

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

interface nsIDocShellTreeItem : nsISupports

/**
 * The nsIDocShellTreeItem supplies the methods that are required of any item
 * that wishes to be able to live within the docshell tree either as a middle
 * node or a leaf.
 */

Methods

impl nsIDocShellTreeItem
[src]

[src]

Cast this nsIDocShellTreeItem to one of its base interfaces.

impl nsIDocShellTreeItem
[src]

typeChrome: i64 = 0

typeContent: i64 = 1

typeContentWrapper: i64 = 2

typeChromeWrapper: i64 = 3

typeAll: i64 = 2147483647

[src]

attribute AString name;

[src]

attribute AString name;

[src]

/**
         * Compares the provided name against the item's name and
         * returns the appropriate result.
         *
         * @return <CODE>PR_TRUE</CODE> if names match;
         *         <CODE>PR_FALSE</CODE> otherwise.
         */

boolean nameEquals (in AString name);

[src]

attribute long itemType;

[src]

attribute long itemType;

[src]

readonly attribute nsIDocShellTreeItem parent;

[src]

readonly attribute nsIDocShellTreeItem sameTypeParent;

[src]

readonly attribute nsIDocShellTreeItem rootTreeItem;

[src]

readonly attribute nsIDocShellTreeItem sameTypeRootTreeItem;

[src]

nsIDocShellTreeItem findItemWithName (in AString name, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor, in bool aSkipTabGroup);

[src]

readonly attribute nsIDocShellTreeOwner treeOwner;

[src]

[noscript] void setTreeOwner (in nsIDocShellTreeOwner treeOwner);

[src]

readonly attribute long childCount;

[src]

void addChild (in nsIDocShellTreeItem child);

[src]

void removeChild (in nsIDocShellTreeItem child);

[src]

/**
     * Return the child at the index requested.  This is 0-based.
     *
     * @throws NS_ERROR_UNEXPECTED if the index is out of range
     */

nsIDocShellTreeItem getChildAt (in long index);

[src]

nsIDocShellTreeItem findChildWithName (in AString aName, in boolean aRecurse, in boolean aSameType, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor);

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

IID: nsIID = nsID(2608617583, 37396, 18444, [162, 196, 73, 181, 38, 255, 241, 166])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDocShellTreeItem
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.