Struct xpcom::interfaces::nsIDOMText
[−]
[src]
#[repr(C)]pub struct nsIDOMText { /* fields omitted */ }
interface nsIDOMText : nsIDOMCharacterData
Methods
impl nsIDOMText
[src]
pub fn coerce<T: nsIDOMTextCoerce>(&self) -> &T
[src]
Cast this nsIDOMText
to one of its base interfaces.
impl nsIDOMText
[src]
pub unsafe fn SplitText(
&self,
offset: uint32_t,
_retval: *mut *const nsIDOMText
) -> nsresult
[src]
&self,
offset: uint32_t,
_retval: *mut *const nsIDOMText
) -> nsresult
/**
* The nsIDOMText interface inherits from nsIDOMCharacterData and represents
* the textual content (termed character data in XML) of an Element or Attr.
*
* For more information on this interface please see
* http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html
*/
nsIDOMText splitText (in unsigned long offset) raises (DOMException);
pub unsafe fn GetWholeText(&self, aWholeText: &mut nsAString) -> nsresult
[src]
/**
* The concatenation of all logically adjacent text nodes with this text
* node, where "logically adjacent" consists of all text nodes which can be
* reached by traversing the document tree in either direction without
* passing an element, comment, or processing-instruction boundary.
*/
readonly attribute DOMString wholeText;
Methods from Deref<Target = nsIDOMCharacterData>
pub fn coerce<T: nsIDOMCharacterDataCoerce>(&self) -> &T
[src]
Cast this nsIDOMCharacterData
to one of its base interfaces.
pub unsafe fn GetData(&self, aData: &mut nsAString) -> nsresult
[src]
/**
* The nsIDOMCharacterData interface extends nsIDOMNode with a set of
* attributes and methods for accessing character data in the DOM.
*
* For more information on this interface please see
* http://www.w3.org/TR/DOM-Level-2-Core/
*/
attribute DOMString data;
pub unsafe fn SetData(&self, aData: &nsAString) -> nsresult
[src]
/**
* The nsIDOMCharacterData interface extends nsIDOMNode with a set of
* attributes and methods for accessing character data in the DOM.
*
* For more information on this interface please see
* http://www.w3.org/TR/DOM-Level-2-Core/
*/
attribute DOMString data;
pub unsafe fn GetLength(&self, aLength: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long length;
pub unsafe fn SubstringData(
&self,
offset: uint32_t,
count: uint32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
offset: uint32_t,
count: uint32_t,
_retval: &mut nsAString
) -> nsresult
DOMString substringData (in unsigned long offset, in unsigned long count) raises (DOMException);
pub unsafe fn AppendData(&self, arg: &nsAString) -> nsresult
[src]
void appendData (in DOMString arg) raises (DOMException);
pub unsafe fn InsertData(&self, offset: uint32_t, arg: &nsAString) -> nsresult
[src]
void insertData (in unsigned long offset, in DOMString arg) raises (DOMException);
pub unsafe fn DeleteData(&self, offset: uint32_t, count: uint32_t) -> nsresult
[src]
void deleteData (in unsigned long offset, in unsigned long count) raises (DOMException);
pub unsafe fn ReplaceData(
&self,
offset: uint32_t,
count: uint32_t,
arg: &nsAString
) -> nsresult
[src]
&self,
offset: uint32_t,
count: uint32_t,
arg: &nsAString
) -> nsresult
void replaceData (in unsigned long offset, in unsigned long count, in DOMString arg) raises (DOMException);
Trait Implementations
impl XpCom for nsIDOMText
[src]
const IID: nsIID
IID: nsIID = nsID(1730623892, 27391, 16529, [157, 233, 183, 136, 162, 73, 247, 131])
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 nsIDOMText
[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 nsIDOMText
[src]
type Target = nsIDOMCharacterData
The resulting type after dereferencing.
fn deref(&self) -> &nsIDOMCharacterData
[src]
Dereferences the value.