Struct xpcom::interfaces::nsIDOMXULContainerElement [] [src]

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

interface nsIDOMXULContainerElement : nsIDOMXULContainerItemElement

Methods

impl nsIDOMXULContainerElement
[src]

[src]

Cast this nsIDOMXULContainerElement to one of its base interfaces.

impl nsIDOMXULContainerElement
[src]

[src]

/**
   * 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);

[src]

/**
   * 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);

[src]

/**
   * Removes an item from the container.
   *
   * @param aIndex - index of the item to remove
   */

nsIDOMXULElement removeItemAt (in long aIndex);

[src]

/**
   * Returns a count of items in the container.
   */

readonly attribute unsigned long itemCount;

[src]

/**
   * 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);

[src]

/**
   * 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>

[src]

Cast this nsIDOMXULContainerItemElement to one of its base interfaces.

[src]

/**
   * Returns the parent container if any.
   */

readonly attribute nsIDOMXULContainerElement parentContainer;

Trait Implementations

impl XpCom for nsIDOMXULContainerElement
[src]

IID: nsIID = nsID(2998703800, 12796, 17140, [147, 122, 189, 39, 41, 26, 244, 11])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDOMXULContainerElement
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.