WebKitWebProcessExtension.WebHitTestResult

g GObject.Object GObject.Object WebKitWebProcessExtension.WebHitTestResult WebKitWebProcessExtension.WebHitTestResult GObject.Object->WebKitWebProcessExtension.WebHitTestResult

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

context_is_editable ()

context_is_image ()

context_is_link ()

context_is_media ()

context_is_scrollbar ()

context_is_selection ()

get_context ()

get_image_uri ()

get_js_node (world)

get_link_label ()

get_link_title ()

get_link_uri ()

get_media_uri ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class WebKitWebProcessExtension.WebHitTestResult(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKitWebProcessExtension.WebHitTestResultClass

Result of a Hit Test (Web Process Extensions).

WebKitWebProcessExtension.WebHitTestResult extends WebKitWebProcessExtension.HitTestResult to provide information about the #WebKitDOMNode in the coordinates of the Hit Test.

New in version 2.8.

context_is_editable()
Returns:

True if the hit test covers an editable element or False otherwise.

Return type:

bool

Check whether there is an editable element at the hit test position.

Checks whether WebKitWebProcessExtension.HitTestResultContext.EDITABLE flag is present in the context flags.

context_is_image()
Returns:

True if the hit test covers an image element or False otherwise.

Return type:

bool

Check whether there is an image element at the hit test position.

Checks whether WebKitWebProcessExtension.HitTestResultContext.IMAGE flag is present in the context flags.

Returns:

True if the hit test covers a link element or False otherwise.

Return type:

bool

Check whether there is a link element at the hit test position.

Checks whether WebKitWebProcessExtension.HitTestResultContext.LINK flag is present in the context flags.

context_is_media()
Returns:

True if the hit test covers a media element or False otherwise.

Return type:

bool

Check whether there is a media element at the hit test position.

Checks whether WebKitWebProcessExtension.HitTestResultContext.MEDIA flag is present in the context flags.

context_is_scrollbar()
Returns:

True if the hit test covers a scrollbar or False otherwise.

Return type:

bool

Check whether there is a scrollbar at the hit test position.

Checks whether WebKitWebProcessExtension.HitTestResultContext.SCROLLBAR flag is present in the context flags.

context_is_selection()
Returns:

True if the hit test covers a selected element or False otherwise.

Return type:

bool

Check whether there is a selected element at the hit test position.

Checks whether WebKitWebProcessExtension.HitTestResultContext.SELECTION flag is present in the context flags.

get_context()
Returns:

a bitmask of WebKitWebProcessExtension.HitTestResultContext flags

Return type:

int

Gets the the context flags for the hit test result.

get_image_uri()
Returns:

the URI of the image element, or None if the hit test does not cover an image element.

Return type:

str

Obtains the URI associated with the image element at the hit test position.

get_js_node(world)
Parameters:

world (WebKitWebProcessExtension.ScriptWorld or None) – a WebKitWebProcessExtension.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.

Returns:

the label of the link element, or None if the hit test does not cover a link element or the link element does not have a label.

Return type:

str

Obtains the label associated with the link element at the hit test position.

Returns:

the title of the link element, or None if the hit test does not cover a link element or the link element does not have a title.

Return type:

str

Obtains the title associated with the link element at the hit test position.

Returns:

the URI of the link element, or None if the hit test does not cover a link element.

Return type:

str

Obtains the URI associated with the link element at the hit test position.

get_media_uri()
Returns:

the URI of the media element, or None if the hit test does not cover a media element.

Return type:

str

Obtains the URI associated with the media element at the hit test position.