HitTestResult


Object Hierarchy:

WebKit.HitTestResult WebKit.HitTestResult WebKit.HitTestResult GLib.Object GLib.Object GLib.Object->WebKit.HitTestResult

Description:

[ CCode ( type_id = "webkit_hit_test_result_get_type ()" ) ]
public class HitTestResult : Object

Result of a Hit Test.

A Hit Test is an operation to get context information about a given point in a WebView. HitTestResult represents the result of a Hit Test. It provides context information about what is at the coordinates of the Hit Test, such as if there's a link, an image or a media.

You can get the context of the HitTestResult with get_context that returns a bitmask of HitTestResultContext flags. You can also use context_is_link, context_is_image and context_is_media to determine whether there's a link, image or a media element at the coordinates of the Hit Test. Note that it's possible that several HitTestResultContext flags are active at the same time, for example if there's a link containing an image.

When the mouse is moved over a WebView a Hit Test is performed for the mouse coordinates and mouse_target_changed signal is emitted with a HitTestResult.


Namespace: WebKit
Package: webkit2gtk-4.0

Content:

Properties:

Creation methods:

Methods:

Inherited Members: