Struct xpcom::interfaces::nsIAccessibleEditableText
[−]
[src]
#[repr(C)]pub struct nsIAccessibleEditableText { /* fields omitted */ }
interface nsIAccessibleEditableText : nsISupports
Methods
impl nsIAccessibleEditableText
[src]
pub fn coerce<T: nsIAccessibleEditableTextCoerce>(&self) -> &T
[src]
Cast this nsIAccessibleEditableText
to one of its base interfaces.
impl nsIAccessibleEditableText
[src]
pub unsafe fn SetTextContents(&self, text: &nsAString) -> nsresult
[src]
/**
* Replaces the text represented by this object by the given text.
*/
void setTextContents (in AString text);
pub unsafe fn InsertText(&self, text: &nsAString, position: int32_t) -> nsresult
[src]
/**
* Inserts text at the specified position.
*
* @param text - text that is inserted.
* @param position - index at which to insert the text.
*/
void insertText (in AString text, in long position);
pub unsafe fn CopyText(&self, startPos: int32_t, endPos: int32_t) -> nsresult
[src]
/**
* Copies the text range into the clipboard.
*
* @param startPos - start index of the text to moved into the clipboard.
* @param endPos - end index of the text to moved into the clipboard.
*/
void copyText (in long startPos, in long endPos);
pub unsafe fn CutText(&self, startPos: int32_t, endPos: int32_t) -> nsresult
[src]
/**
* Deletes a range of text and copies it to the clipboard.
*
* @param startPos - start index of the text to be deleted.
* @param endOffset - end index of the text to be deleted.
*/
void cutText (in long startPos, in long endPos);
pub unsafe fn DeleteText(&self, startPos: int32_t, endPos: int32_t) -> nsresult
[src]
/**
* Deletes a range of text.
*
* @param startPos - start index of the text to be deleted.
* @param endPos - end index of the text to be deleted.
*/
void deleteText (in long startPos, in long endPos);
pub unsafe fn PasteText(&self, position: int32_t) -> nsresult
[src]
/**
* Pastes text from the clipboard.
*
* @param position - index at which to insert the text from the system
* clipboard into the text represented by this object.
*/
void pasteText (in long position);
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 nsIAccessibleEditableText
[src]
const IID: nsIID
IID: nsIID = nsID(680615114, 13158, 16436, [186, 29, 183, 175, 185, 179, 118, 57])
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 nsIAccessibleEditableText
[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 nsIAccessibleEditableText
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.