WebKit2WebExtension.WebHitTestResult

g GObject.Object GObject.Object WebKit2WebExtension.HitTestResult WebKit2WebExtension.HitTestResult GObject.Object->WebKit2WebExtension.HitTestResult WebKit2WebExtension.WebHitTestResult WebKit2WebExtension.WebHitTestResult WebKit2WebExtension.HitTestResult->WebKit2WebExtension.WebHitTestResult

Subclasses:

None

Methods

Inherited:

WebKit2WebExtension.HitTestResult (12), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_js_node (world)

get_node ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

WebKit2WebExtension.HitTestResult (6)

Name

Type

Flags

Short Description

node

WebKit2WebExtension.DOMNode

r/w/co

deprecated

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

WebKit2WebExtension.HitTestResult

r

Class Details

class WebKit2WebExtension.WebHitTestResult(**kwargs)
Bases:

WebKit2WebExtension.HitTestResult

Abstract:

No

Structure:

WebKit2WebExtension.WebHitTestResultClass

Result of a Hit Test (Web Process Extensions).

WebKit2WebExtension.WebHitTestResult extends WebKit2WebExtension.HitTestResult to provide information about the WebKit2WebExtension.DOMNode in the coordinates of the Hit Test.

New in version 2.8.

get_js_node(world)
Parameters:

world (WebKit2WebExtension.ScriptWorld or None) – a WebKit2WebExtension.ScriptWorld, or None to use the default

Returns:

a JavaScriptCore.Value for the DOM node, or None

Return type:

JavaScriptCore.Value or None

Get the JavaScriptCore.Value for the DOM node in world at the coordinates of the Hit Test.

New in version 2.40.

get_node()
Returns:

a WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Get the WebKit2WebExtension.DOMNode in the coordinates of the Hit Test.

New in version 2.8.

Deprecated since version 2.40: Use WebKit2WebExtension.WebHitTestResult.get_js_node() instead

Property Details

WebKit2WebExtension.WebHitTestResult.props.node
Name:

node

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The WebKit2WebExtension.DOMNode

Deprecated since version 2.40.