WebKit2WebExtension.DOMDOMSelection

g GObject.Object GObject.Object WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMObject GObject.Object->WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMDOMSelection WebKit2WebExtension.DOMDOMSelection WebKit2WebExtension.DOMObject->WebKit2WebExtension.DOMDOMSelection

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

add_range (range)

collapse (node, offset)

collapse_to_end ()

collapse_to_start ()

contains_node (node, allowPartial)

delete_from_document ()

empty ()

extend (node, offset)

get_anchor_node ()

get_anchor_offset ()

get_base_node ()

get_base_offset ()

get_extent_node ()

get_extent_offset ()

get_focus_node ()

get_focus_offset ()

get_is_collapsed ()

get_range_at (index)

get_range_count ()

get_selection_type ()

modify (alter, direction, granularity)

remove_all_ranges ()

select_all_children (node)

set_base_and_extent (baseNode, baseOffset, extentNode, extentOffset)

set_position (node, offset)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

WebKit2WebExtension.DOMObject (1)

Name

Type

Flags

Short Description

anchor-node

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode DOMSelection:anchor-node

anchor-offset

int

r

read-only int DOMSelection:anchor-offset

base-node

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode DOMSelection:base-node

base-offset

int

r

read-only int DOMSelection:base-offset

extent-node

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode DOMSelection:extent-node

extent-offset

int

r

read-only int DOMSelection:extent-offset

focus-node

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode DOMSelection:focus-node

focus-offset

int

r

read-only int DOMSelection:focus-offset

is-collapsed

bool

r

read-only bool DOMSelection:is-collapsed

range-count

int

r

read-only int DOMSelection:range-count

type

str

r

read-only str DOMSelection:type

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

WebKit2WebExtension.DOMObject

r

Class Details

class WebKit2WebExtension.DOMDOMSelection(**kwargs)
Bases:

WebKit2WebExtension.DOMObject

Abstract:

No

Structure:

WebKit2WebExtension.DOMDOMSelectionClass

add_range(range)
Parameters:

range (WebKit2WebExtension.DOMRange) – A WebKit2WebExtension.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:

GLib.Error

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

collapse_to_start()
Raises:

GLib.Error

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

contains_node(node, allowPartial)
Parameters:
Returns:

A bool

Return type:

bool

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:

GLib.Error

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_anchor_node()
Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_anchor_offset()
Returns:

A int

Return type:

int

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_base_node()
Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_base_offset()
Returns:

A int

Return type:

int

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_extent_node()
Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_extent_offset()
Returns:

A int

Return type:

int

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_focus_node()
Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_focus_offset()
Returns:

A int

Return type:

int

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_is_collapsed()
Returns:

A bool

Return type:

bool

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_range_at(index)
Parameters:

index (int) – A int

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMRange

Return type:

WebKit2WebExtension.DOMRange

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_range_count()
Returns:

A int

Return type:

int

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_selection_type()
Returns:

A str

Return type:

str

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

modify(alter, direction, granularity)
Parameters:

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) – A WebKit2WebExtension.DOMNode

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

set_base_and_extent(baseNode, baseOffset, extentNode, extentOffset)
Parameters:

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:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode DOMSelection:anchor-node

WebKit2WebExtension.DOMDOMSelection.props.anchor_offset
Name:

anchor-offset

Type:

int

Default Value:

0

Flags:

READABLE

read-only int DOMSelection:anchor-offset

WebKit2WebExtension.DOMDOMSelection.props.base_node
Name:

base-node

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode DOMSelection:base-node

WebKit2WebExtension.DOMDOMSelection.props.base_offset
Name:

base-offset

Type:

int

Default Value:

0

Flags:

READABLE

read-only int DOMSelection:base-offset

WebKit2WebExtension.DOMDOMSelection.props.extent_node
Name:

extent-node

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode DOMSelection:extent-node

WebKit2WebExtension.DOMDOMSelection.props.extent_offset
Name:

extent-offset

Type:

int

Default Value:

0

Flags:

READABLE

read-only int DOMSelection:extent-offset

WebKit2WebExtension.DOMDOMSelection.props.focus_node
Name:

focus-node

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode DOMSelection:focus-node

WebKit2WebExtension.DOMDOMSelection.props.focus_offset
Name:

focus-offset

Type:

int

Default Value:

0

Flags:

READABLE

read-only int DOMSelection:focus-offset

WebKit2WebExtension.DOMDOMSelection.props.is_collapsed
Name:

is-collapsed

Type:

bool

Default Value:

False

Flags:

READABLE

read-only bool DOMSelection:is-collapsed

WebKit2WebExtension.DOMDOMSelection.props.range_count
Name:

range-count

Type:

int

Default Value:

0

Flags:

READABLE

read-only int DOMSelection:range-count

WebKit2WebExtension.DOMDOMSelection.props.type
Name:

type

Type:

str

Default Value:

''

Flags:

READABLE

read-only str DOMSelection:type