Struct xpcom::interfaces::nsIEventListenerInfo
[−]
[src]
#[repr(C)]pub struct nsIEventListenerInfo { /* fields omitted */ }
interface nsIEventListenerInfo : nsISupports
/**
* An instance of this interface describes how an event listener
* was added to an event target.
*/
Methods
impl nsIEventListenerInfo
[src]
pub fn coerce<T: nsIEventListenerInfoCoerce>(&self) -> &T
[src]
Cast this nsIEventListenerInfo
to one of its base interfaces.
impl nsIEventListenerInfo
[src]
pub unsafe fn GetType(&self, aType: &mut nsAString) -> nsresult
[src]
/**
* The type of the event for which the listener was added.
* Null if the listener is for all the events.
*/
readonly attribute AString type;
pub unsafe fn GetCapturing(&self, aCapturing: *mut bool) -> nsresult
[src]
readonly attribute boolean capturing;
pub unsafe fn GetAllowsUntrusted(&self, aAllowsUntrusted: *mut bool) -> nsresult
[src]
readonly attribute boolean allowsUntrusted;
pub unsafe fn GetInSystemEventGroup(
&self,
aInSystemEventGroup: *mut bool
) -> nsresult
[src]
&self,
aInSystemEventGroup: *mut bool
) -> nsresult
readonly attribute boolean inSystemEventGroup;
pub unsafe fn ToSource(&self, _retval: &mut nsAString) -> nsresult
[src]
/**
* Tries to serialize event listener to a string.
* Returns null if serialization isn't possible
* (for example with C++ listeners).
*/
AString toSource ();
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 nsIEventListenerInfo
[src]
const IID: nsIID
IID: nsIID = nsID(297426903, 36274, 19226, [159, 103, 52, 44, 250, 17, 175, 173])
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 nsIEventListenerInfo
[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 nsIEventListenerInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.