Struct xpcom::interfaces::nsIDOMScreen [] [src]

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

interface nsIDOMScreen : nsIDOMEventTarget

Methods

impl nsIDOMScreen
[src]

[src]

Cast this nsIDOMScreen to one of its base interfaces.

impl nsIDOMScreen
[src]

[src]

readonly attribute long top;

[src]

readonly attribute long availWidth;

[src]

readonly attribute long availHeight;

[src]

readonly attribute long availLeft;

[src]

readonly attribute long availTop;

Methods from Deref<Target = nsIDOMEventTarget>

[src]

Cast this nsIDOMEventTarget to one of its base interfaces.

[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);

Trait Implementations

impl XpCom for nsIDOMScreen
[src]

IID: nsIID = nsID(2194117195, 19270, 20058, [168, 210, 110, 219, 95, 192, 166, 13])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDOMScreen
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.