Struct xpcom::interfaces::nsIDOMRange
[−]
[src]
#[repr(C)]pub struct nsIDOMRange { /* fields omitted */ }
interface nsIDOMRange : nsISupports
Methods
impl nsIDOMRange
[src]
pub fn coerce<T: nsIDOMRangeCoerce>(&self) -> &T
[src]
Cast this nsIDOMRange
to one of its base interfaces.
impl nsIDOMRange
[src]
pub const START_TO_START: i64
START_TO_START: i64 = 0
pub const START_TO_END: i64
START_TO_END: i64 = 1
pub const END_TO_END: i64
END_TO_END: i64 = 2
pub const END_TO_START: i64
END_TO_START: i64 = 3
pub unsafe fn GetStartContainer(
&self,
aStartContainer: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
aStartContainer: *mut *const nsIDOMNode
) -> nsresult
/**
* The nsIDOMRange interface is an interface to a DOM range object.
*
* For more information on this interface please see
* http://www.w3.org/TR/DOM-Level-2-Traversal-Range/
*/
readonly attribute nsIDOMNode startContainer;
pub unsafe fn GetStartOffset(&self, aStartOffset: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long startOffset;
pub unsafe fn GetEndContainer(
&self,
aEndContainer: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
aEndContainer: *mut *const nsIDOMNode
) -> nsresult
readonly attribute nsIDOMNode endContainer;
pub unsafe fn GetEndOffset(&self, aEndOffset: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long endOffset;
pub unsafe fn GetCollapsed(&self, aCollapsed: *mut bool) -> nsresult
[src]
readonly attribute boolean collapsed;
pub unsafe fn GetCommonAncestorContainer(
&self,
aCommonAncestorContainer: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
aCommonAncestorContainer: *mut *const nsIDOMNode
) -> nsresult
readonly attribute nsIDOMNode commonAncestorContainer;
pub unsafe fn SetStart(
&self,
refNode: *const nsIDOMNode,
offset: uint32_t
) -> nsresult
[src]
&self,
refNode: *const nsIDOMNode,
offset: uint32_t
) -> nsresult
void setStart (in nsIDOMNode refNode, in unsigned long offset);
pub unsafe fn SetEnd(
&self,
refNode: *const nsIDOMNode,
offset: uint32_t
) -> nsresult
[src]
&self,
refNode: *const nsIDOMNode,
offset: uint32_t
) -> nsresult
void setEnd (in nsIDOMNode refNode, in unsigned long offset);
pub unsafe fn SetStartBefore(&self, refNode: *const nsIDOMNode) -> nsresult
[src]
void setStartBefore (in nsIDOMNode refNode);
pub unsafe fn SetStartAfter(&self, refNode: *const nsIDOMNode) -> nsresult
[src]
void setStartAfter (in nsIDOMNode refNode);
pub unsafe fn SetEndBefore(&self, refNode: *const nsIDOMNode) -> nsresult
[src]
void setEndBefore (in nsIDOMNode refNode);
pub unsafe fn SetEndAfter(&self, refNode: *const nsIDOMNode) -> nsresult
[src]
void setEndAfter (in nsIDOMNode refNode);
pub unsafe fn Collapse(&self, toStart: bool) -> nsresult
[src]
void collapse (in boolean toStart);
pub unsafe fn SelectNode(&self, refNode: *const nsIDOMNode) -> nsresult
[src]
void selectNode (in nsIDOMNode refNode);
pub unsafe fn SelectNodeContents(&self, refNode: *const nsIDOMNode) -> nsresult
[src]
void selectNodeContents (in nsIDOMNode refNode);
pub unsafe fn CompareBoundaryPoints(
&self,
how: uint16_t,
sourceRange: *const nsIDOMRange,
_retval: *mut int16_t
) -> nsresult
[src]
&self,
how: uint16_t,
sourceRange: *const nsIDOMRange,
_retval: *mut int16_t
) -> nsresult
short compareBoundaryPoints (in unsigned short how, in nsIDOMRange sourceRange);
pub unsafe fn DeleteContents(&self) -> nsresult
[src]
void deleteContents ();
pub unsafe fn ExtractContents(
&self,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
nsIDOMDocumentFragment extractContents ();
pub unsafe fn CloneContents(
&self,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
nsIDOMDocumentFragment cloneContents ();
pub unsafe fn InsertNode(&self, newNode: *const nsIDOMNode) -> nsresult
[src]
void insertNode (in nsIDOMNode newNode);
pub unsafe fn SurroundContents(&self, newParent: *const nsIDOMNode) -> nsresult
[src]
void surroundContents (in nsIDOMNode newParent);
pub unsafe fn CloneRange(&self, _retval: *mut *const nsIDOMRange) -> nsresult
[src]
nsIDOMRange cloneRange ();
pub unsafe fn ToString(&self, _retval: &mut nsAString) -> nsresult
[src]
DOMString toString ();
pub unsafe fn Detach(&self) -> nsresult
[src]
void detach ();
pub unsafe fn CreateContextualFragment(
&self,
fragment: &nsAString,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
[src]
&self,
fragment: &nsAString,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
nsIDOMDocumentFragment createContextualFragment (in DOMString fragment);
pub unsafe fn IsPointInRange(
&self,
parent: *const nsIDOMNode,
offset: uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
parent: *const nsIDOMNode,
offset: uint32_t,
_retval: *mut bool
) -> nsresult
boolean isPointInRange (in nsIDOMNode parent, in unsigned long offset);
pub unsafe fn ComparePoint(
&self,
parent: *const nsIDOMNode,
offset: uint32_t,
_retval: *mut int16_t
) -> nsresult
[src]
&self,
parent: *const nsIDOMNode,
offset: uint32_t,
_retval: *mut int16_t
) -> nsresult
short comparePoint (in nsIDOMNode parent, in unsigned long offset);
pub unsafe fn IntersectsNode(
&self,
node: *const nsIDOMNode,
_retval: *mut bool
) -> nsresult
[src]
&self,
node: *const nsIDOMNode,
_retval: *mut bool
) -> nsresult
/**
* Returns whether the range intersects node.
*/
boolean intersectsNode (in nsIDOMNode node);
pub unsafe fn GetClientRects(
&self,
_retval: *mut *const nsIDOMClientRectList
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMClientRectList
) -> nsresult
nsIDOMClientRectList getClientRects ();
pub unsafe fn GetBoundingClientRect(
&self,
_retval: *mut *const nsIDOMClientRect
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMClientRect
) -> nsresult
nsIDOMClientRect getBoundingClientRect ();
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 nsIDOMRange
[src]
const IID: nsIID
IID: nsIID = nsID(529794396, 17127, 18992, [150, 161, 106, 128, 79, 28, 45, 30])
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 nsIDOMRange
[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 nsIDOMRange
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.