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]
pub fn coerce<T: nsIDocShellTreeItemCoerce>(&self) -> &T
[src]
Cast this nsIDocShellTreeItem
to one of its base interfaces.
impl nsIDocShellTreeItem
[src]
pub const typeChrome: i64
typeChrome: i64 = 0
pub const typeContent: i64
typeContent: i64 = 1
pub const typeContentWrapper: i64
typeContentWrapper: i64 = 2
pub const typeChromeWrapper: i64
typeChromeWrapper: i64 = 3
pub const typeAll: i64
typeAll: i64 = 2147483647
pub unsafe fn GetName(&self, aName: &mut nsAString) -> nsresult
[src]
attribute AString name;
pub unsafe fn SetName(&self, aName: &nsAString) -> nsresult
[src]
attribute AString name;
pub unsafe fn NameEquals(
&self,
name: &nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
name: &nsAString,
_retval: *mut bool
) -> nsresult
/**
* 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);
pub unsafe fn GetItemType(&self, aItemType: *mut int32_t) -> nsresult
[src]
attribute long itemType;
pub unsafe fn SetItemType(&self, aItemType: int32_t) -> nsresult
[src]
attribute long itemType;
pub unsafe fn GetParent(
&self,
aParent: *mut *const nsIDocShellTreeItem
) -> nsresult
[src]
&self,
aParent: *mut *const nsIDocShellTreeItem
) -> nsresult
readonly attribute nsIDocShellTreeItem parent;
pub unsafe fn GetSameTypeParent(
&self,
aSameTypeParent: *mut *const nsIDocShellTreeItem
) -> nsresult
[src]
&self,
aSameTypeParent: *mut *const nsIDocShellTreeItem
) -> nsresult
readonly attribute nsIDocShellTreeItem sameTypeParent;
pub unsafe fn GetRootTreeItem(
&self,
aRootTreeItem: *mut *const nsIDocShellTreeItem
) -> nsresult
[src]
&self,
aRootTreeItem: *mut *const nsIDocShellTreeItem
) -> nsresult
readonly attribute nsIDocShellTreeItem rootTreeItem;
pub unsafe fn GetSameTypeRootTreeItem(
&self,
aSameTypeRootTreeItem: *mut *const nsIDocShellTreeItem
) -> nsresult
[src]
&self,
aSameTypeRootTreeItem: *mut *const nsIDocShellTreeItem
) -> nsresult
readonly attribute nsIDocShellTreeItem sameTypeRootTreeItem;
pub unsafe fn FindItemWithName(
&self,
name: &nsAString,
aRequestor: *const nsIDocShellTreeItem,
aOriginalRequestor: *const nsIDocShellTreeItem,
aSkipTabGroup: bool,
_retval: *mut *const nsIDocShellTreeItem
) -> nsresult
[src]
&self,
name: &nsAString,
aRequestor: *const nsIDocShellTreeItem,
aOriginalRequestor: *const nsIDocShellTreeItem,
aSkipTabGroup: bool,
_retval: *mut *const nsIDocShellTreeItem
) -> nsresult
nsIDocShellTreeItem findItemWithName (in AString name, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor, in bool aSkipTabGroup);
pub unsafe fn GetTreeOwner(
&self,
aTreeOwner: *mut *const nsIDocShellTreeOwner
) -> nsresult
[src]
&self,
aTreeOwner: *mut *const nsIDocShellTreeOwner
) -> nsresult
readonly attribute nsIDocShellTreeOwner treeOwner;
pub unsafe fn SetTreeOwner(
&self,
treeOwner: *const nsIDocShellTreeOwner
) -> nsresult
[src]
&self,
treeOwner: *const nsIDocShellTreeOwner
) -> nsresult
[noscript] void setTreeOwner (in nsIDocShellTreeOwner treeOwner);
pub unsafe fn GetChildCount(&self, aChildCount: *mut int32_t) -> nsresult
[src]
readonly attribute long childCount;
pub unsafe fn AddChild(&self, child: *const nsIDocShellTreeItem) -> nsresult
[src]
void addChild (in nsIDocShellTreeItem child);
pub unsafe fn RemoveChild(&self, child: *const nsIDocShellTreeItem) -> nsresult
[src]
void removeChild (in nsIDocShellTreeItem child);
pub unsafe fn GetChildAt(
&self,
index: int32_t,
_retval: *mut *const nsIDocShellTreeItem
) -> nsresult
[src]
&self,
index: int32_t,
_retval: *mut *const nsIDocShellTreeItem
) -> nsresult
/**
* 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);
pub unsafe fn FindChildWithName(
&self,
aName: &nsAString,
aRecurse: bool,
aSameType: bool,
aRequestor: *const nsIDocShellTreeItem,
aOriginalRequestor: *const nsIDocShellTreeItem,
_retval: *mut *const nsIDocShellTreeItem
) -> nsresult
[src]
&self,
aName: &nsAString,
aRecurse: bool,
aSameType: bool,
aRequestor: *const nsIDocShellTreeItem,
aOriginalRequestor: *const nsIDocShellTreeItem,
_retval: *mut *const nsIDocShellTreeItem
) -> nsresult
nsIDocShellTreeItem findChildWithName (in AString aName, in boolean aRecurse, in boolean aSameType, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIDocShellTreeItem
[src]
const IID: nsIID
IID: nsIID = nsID(2608617583, 37396, 18444, [162, 196, 73, 181, 38, 255, 241, 166])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIDocShellTreeItem
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.