Struct xpcom::interfaces::nsIDOMXULContainerElement
[−]
[src]
#[repr(C)]pub struct nsIDOMXULContainerElement { /* fields omitted */ }
interface nsIDOMXULContainerElement : nsIDOMXULContainerItemElement
Methods
impl nsIDOMXULContainerElement
[src]
pub fn coerce<T: nsIDOMXULContainerElementCoerce>(&self) -> &T
[src]
Cast this nsIDOMXULContainerElement
to one of its base interfaces.
impl nsIDOMXULContainerElement
[src]
pub unsafe fn AppendItem(
&self,
aLabel: &nsAString,
aValue: &nsAString,
_retval: *mut *const nsIDOMXULElement
) -> nsresult
[src]
&self,
aLabel: &nsAString,
aValue: &nsAString,
_retval: *mut *const nsIDOMXULElement
) -> nsresult
/**
* Creates an item for the given label and value and appends it to the
* container.
*
* @param aLabel - the label for the new item
* @param aValue - the value of the new item
*/
nsIDOMXULElement appendItem (in DOMString aLabel, in DOMString aValue);
pub unsafe fn InsertItemAt(
&self,
aIndex: int32_t,
aLabel: &nsAString,
aValue: &nsAString,
_retval: *mut *const nsIDOMXULElement
) -> nsresult
[src]
&self,
aIndex: int32_t,
aLabel: &nsAString,
aValue: &nsAString,
_retval: *mut *const nsIDOMXULElement
) -> nsresult
/**
* Creates an item for the given label and value and inserts it into the
* container at the specified position.
*
* @param aIndex - the index where the new item will be inserted
* @param aLabel - the label for the new item
* @param aValue - the value of the new item
*/
nsIDOMXULElement insertItemAt (in long aIndex, in DOMString aLabel, in DOMString aValue);
pub unsafe fn RemoveItemAt(
&self,
aIndex: int32_t,
_retval: *mut *const nsIDOMXULElement
) -> nsresult
[src]
&self,
aIndex: int32_t,
_retval: *mut *const nsIDOMXULElement
) -> nsresult
/**
* Removes an item from the container.
*
* @param aIndex - index of the item to remove
*/
nsIDOMXULElement removeItemAt (in long aIndex);
pub unsafe fn GetItemCount(&self, aItemCount: *mut uint32_t) -> nsresult
[src]
/**
* Returns a count of items in the container.
*/
readonly attribute unsigned long itemCount;
pub unsafe fn GetIndexOfItem(
&self,
aItem: *const nsIDOMXULElement,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
aItem: *const nsIDOMXULElement,
_retval: *mut int32_t
) -> nsresult
/**
* Returns the index of an item or -1 if the item is not in the container.
*
* @param aItem - the item to determine the index of
*/
long getIndexOfItem (in nsIDOMXULElement aItem);
pub unsafe fn GetItemAtIndex(
&self,
aIndex: int32_t,
_retval: *mut *const nsIDOMXULElement
) -> nsresult
[src]
&self,
aIndex: int32_t,
_retval: *mut *const nsIDOMXULElement
) -> nsresult
/**
* Returns the item at a given index or null if the item is not is the
* container.
*
* @param aIndex - the index of the item to return
*/
nsIDOMXULElement getItemAtIndex (in long aIndex);
Methods from Deref<Target = nsIDOMXULContainerItemElement>
pub fn coerce<T: nsIDOMXULContainerItemElementCoerce>(&self) -> &T
[src]
Cast this nsIDOMXULContainerItemElement
to one of its base interfaces.
pub unsafe fn GetParentContainer(
&self,
aParentContainer: *mut *const nsIDOMXULContainerElement
) -> nsresult
[src]
&self,
aParentContainer: *mut *const nsIDOMXULContainerElement
) -> nsresult
/**
* Returns the parent container if any.
*/
readonly attribute nsIDOMXULContainerElement parentContainer;
Trait Implementations
impl XpCom for nsIDOMXULContainerElement
[src]
const IID: nsIID
IID: nsIID = nsID(2998703800, 12796, 17140, [147, 122, 189, 39, 41, 26, 244, 11])
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 nsIDOMXULContainerElement
[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 nsIDOMXULContainerElement
[src]
type Target = nsIDOMXULContainerItemElement
The resulting type after dereferencing.
fn deref(&self) -> &nsIDOMXULContainerItemElement
[src]
Dereferences the value.