Struct xpcom::interfaces::nsIEditorObserver
[−]
[src]
#[repr(C)]pub struct nsIEditorObserver { /* fields omitted */ }
interface nsIEditorObserver : nsISupports
/**
* A generic editor observer interface.
* <P>
* nsIEditorObserver is the interface used by applications wishing to be notified
* when the editor has completed a user action.
*
*/
Methods
impl nsIEditorObserver
[src]
pub fn coerce<T: nsIEditorObserverCoerce>(&self) -> &T
[src]
Cast this nsIEditorObserver
to one of its base interfaces.
impl nsIEditorObserver
[src]
pub unsafe fn EditAction(&self) -> nsresult
[src]
/**
* Called after the editor completes a user action.
*/
void EditAction ();
pub unsafe fn BeforeEditAction(&self) -> nsresult
[src]
/**
* Called when editor starts to handle a user action. I.e., This must be
* called before the first DOM change.
*/
void BeforeEditAction ();
pub unsafe fn CancelEditAction(&self) -> nsresult
[src]
/**
* Called after BeforeEditAction() is called but EditorAction() won't be
* called.
*/
void CancelEditAction ();
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 nsIEditorObserver
[src]
const IID: nsIID
IID: nsIID = nsID(4092483494, 35084, 19680, [165, 132, 138, 132, 187, 160, 41, 46])
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 nsIEditorObserver
[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 nsIEditorObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.