pub trait DOMRangeExt: 'static {
Show 38 methods fn clone_contents(&self) -> Result<DOMDocumentFragment, Error>; fn clone_range(&self) -> Result<DOMRange, Error>; fn collapse(&self, toStart: bool) -> Result<(), Error>; fn compare_boundary_points(
        &self,
        how: c_ushort,
        sourceRange: &impl IsA<DOMRange>
    ) -> Result<c_short, Error>; fn compare_node(&self, refNode: &impl IsA<DOMNode>) -> Result<c_short, Error>; fn compare_point(
        &self,
        refNode: &impl IsA<DOMNode>,
        offset: c_long
    ) -> Result<c_short, Error>; fn create_contextual_fragment(
        &self,
        html: &str
    ) -> Result<DOMDocumentFragment, Error>; fn delete_contents(&self) -> Result<(), Error>; fn detach(&self) -> Result<(), Error>; fn expand(&self, unit: &str) -> Result<(), Error>; fn extract_contents(&self) -> Result<DOMDocumentFragment, Error>; fn collapsed(&self) -> Result<(), Error>; fn common_ancestor_container(&self) -> Result<DOMNode, Error>; fn end_container(&self) -> Result<DOMNode, Error>; fn end_offset(&self) -> Result<c_long, Error>; fn start_container(&self) -> Result<DOMNode, Error>; fn start_offset(&self) -> Result<c_long, Error>; fn text(&self) -> Option<GString>; fn insert_node(&self, newNode: &impl IsA<DOMNode>) -> Result<(), Error>; fn intersects_node(&self, refNode: &impl IsA<DOMNode>) -> Result<(), Error>; fn is_point_in_range(
        &self,
        refNode: &impl IsA<DOMNode>,
        offset: c_long
    ) -> Result<(), Error>; fn select_node(&self, refNode: &impl IsA<DOMNode>) -> Result<(), Error>; fn select_node_contents(
        &self,
        refNode: &impl IsA<DOMNode>
    ) -> Result<(), Error>; fn set_end(
        &self,
        refNode: &impl IsA<DOMNode>,
        offset: c_long
    ) -> Result<(), Error>; fn set_end_after(&self, refNode: &impl IsA<DOMNode>) -> Result<(), Error>; fn set_end_before(&self, refNode: &impl IsA<DOMNode>) -> Result<(), Error>; fn set_start(
        &self,
        refNode: &impl IsA<DOMNode>,
        offset: c_long
    ) -> Result<(), Error>; fn set_start_after(&self, refNode: &impl IsA<DOMNode>) -> Result<(), Error>; fn set_start_before(&self, refNode: &impl IsA<DOMNode>) -> Result<(), Error>; fn surround_contents(
        &self,
        newParent: &impl IsA<DOMNode>
    ) -> Result<(), Error>; fn to_string(&self) -> Result<GString, Error>; fn connect_collapsed_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_common_ancestor_container_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_end_container_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_end_offset_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_start_container_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_start_offset_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_text_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}
Expand description

Trait containing all DOMRange methods.

Implementors

DOMRange

Required Methods

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMDocumentFragment

Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMRange

Deprecated since 2.22

Use JavaScriptCore API instead

toStart

A gboolean

Deprecated since 2.22

Use JavaScriptCore API instead

how

A gushort

sourceRange

A DOMRange

Returns

A gshort

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

Returns

A gshort

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

offset

A glong

Returns

A gshort

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

html

A gchar

Returns

A DOMDocumentFragment

Deprecated since 2.22

Use JavaScriptCore API instead

Deprecated since 2.22

Use JavaScriptCore API instead

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

unit

A gchar

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMDocumentFragment

Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gboolean

Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A glong

Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A glong

Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gchar

Deprecated since 2.22

Use JavaScriptCore API instead

newNode

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

Returns

A gboolean

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

offset

A glong

Returns

A gboolean

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

offset

A glong

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

offset

A glong

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

refNode

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

newParent

A DOMNode

Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gchar

Implementors