Interface nsISystemStatusBarType

Allow applications to interface with the Mac OS X system status bar.

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Add an item to the system status bar. Each item can only be present once, subsequent addItem calls with the same element will be ignored. The system status bar holds a strong reference to the added XUL menu element and the item will stay in the status bar until it is removed via a call to removeItem, or until the process shuts down.

    Parameters

    • aMenuElement: Element

    Returns void

  • Remove a previously-added item from the menu bar. Calling this with an element that has not been added before will be silently ignored.

    Parameters

    • aMenuElement: Element

    Returns void

Generated using TypeDoc