Struct xpcom::interfaces::nsISHContainer
[−]
[src]
#[repr(C)]pub struct nsISHContainer { /* fields omitted */ }
interface nsISHContainer : nsISupports
/**
* The nsISHEntryContainer. The interface to access child entries
* of an nsISHEntry.
*
*/
Methods
impl nsISHContainer
[src]
pub fn coerce<T: nsISHContainerCoerce>(&self) -> &T
[src]
Cast this nsISHContainer
to one of its base interfaces.
impl nsISHContainer
[src]
pub unsafe fn GetChildCount(&self, aChildCount: *mut int32_t) -> nsresult
[src]
/**
* The current number of nsISHEntries which are immediate children of the
* current SHEntry
*/
readonly attribute long childCount;
pub unsafe fn AddChild(
&self,
child: *const nsISHEntry,
offset: int32_t
) -> nsresult
[src]
&self,
child: *const nsISHEntry,
offset: int32_t
) -> nsresult
/**
* Add a new child SHEntry. If offset is -1 adds to the end of the list.
*/
void AddChild (in nsISHEntry child, in long offset);
pub unsafe fn RemoveChild(&self, child: *const nsISHEntry) -> nsresult
[src]
/**
* Removes a child SHEntry
*/
void RemoveChild (in nsISHEntry child);
pub unsafe fn GetChildAt(
&self,
index: int32_t,
_retval: *mut *const nsISHEntry
) -> nsresult
[src]
&self,
index: int32_t,
_retval: *mut *const nsISHEntry
) -> nsresult
/**
* Get child at an index
*/
nsISHEntry GetChildAt (in long index);
pub unsafe fn ReplaceChild(&self, aNewChild: *const nsISHEntry) -> nsresult
[src]
/**
* Replaces a child which is for the same docshell as aNewChild
* with aNewChild.
* @throw if nothing was replaced.
*/
void ReplaceChild (in nsISHEntry aNewChild);
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 nsISHContainer
[src]
const IID: nsIID
IID: nsIID = nsID(1742537559, 33650, 16674, [191, 246, 33, 116, 53, 232, 183, 228])
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 nsISHContainer
[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 nsISHContainer
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.