pub trait DOMDOMSelectionExt: 'static {
Show 47 methods fn add_range(&self, range: &impl IsA<DOMRange>); fn collapse(&self, node: &impl IsA<DOMNode>, offset: c_ulong); fn collapse_to_end(&self) -> Result<(), Error>; fn collapse_to_start(&self) -> Result<(), Error>; fn contains_node(&self, node: &impl IsA<DOMNode>, allowPartial: bool) -> bool; fn delete_from_document(&self); fn empty(&self); fn extend(
        &self,
        node: &impl IsA<DOMNode>,
        offset: c_ulong
    ) -> Result<(), Error>; fn anchor_node(&self) -> Option<DOMNode>; fn anchor_offset(&self) -> c_ulong; fn base_node(&self) -> Option<DOMNode>; fn base_offset(&self) -> c_ulong; fn extent_node(&self) -> Option<DOMNode>; fn extent_offset(&self) -> c_ulong; fn focus_node(&self) -> Option<DOMNode>; fn focus_offset(&self) -> c_ulong; fn is_collapsed(&self) -> bool; fn range_at(&self, index: c_ulong) -> Result<DOMRange, Error>; fn range_count(&self) -> c_ulong; fn selection_type(&self) -> Option<GString>; fn modify(&self, alter: &str, direction: &str, granularity: &str); fn remove_all_ranges(&self); fn select_all_children(&self, node: &impl IsA<DOMNode>); fn set_base_and_extent(
        &self,
        baseNode: &impl IsA<DOMNode>,
        baseOffset: c_ulong,
        extentNode: &impl IsA<DOMNode>,
        extentOffset: c_ulong
    ); fn set_position(&self, node: &impl IsA<DOMNode>, offset: c_ulong); fn get_property_anchor_node(&self) -> Option<DOMNode>; fn get_property_anchor_offset(&self) -> c_ulong; fn get_property_base_node(&self) -> Option<DOMNode>; fn get_property_base_offset(&self) -> c_ulong; fn get_property_extent_node(&self) -> Option<DOMNode>; fn get_property_extent_offset(&self) -> c_ulong; fn get_property_focus_node(&self) -> Option<DOMNode>; fn get_property_focus_offset(&self) -> c_ulong; fn get_property_is_collapsed(&self) -> bool; fn get_property_range_count(&self) -> c_ulong; fn type_(&self) -> Option<GString>; fn connect_anchor_node_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_anchor_offset_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_base_node_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_base_offset_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_extent_node_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_extent_offset_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_focus_node_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_focus_offset_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_is_collapsed_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_range_count_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}
Expand description

Trait containing all DOMDOMSelection methods.

Implementors

DOMDOMSelection

Required Methods

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

range

A DOMRange

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

node

A DOMNode

offset

A gulong

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

node

A DOMNode

allowPartial

A gboolean

Returns

A gboolean

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

node

A DOMNode

offset

A gulong

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMNode

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gulong

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMNode

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gulong

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMNode

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gulong

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A DOMNode

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gulong

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gboolean

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

index

A gulong

Returns

A DOMRange

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gulong

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Returns

A gchar

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

alter

A gchar

direction

A gchar

granularity

A gchar

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

node

A DOMNode

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

baseNode

A DOMNode

baseOffset

A gulong

extentNode

A DOMNode

extentOffset

A gulong

Available on crate feature v2_16 only.
Deprecated since 2.22

Use JavaScriptCore API instead

node

A DOMNode

offset

A gulong

Implementors