WebKit2WebExtension.DOMDOMSelection¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class WebKit2WebExtension.DOMDOMSelection(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add_range(range)¶
- Parameters:
range (
WebKit2WebExtension.DOMRange
) – AWebKit2WebExtension.DOMRange
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- collapse(node, offset)¶
- Parameters:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- collapse_to_end()¶
- Raises:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- collapse_to_start()¶
- Raises:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- contains_node(node, allowPartial)¶
- Parameters:
- Returns:
A
bool
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- delete_from_document()¶
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- empty()¶
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- extend(node, offset)¶
- Parameters:
- Raises:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_anchor_node()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_anchor_offset()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_base_node()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_base_offset()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_extent_node()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_extent_offset()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_focus_node()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_focus_offset()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_is_collapsed()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_range_at(index)¶
- Parameters:
- Raises:
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_range_count()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_selection_type()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- modify(alter, direction, granularity)¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- remove_all_ranges()¶
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- select_all_children(node)¶
- Parameters:
node (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_base_and_extent(baseNode, baseOffset, extentNode, extentOffset)¶
- Parameters:
baseNode (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
extentNode (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_position(node, offset)¶
- Parameters:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
Property Details¶
- WebKit2WebExtension.DOMDOMSelection.props.anchor_node¶
- Name:
anchor-node
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNode
DOMSelection:anchor-node
- WebKit2WebExtension.DOMDOMSelection.props.base_node¶
- Name:
base-node
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNode
DOMSelection:base-node
- WebKit2WebExtension.DOMDOMSelection.props.extent_node¶
- Name:
extent-node
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNode
DOMSelection:extent-node
- WebKit2WebExtension.DOMDOMSelection.props.focus_node¶
- Name:
focus-node
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNode
DOMSelection:focus-node