Struct xpcom::interfaces::nsIDOMRange [] [src]

#[repr(C)]
pub struct nsIDOMRange { /* fields omitted */ }

interface nsIDOMRange : nsISupports

Methods

impl nsIDOMRange
[src]

[src]

Cast this nsIDOMRange to one of its base interfaces.

impl nsIDOMRange
[src]

START_TO_START: i64 = 0

START_TO_END: i64 = 1

END_TO_END: i64 = 2

END_TO_START: i64 = 3

[src]

/**
 * 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;

[src]

readonly attribute unsigned long startOffset;

[src]

readonly attribute nsIDOMNode endContainer;

[src]

readonly attribute unsigned long endOffset;

[src]

readonly attribute boolean collapsed;

[src]

readonly attribute nsIDOMNode commonAncestorContainer;

[src]

void setStart (in nsIDOMNode refNode, in unsigned long offset);

[src]

void setEnd (in nsIDOMNode refNode, in unsigned long offset);

[src]

void setStartBefore (in nsIDOMNode refNode);

[src]

void setStartAfter (in nsIDOMNode refNode);

[src]

void setEndBefore (in nsIDOMNode refNode);

[src]

void setEndAfter (in nsIDOMNode refNode);

[src]

void collapse (in boolean toStart);

[src]

void selectNode (in nsIDOMNode refNode);

[src]

void selectNodeContents (in nsIDOMNode refNode);

[src]

short compareBoundaryPoints (in unsigned short how, in nsIDOMRange sourceRange);

[src]

void deleteContents ();

[src]

nsIDOMDocumentFragment extractContents ();

[src]

nsIDOMDocumentFragment cloneContents ();

[src]

void insertNode (in nsIDOMNode newNode);

[src]

void surroundContents (in nsIDOMNode newParent);

[src]

nsIDOMRange cloneRange ();

[src]

DOMString toString ();

[src]

void detach ();

[src]

nsIDOMDocumentFragment createContextualFragment (in DOMString fragment);

[src]

boolean isPointInRange (in nsIDOMNode parent, in unsigned long offset);

[src]

short comparePoint (in nsIDOMNode parent, in unsigned long offset);

[src]

/**
   * Returns whether the range intersects node.
   */

boolean intersectsNode (in nsIDOMNode node);

[src]

nsIDOMClientRectList getClientRects ();

[src]

nsIDOMClientRect getBoundingClientRect ();

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIDOMRange
[src]

IID: nsIID = nsID(529794396, 17127, 18992, [150, 161, 106, 128, 79, 28, 45, 30])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDOMRange
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.