gi-webkit2webextension-4.0.25: WebKit2-WebExtension bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2WebExtension.Objects.HitTestResult

Description

No description available in the introspection data.

Synopsis

Exported types

newtype HitTestResult Source #

Memory-managed wrapper type.

Constructors

HitTestResult (ManagedPtr HitTestResult) 

Instances

Instances details
Eq HitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.HitTestResult

GObject HitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.HitTestResult

ManagedPtrNewtype HitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.HitTestResult

Methods

toManagedPtr :: HitTestResult -> ManagedPtr HitTestResult

TypedObject HitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.HitTestResult

Methods

glibType :: IO GType

IsGValue HitTestResult Source #

Convert HitTestResult to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.WebKit2WebExtension.Objects.HitTestResult

Methods

toGValue :: HitTestResult -> IO GValue

fromGValue :: GValue -> IO HitTestResult

HasParentTypes HitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.HitTestResult

type ParentTypes HitTestResult Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.HitTestResult

type ParentTypes HitTestResult = '[Object]

class (GObject o, IsDescendantOf HitTestResult o) => IsHitTestResult o Source #

Type class for types which can be safely cast to HitTestResult, for instance with toHitTestResult.

Instances

Instances details
(GObject o, IsDescendantOf HitTestResult o) => IsHitTestResult o Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.HitTestResult

toHitTestResult :: (MonadIO m, IsHitTestResult o) => o -> m HitTestResult Source #

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

Methods

Overloaded methods

contextIsEditable

hitTestResultContextIsEditable Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Bool

Returns: True if there's an editable element at the coordinates of the hitTestResult, or False otherwise

Gets whether HitTestResultContextEditable flag is present in HitTestResult:context.

contextIsImage

hitTestResultContextIsImage Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Bool

Returns: True if there's an image element in the coordinates of the Hit Test, or False otherwise

Gets whether HitTestResultContextImage flag is present in HitTestResult:context.

contextIsLink

hitTestResultContextIsLink Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Bool

Returns: True if there's a link element in the coordinates of the Hit Test, or False otherwise

Gets whether HitTestResultContextLink flag is present in HitTestResult:context.

contextIsMedia

hitTestResultContextIsMedia Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Bool

Returns: True if there's a media element in the coordinates of the Hit Test, or False otherwise

Gets whether HitTestResultContextMedia flag is present in HitTestResult:context.

contextIsScrollbar

hitTestResultContextIsScrollbar Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Bool

Returns: True if there's a scrollbar element at the coordinates of the hitTestResult, or False otherwise

Gets whether HitTestResultContextScrollbar flag is present in HitTestResult:context.

contextIsSelection

hitTestResultContextIsSelection Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Bool

Returns: True if there's a selected element at the coordinates of the hitTestResult, or False otherwise

Gets whether HitTestResultContextSelection flag is present in HitTestResult:context.

Since: 2.8

getContext

hitTestResultGetContext Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Word32

Returns: a bitmask of HitTestResultContext flags

Gets the value of the HitTestResult:context property.

getImageUri

hitTestResultGetImageUri Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Text

Returns: the URI of the image element in the coordinates of the Hit Test, or Nothing if there isn't an image element in hitTestResult context

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

getLinkLabel

hitTestResultGetLinkLabel Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Text

Returns: the label of the link element in the coordinates of the Hit Test, or Nothing if there isn't a link element in hitTestResult context or the link element doesn't have a label

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

getLinkTitle

hitTestResultGetLinkTitle Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Text

Returns: the title of the link element in the coordinates of the Hit Test, or Nothing if there isn't a link element in hitTestResult context or the link element doesn't have a title

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

getLinkUri

hitTestResultGetLinkUri Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Text

Returns: the URI of the link element in the coordinates of the Hit Test, or Nothing if there isn't a link element in hitTestResult context

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

getMediaUri

hitTestResultGetMediaUri Source #

Arguments

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

hitTestResult: a HitTestResult

-> m Text

Returns: the URI of the media element in the coordinates of the Hit Test, or Nothing if there isn't a media element in hitTestResult context

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

Properties

context

Bitmask of HitTestResultContext flags representing the context of the HitTestResult.

constructHitTestResultContext :: (IsHitTestResult o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

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

getHitTestResultContext :: (MonadIO m, IsHitTestResult o) => o -> m Word32 Source #

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

get hitTestResult #context

imageUri

The URI of the image if flag HitTestResultContextImage is present in HitTestResult:context

constructHitTestResultImageUri :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getHitTestResultImageUri :: (MonadIO m, IsHitTestResult o) => o -> m Text Source #

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

get hitTestResult #imageUri

linkLabel

The label of the link if flag HitTestResultContextLink is present in HitTestResult:context

constructHitTestResultLinkLabel :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getHitTestResultLinkLabel :: (MonadIO m, IsHitTestResult o) => o -> m Text Source #

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

get hitTestResult #linkLabel

linkTitle

The title of the link if flag HitTestResultContextLink is present in HitTestResult:context

constructHitTestResultLinkTitle :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getHitTestResultLinkTitle :: (MonadIO m, IsHitTestResult o) => o -> m Text Source #

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

get hitTestResult #linkTitle

linkUri

The URI of the link if flag HitTestResultContextLink is present in HitTestResult:context

constructHitTestResultLinkUri :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getHitTestResultLinkUri :: (MonadIO m, IsHitTestResult o) => o -> m Text Source #

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

get hitTestResult #linkUri

mediaUri

The URI of the media if flag HitTestResultContextMedia is present in HitTestResult:context

constructHitTestResultMediaUri :: (IsHitTestResult o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getHitTestResultMediaUri :: (MonadIO m, IsHitTestResult o) => o -> m Text Source #

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

get hitTestResult #mediaUri