![]() |
![]() |
![]() |
WebKitClutter Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | 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 "x" gint : Read / Write / Construct Only "y" gint : Read / Write / Construct Only
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;
anywhere in the document. | |
a hyperlink element. | |
an image element. | |
a video or audio element. | |
the area is selected by the user. | |
the area is editable by the user. |
"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
"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
"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
"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
"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
"x"
property "x" gint : Read / Write / Construct Only
The x coordinate of the event relative to the view's window.
Default value: 0
Since 1.10