## WebKitHitTestResult WebKitHitTestResult — The target of a mouse event |

## Synopsis

                        WebKitHitTestResult;
    enum                WebKitHitTestResultContext;

## Object Hierarchy

      GObject
       +----WebKitHitTestResult

## Properties

      "context"                  WebKitHitTestResultContext  : Read / Write / Construct Only
      "image-uri"                gchar*                : Read / Write / Construct Only
      "inner-node"               WebKitDOMNode*        : Read / Write / Construct Only
      "link-uri"                 gchar*                : Read / Write / Construct Only
      "media-uri"                gchar*                : Read / Write / Construct Only

## Description

This class holds context information about the coordinates specified by a GDK event.

## Details

### WebKitHitTestResult

    typedef struct _WebKitHitTestResult WebKitHitTestResult;

### enum WebKitHitTestResultContext

    typedef enum {
        WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT   = 1 << 1,
        WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK       = 1 << 2,
        WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE      = 1 << 3,
        WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA      = 1 << 4,
        WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION  = 1 << 5,
        WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE   = 1 << 6,
    } WebKitHitTestResultContext;

`WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT` | anywhere in the document.
`WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK` | a hyperlink element.
`WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE` | an image element.
`WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA` | a video or audio element.
`WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION` | the area is selected by the user.
`WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE` | the area is editable by the user.

## Property Details

### The `"context"` property

      "context"                  WebKitHitTestResultContext  : Read / Write / Construct Only

Flags indicating the kind of target that received the event.

Default value: WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT

Since 1.1.15

### The `"image-uri"` property

      "image-uri"                gchar*                : Read / Write / Construct Only

The URI of the image that is part of the target that received the event, if any.

Default value: NULL

Since 1.1.15

### The `"inner-node"` property

      "inner-node"               WebKitDOMNode*        : Read / Write / Construct Only

The DOM node at the coordinates where the hit test happened. Keep in mind that the node might not be representative of the information given in the context property, since WebKit uses a series of heuristics to figure out that information. One common example is inner-node having the text node inside the anchor (<a>) tag; WebKit knows the whole context and will put WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK in the 'context' property, but the user might be confused by the lack of any link tag in 'inner-node'.

Since 1.3.2

### The `"link-uri"` property

      "link-uri"                 gchar*                : Read / Write / Construct Only

The URI to which the target that received the event points, if any.

Default value: NULL

Since 1.1.15

### The `"media-uri"` property

      "media-uri"                gchar*                : Read / Write / Construct Only

The URI of the media that is part of the target that received the event, if any.

Default value: NULL

Since 1.1.15