Struct xpcom::interfaces::nsIDOMEventTarget
[−]
[src]
#[repr(C)]pub struct nsIDOMEventTarget { /* fields omitted */ }
interface nsIDOMEventTarget : nsISupports
Methods
impl nsIDOMEventTarget
[src]
pub fn coerce<T: nsIDOMEventTargetCoerce>(&self) -> &T
[src]
Cast this nsIDOMEventTarget
to one of its base interfaces.
impl nsIDOMEventTarget
[src]
pub unsafe fn RemoveEventListener(
&self,
type_: &nsAString,
listener: *const nsIDOMEventListener,
useCapture: bool
) -> nsresult
[src]
&self,
type_: &nsAString,
listener: *const nsIDOMEventListener,
useCapture: bool
) -> nsresult
/**
* 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);
pub unsafe fn RemoveSystemEventListener(
&self,
type_: &nsAString,
listener: *const nsIDOMEventListener,
aUseCapture: bool
) -> nsresult
[src]
&self,
type_: &nsAString,
listener: *const nsIDOMEventListener,
aUseCapture: bool
) -> nsresult
/**
* removeSystemEventListener() should be used if you have used
* addSystemEventListener().
*/
[noscript] void removeSystemEventListener (in DOMString type, in nsIDOMEventListener listener, [optional] in boolean aUseCapture);
pub unsafe fn DispatchEvent(
&self,
evt: *const nsIDOMEvent,
_retval: *mut bool
) -> nsresult
[src]
&self,
evt: *const nsIDOMEvent,
_retval: *mut bool
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIDOMEventTarget
[src]
const IID: nsIID
IID: nsIID = nsID(2591599676, 38151, 19712, [178, 214, 16, 181, 8, 210, 236, 49])
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 nsIDOMEventTarget
[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 nsIDOMEventTarget
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.