WebKitWebProcessExtension.HitTestResult¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class WebKitWebProcessExtension.HitTestResult(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Result of a Hit Test.
A Hit Test is an operation to get context information about a given point in a #WebKitWebView.
WebKitWebProcessExtension.HitTestResultrepresents 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
WebKitWebProcessExtension.HitTestResult.get_context() that returns a bitmask ofWebKitWebProcessExtension.HitTestResultContextflags. You can also useWebKitWebProcessExtension.HitTestResult.context_is_link(),WebKitWebProcessExtension.HitTestResult.context_is_image() andWebKitWebProcessExtension.HitTestResult.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 severalWebKitWebProcessExtension.HitTestResultContextflags 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
WebKitWebProcessExtension.HitTestResult.- context_is_editable()¶
- Returns:
Trueif there’s an editable element at the coordinates of the self, orFalseotherwise- Return type:
Gets whether
WebKitWebProcessExtension.HitTestResultContext.EDITABLEflag is present inWebKitWebProcessExtension.HitTestResult:context.
- context_is_image()¶
- Returns:
Trueif there’s an image element in the coordinates of the Hit Test, orFalseotherwise- Return type:
Gets whether
WebKitWebProcessExtension.HitTestResultContext.IMAGEflag is present inWebKitWebProcessExtension.HitTestResult:context.
- context_is_link()¶
- Returns:
Trueif there’s a link element in the coordinates of the Hit Test, orFalseotherwise- Return type:
Gets whether
WebKitWebProcessExtension.HitTestResultContext.LINKflag is present inWebKitWebProcessExtension.HitTestResult:context.
- context_is_media()¶
- Returns:
Trueif there’s a media element in the coordinates of the Hit Test, orFalseotherwise- Return type:
Gets whether
WebKitWebProcessExtension.HitTestResultContext.MEDIAflag is present inWebKitWebProcessExtension.HitTestResult:context.
- context_is_scrollbar()¶
- Returns:
Trueif there’s a scrollbar element at the coordinates of the self, orFalseotherwise- Return type:
Gets whether
WebKitWebProcessExtension.HitTestResultContext.SCROLLBARflag is present inWebKitWebProcessExtension.HitTestResult:context.
- context_is_selection()¶
- Returns:
Trueif there’s a selected element at the coordinates of the self, orFalseotherwise- Return type:
Gets whether
WebKitWebProcessExtension.HitTestResultContext.SELECTIONflag is present inWebKitWebProcessExtension.HitTestResult:context.New in version 2.8.
- get_context()¶
- Returns:
a bitmask of
WebKitWebProcessExtension.HitTestResultContextflags- Return type:
Gets the value of the
WebKitWebProcessExtension.HitTestResult:contextproperty.
- get_image_uri()¶
- Returns:
the URI of the image element in the coordinates of the Hit Test, or
Noneif there isn’t an image element in self context- Return type:
Gets the value of the
WebKitWebProcessExtension.HitTestResult:image-uriproperty.
- get_link_label()¶
- Returns:
the label of the link element in the coordinates of the Hit Test, or
Noneif there isn’t a link element in self context or the link element doesn’t have a label- Return type:
Gets the value of the
WebKitWebProcessExtension.HitTestResult:link-labelproperty.
- get_link_title()¶
- Returns:
the title of the link element in the coordinates of the Hit Test, or
Noneif there isn’t a link element in self context or the link element doesn’t have a title- Return type:
Gets the value of the
WebKitWebProcessExtension.HitTestResult:link-titleproperty.
- get_link_uri()¶
- Returns:
the URI of the link element in the coordinates of the Hit Test, or
Noneif there isn’t a link element in self context- Return type:
Gets the value of the
WebKitWebProcessExtension.HitTestResult:link-uriproperty.
- get_media_uri()¶
- Returns:
the URI of the media element in the coordinates of the Hit Test, or
Noneif there isn’t a media element in self context- Return type:
Gets the value of the
WebKitWebProcessExtension.HitTestResult:media-uriproperty.
Property Details¶
- WebKitWebProcessExtension.HitTestResult.props.context¶
- Name:
context- Type:
- Default Value:
0- Flags:
Bitmask of
WebKitWebProcessExtension.HitTestResultContextflags representing the context of theWebKitWebProcessExtension.HitTestResult.
- WebKitWebProcessExtension.HitTestResult.props.image_uri¶
- Name:
image-uri- Type:
- Default Value:
- Flags:
The URI of the image if flag
WebKitWebProcessExtension.HitTestResultContext.IMAGEis present inWebKitWebProcessExtension.HitTestResult:context
- WebKitWebProcessExtension.HitTestResult.props.link_label¶
- Name:
link-label- Type:
- Default Value:
- Flags:
The label of the link if flag
WebKitWebProcessExtension.HitTestResultContext.LINKis present inWebKitWebProcessExtension.HitTestResult:context
- WebKitWebProcessExtension.HitTestResult.props.link_title¶
- Name:
link-title- Type:
- Default Value:
- Flags:
The title of the link if flag
WebKitWebProcessExtension.HitTestResultContext.LINKis present inWebKitWebProcessExtension.HitTestResult:context
- WebKitWebProcessExtension.HitTestResult.props.link_uri¶
- Name:
link-uri- Type:
- Default Value:
- Flags:
The URI of the link if flag
WebKitWebProcessExtension.HitTestResultContext.LINKis present inWebKitWebProcessExtension.HitTestResult:context
- WebKitWebProcessExtension.HitTestResult.props.media_uri¶
- Name:
media-uri- Type:
- Default Value:
- Flags:
The URI of the media if flag
WebKitWebProcessExtension.HitTestResultContext.MEDIAis present inWebKitWebProcessExtension.HitTestResult:context