Struct xpcom::interfaces::nsIDOMEventTarget [] [src]

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

interface nsIDOMEventTarget : nsISupports

Methods

impl nsIDOMEventTarget
[src]

[src]

Cast this nsIDOMEventTarget to one of its base interfaces.

impl nsIDOMEventTarget
[src]

[src]

/**
   * This method allows the removal of event listeners from the event
   * target. If an EventListener is removed from an EventTarget while it
   * is processing an event, it will not be triggered by the current actions.
   * EventListeners can never be invoked after being removed.
   * Calling removeEventListener with arguments which do not identify any
   * currently registered EventListener on the EventTarget has no effect.
   *
   * @param   type Specifies the event type of the EventListener being
   *               removed.
   * @param   listener The EventListener parameter indicates the
   *                   EventListener to be removed.
   * @param   useCapture Specifies whether the EventListener being
   *                     removed was registered as a capturing listener or
   *                     not. If a listener was registered twice, one with
   *                     capture and one without, each must be removed
   *                     separately. Removal of a capturing listener does
   *                     not affect a non-capturing version of the same
   *                     listener, and vice versa.
   */

void removeEventListener (in DOMString type, in nsIDOMEventListener listener, [optional] in boolean useCapture);

[src]

/**
   * removeSystemEventListener() should be used if you have used
   * addSystemEventListener().
   */

[noscript] void removeSystemEventListener (in DOMString type, in nsIDOMEventListener listener, [optional] in boolean aUseCapture);

[src]

/**
   * This method allows the dispatch of events into the implementations
   * event model. Events dispatched in this manner will have the same
   * capturing and bubbling behavior as events dispatched directly by the
   * implementation. The target of the event is the EventTarget on which
   * dispatchEvent is called.
   *
   * @param   evt Specifies the event type, behavior, and contextual
   *              information to be used in processing the event.
   * @return  Indicates whether any of the listeners which handled the
   *          event called preventDefault. If preventDefault was called
   *          the value is false, else the value is true.
   * @throws  INVALID_STATE_ERR: Raised if the Event's type was
   *              not specified by initializing the event before
   *              dispatchEvent was called. Specification of the Event's
   *              type as null or an empty string will also trigger this
   *              exception.
   */

boolean dispatchEvent (in nsIDOMEvent evt) raises (DOMException);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIDOMEventTarget
[src]

IID: nsIID = nsID(2591599676, 38151, 19712, [178, 214, 16, 181, 8, 210, 236, 49])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDOMEventTarget
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.