gi-webkit2webextension-4.0.31: WebKit2-WebExtension bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit2WebExtension.Objects.WebHitTestResult

Description

Result of a Hit Test (Web Process Extensions).

WebKitWebHitTestResult extends HitTestResult to provide information about the DOMNode in the coordinates of the Hit Test.

Since: 2.8

Synopsis

Exported types

newtype WebHitTestResult Source #

Memory-managed wrapper type.

Constructors

WebHitTestResult (ManagedPtr WebHitTestResult) 

Instances

Instances details
Eq WebHitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebHitTestResult

GObject WebHitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebHitTestResult

ManagedPtrNewtype WebHitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebHitTestResult

TypedObject WebHitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebHitTestResult

Methods

glibType :: IO GType

HasParentTypes WebHitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebHitTestResult

IsGValue (Maybe WebHitTestResult) Source #

Convert WebHitTestResult to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.WebKit2WebExtension.Objects.WebHitTestResult

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe WebHitTestResult -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe WebHitTestResult)

type ParentTypes WebHitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebHitTestResult

type ParentTypes WebHitTestResult = '[HitTestResult, Object]

class (GObject o, IsDescendantOf WebHitTestResult o) => IsWebHitTestResult o Source #

Type class for types which can be safely cast to WebHitTestResult, for instance with toWebHitTestResult.

Instances

Instances details
(GObject o, IsDescendantOf WebHitTestResult o) => IsWebHitTestResult o Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.WebHitTestResult

toWebHitTestResult :: (MonadIO m, IsWebHitTestResult o) => o -> m WebHitTestResult Source #

Cast to WebHitTestResult, for types for which this is known to be safe. For general casts, use castTo.

Methods

getJsNode

webHitTestResultGetJsNode Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebHitTestResult a, IsScriptWorld b) 
=> a

webHitTestResult: a WebHitTestResult

-> Maybe b

world: a ScriptWorld, or Nothing to use the default

-> m (Maybe Value)

Returns: a Value for the DOM node, or Nothing

Get the Value for the DOM node in world at the coordinates of the Hit Test.

Since: 2.40

getNode

webHitTestResultGetNode Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebHitTestResult a) 
=> a

hitTestResult: a WebHitTestResult

-> m DOMNode

Returns: a DOMNode

Deprecated: (Since version 2.40)Use webHitTestResultGetJsNode instead

Get the DOMNode in the coordinates of the Hit Test.

Since: 2.8

Properties

node

constructWebHitTestResultNode :: (IsWebHitTestResult o, MonadIO m, IsDOMNode a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “node” property. This is rarely needed directly, but it is used by new.

getWebHitTestResultNode :: (MonadIO m, IsWebHitTestResult o) => o -> m DOMNode Source #

Get the value of the “node” property. When overloading is enabled, this is equivalent to

get webHitTestResult #node