Struct xpcom::interfaces::nsISelectionListener
[−]
[src]
#[repr(C)]pub struct nsISelectionListener { /* fields omitted */ }
interface nsISelectionListener : nsISupports
Methods
impl nsISelectionListener
[src]
pub fn coerce<T: nsISelectionListenerCoerce>(&self) -> &T
[src]
Cast this nsISelectionListener
to one of its base interfaces.
impl nsISelectionListener
[src]
pub const NO_REASON: i64
NO_REASON: i64 = 0
pub const DRAG_REASON: i64
DRAG_REASON: i64 = 1
pub const MOUSEDOWN_REASON: i64
MOUSEDOWN_REASON: i64 = 2
pub const MOUSEUP_REASON: i64
MOUSEUP_REASON: i64 = 4
pub const KEYPRESS_REASON: i64
KEYPRESS_REASON: i64 = 8
pub const SELECTALL_REASON: i64
SELECTALL_REASON: i64 = 16
pub const COLLAPSETOSTART_REASON: i64
COLLAPSETOSTART_REASON: i64 = 32
pub const COLLAPSETOEND_REASON: i64
COLLAPSETOEND_REASON: i64 = 64
pub const IME_REASON: i64
IME_REASON: i64 = 128
pub unsafe fn NotifySelectionChanged(
&self,
doc: *const nsIDOMDocument,
sel: *const nsISelection,
reason: int16_t
) -> nsresult
[src]
&self,
doc: *const nsIDOMDocument,
sel: *const nsISelection,
reason: int16_t
) -> nsresult
void notifySelectionChanged (in nsIDOMDocument doc, in nsISelection sel, in short reason);
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 nsISelectionListener
[src]
const IID: nsIID
IID: nsIID = nsID(1164468889, 44587, 18108, [149, 2, 197, 108, 53, 105, 26, 185])
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 nsISelectionListener
[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 nsISelectionListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.