Class

WebKit2WebExtensionHitTestResult

Description [src]

class WebKit2WebExtension.HitTestResult : GObject.Object
{
  priv: WebKitHitTestResultPrivate*
}

Result of a Hit Test.

A Hit Test is an operation to get context information about a given point in a WebKitWebView. WebKitHitTestResult 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 webkit_hit_test_result_get_context() that returns a bitmask of WebKitHitTestResultContext flags. You can also use webkit_hit_test_result_context_is_link(), webkit_hit_test_result_context_is_image() and webkit_hit_test_result_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 WebKitHitTestResultContext flags are active at the same time, for example if there’s a link containing an image.

When the mouse is moved over a WebKitWebView a Hit Test is performed for the mouse coordinates and WebKitWebView::mouse-target-changed signal is emitted with a WebKitHitTestResult.

Hierarchy

hierarchy this WebKitHitTestResult ancestor_0 GObject ancestor_0--this

Ancestors

Instance methods

webkit_hit_test_result_context_is_editable

Gets whether WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE flag is present in WebKitHitTestResult:context.

webkit_hit_test_result_context_is_image

Gets whether WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE flag is present in WebKitHitTestResult:context.

webkit_hit_test_result_context_is_link

Gets whether WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK flag is present in WebKitHitTestResult:context.

webkit_hit_test_result_context_is_media

Gets whether WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA flag is present in WebKitHitTestResult:context.

webkit_hit_test_result_context_is_scrollbar

Gets whether WEBKIT_HIT_TEST_RESULT_CONTEXT_SCROLLBAR flag is present in WebKitHitTestResult:context.

webkit_hit_test_result_context_is_selection

Gets whether WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION flag is present in WebKitHitTestResult:context.

since: 2.8

webkit_hit_test_result_get_context

Gets the value of the WebKitHitTestResult:context property.

webkit_hit_test_result_get_image_uri

Gets the value of the WebKitHitTestResult:image-uri property.

webkit_hit_test_result_get_link_label

Gets the value of the WebKitHitTestResult:link-label property.

webkit_hit_test_result_get_link_title

Gets the value of the WebKitHitTestResult:link-title property.

webkit_hit_test_result_get_link_uri

Gets the value of the WebKitHitTestResult:link-uri property.

webkit_hit_test_result_get_media_uri

Gets the value of the WebKitHitTestResult:media-uri property.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

WebKit2WebExtension.HitTestResult:context

Bitmask of WebKitHitTestResultContext flags representing the context of the WebKitHitTestResult.

WebKit2WebExtension.HitTestResult:image-uri

The URI of the image if flag WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE is present in WebKitHitTestResult:context.

WebKit2WebExtension.HitTestResult:link-label

The label of the link if flag WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK is present in WebKitHitTestResult:context.

WebKit2WebExtension.HitTestResult:link-title

The title of the link if flag WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK is present in WebKitHitTestResult:context.

WebKit2WebExtension.HitTestResult:link-uri

The URI of the link if flag WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK is present in WebKitHitTestResult:context.

WebKit2WebExtension.HitTestResult:media-uri

The URI of the media if flag WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA is present in WebKitHitTestResult:context.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct WebKit2WebExtensionHitTestResultClass {
  GObjectClass parent_class;
  void (* _webkit_reserved0) (
void
  );
  void (* _webkit_reserved1) (
void
  );
  void (* _webkit_reserved2) (
void
  );
  void (* _webkit_reserved3) (
void
  );
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.

_webkit_reserved0: void (* _webkit_reserved0) ( void )

No description available.

_webkit_reserved1: void (* _webkit_reserved1) ( void )

No description available.

_webkit_reserved2: void (* _webkit_reserved2) ( void )

No description available.

_webkit_reserved3: void (* _webkit_reserved3) ( void )

No description available.