{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.WebKit.Objects.HitTestResult
(
HitTestResult(..) ,
IsHitTestResult ,
toHitTestResult ,
#if defined(ENABLE_OVERLOADING)
ResolveHitTestResultMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
HitTestResultContextIsEditableMethodInfo,
#endif
hitTestResultContextIsEditable ,
#if defined(ENABLE_OVERLOADING)
HitTestResultContextIsImageMethodInfo ,
#endif
hitTestResultContextIsImage ,
#if defined(ENABLE_OVERLOADING)
HitTestResultContextIsLinkMethodInfo ,
#endif
hitTestResultContextIsLink ,
#if defined(ENABLE_OVERLOADING)
HitTestResultContextIsMediaMethodInfo ,
#endif
hitTestResultContextIsMedia ,
#if defined(ENABLE_OVERLOADING)
HitTestResultContextIsScrollbarMethodInfo,
#endif
hitTestResultContextIsScrollbar ,
#if defined(ENABLE_OVERLOADING)
HitTestResultContextIsSelectionMethodInfo,
#endif
hitTestResultContextIsSelection ,
#if defined(ENABLE_OVERLOADING)
HitTestResultGetContextMethodInfo ,
#endif
hitTestResultGetContext ,
#if defined(ENABLE_OVERLOADING)
HitTestResultGetImageUriMethodInfo ,
#endif
hitTestResultGetImageUri ,
#if defined(ENABLE_OVERLOADING)
HitTestResultGetLinkLabelMethodInfo ,
#endif
hitTestResultGetLinkLabel ,
#if defined(ENABLE_OVERLOADING)
HitTestResultGetLinkTitleMethodInfo ,
#endif
hitTestResultGetLinkTitle ,
#if defined(ENABLE_OVERLOADING)
HitTestResultGetLinkUriMethodInfo ,
#endif
hitTestResultGetLinkUri ,
#if defined(ENABLE_OVERLOADING)
HitTestResultGetMediaUriMethodInfo ,
#endif
hitTestResultGetMediaUri ,
#if defined(ENABLE_OVERLOADING)
HitTestResultContextPropertyInfo ,
#endif
constructHitTestResultContext ,
getHitTestResultContext ,
#if defined(ENABLE_OVERLOADING)
hitTestResultContext ,
#endif
#if defined(ENABLE_OVERLOADING)
HitTestResultImageUriPropertyInfo ,
#endif
constructHitTestResultImageUri ,
getHitTestResultImageUri ,
#if defined(ENABLE_OVERLOADING)
hitTestResultImageUri ,
#endif
#if defined(ENABLE_OVERLOADING)
HitTestResultLinkLabelPropertyInfo ,
#endif
constructHitTestResultLinkLabel ,
getHitTestResultLinkLabel ,
#if defined(ENABLE_OVERLOADING)
hitTestResultLinkLabel ,
#endif
#if defined(ENABLE_OVERLOADING)
HitTestResultLinkTitlePropertyInfo ,
#endif
constructHitTestResultLinkTitle ,
getHitTestResultLinkTitle ,
#if defined(ENABLE_OVERLOADING)
hitTestResultLinkTitle ,
#endif
#if defined(ENABLE_OVERLOADING)
HitTestResultLinkUriPropertyInfo ,
#endif
constructHitTestResultLinkUri ,
getHitTestResultLinkUri ,
#if defined(ENABLE_OVERLOADING)
hitTestResultLinkUri ,
#endif
#if defined(ENABLE_OVERLOADING)
HitTestResultMediaUriPropertyInfo ,
#endif
constructHitTestResultMediaUri ,
getHitTestResultMediaUri ,
#if defined(ENABLE_OVERLOADING)
hitTestResultMediaUri ,
#endif
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
import qualified GI.GObject.Objects.Object as GObject.Object
#else
import qualified GI.GObject.Objects.Object as GObject.Object
#endif
newtype HitTestResult = HitTestResult (SP.ManagedPtr HitTestResult)
deriving (HitTestResult -> HitTestResult -> Bool
(HitTestResult -> HitTestResult -> Bool)
-> (HitTestResult -> HitTestResult -> Bool) -> Eq HitTestResult
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HitTestResult -> HitTestResult -> Bool
== :: HitTestResult -> HitTestResult -> Bool
$c/= :: HitTestResult -> HitTestResult -> Bool
/= :: HitTestResult -> HitTestResult -> Bool
Eq)
instance SP.ManagedPtrNewtype HitTestResult where
toManagedPtr :: HitTestResult -> ManagedPtr HitTestResult
toManagedPtr (HitTestResult ManagedPtr HitTestResult
p) = ManagedPtr HitTestResult
p
foreign import ccall "webkit_hit_test_result_get_type"
c_webkit_hit_test_result_get_type :: IO B.Types.GType
instance B.Types.TypedObject HitTestResult where
glibType :: IO GType
glibType = IO GType
c_webkit_hit_test_result_get_type
instance B.Types.GObject HitTestResult
class (SP.GObject o, O.IsDescendantOf HitTestResult o) => IsHitTestResult o
instance (SP.GObject o, O.IsDescendantOf HitTestResult o) => IsHitTestResult o
instance O.HasParentTypes HitTestResult
type instance O.ParentTypes HitTestResult = '[GObject.Object.Object]
toHitTestResult :: (MIO.MonadIO m, IsHitTestResult o) => o -> m HitTestResult
toHitTestResult :: forall (m :: * -> *) o.
(MonadIO m, IsHitTestResult o) =>
o -> m HitTestResult
toHitTestResult = IO HitTestResult -> m HitTestResult
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO HitTestResult -> m HitTestResult)
-> (o -> IO HitTestResult) -> o -> m HitTestResult
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr HitTestResult -> HitTestResult)
-> o -> IO HitTestResult
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr HitTestResult -> HitTestResult
HitTestResult
instance B.GValue.IsGValue (Maybe HitTestResult) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_webkit_hit_test_result_get_type
gvalueSet_ :: Ptr GValue -> Maybe HitTestResult -> IO ()
gvalueSet_ Ptr GValue
gv Maybe HitTestResult
P.Nothing = Ptr GValue -> Ptr HitTestResult -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr HitTestResult
forall a. Ptr a
FP.nullPtr :: FP.Ptr HitTestResult)
gvalueSet_ Ptr GValue
gv (P.Just HitTestResult
obj) = HitTestResult -> (Ptr HitTestResult -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr HitTestResult
obj (Ptr GValue -> Ptr HitTestResult -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe HitTestResult)
gvalueGet_ Ptr GValue
gv = do
Ptr HitTestResult
ptr <- Ptr GValue -> IO (Ptr HitTestResult)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr HitTestResult)
if Ptr HitTestResult
ptr Ptr HitTestResult -> Ptr HitTestResult -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr HitTestResult
forall a. Ptr a
FP.nullPtr
then HitTestResult -> Maybe HitTestResult
forall a. a -> Maybe a
P.Just (HitTestResult -> Maybe HitTestResult)
-> IO HitTestResult -> IO (Maybe HitTestResult)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr HitTestResult -> HitTestResult)
-> Ptr HitTestResult -> IO HitTestResult
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr HitTestResult -> HitTestResult
HitTestResult Ptr HitTestResult
ptr
else Maybe HitTestResult -> IO (Maybe HitTestResult)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe HitTestResult
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveHitTestResultMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveHitTestResultMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveHitTestResultMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveHitTestResultMethod "contextIsEditable" o = HitTestResultContextIsEditableMethodInfo
ResolveHitTestResultMethod "contextIsImage" o = HitTestResultContextIsImageMethodInfo
ResolveHitTestResultMethod "contextIsLink" o = HitTestResultContextIsLinkMethodInfo
ResolveHitTestResultMethod "contextIsMedia" o = HitTestResultContextIsMediaMethodInfo
ResolveHitTestResultMethod "contextIsScrollbar" o = HitTestResultContextIsScrollbarMethodInfo
ResolveHitTestResultMethod "contextIsSelection" o = HitTestResultContextIsSelectionMethodInfo
ResolveHitTestResultMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveHitTestResultMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveHitTestResultMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveHitTestResultMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveHitTestResultMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveHitTestResultMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveHitTestResultMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveHitTestResultMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveHitTestResultMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveHitTestResultMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveHitTestResultMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveHitTestResultMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveHitTestResultMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveHitTestResultMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveHitTestResultMethod "getContext" o = HitTestResultGetContextMethodInfo
ResolveHitTestResultMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveHitTestResultMethod "getImageUri" o = HitTestResultGetImageUriMethodInfo
ResolveHitTestResultMethod "getLinkLabel" o = HitTestResultGetLinkLabelMethodInfo
ResolveHitTestResultMethod "getLinkTitle" o = HitTestResultGetLinkTitleMethodInfo
ResolveHitTestResultMethod "getLinkUri" o = HitTestResultGetLinkUriMethodInfo
ResolveHitTestResultMethod "getMediaUri" o = HitTestResultGetMediaUriMethodInfo
ResolveHitTestResultMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveHitTestResultMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveHitTestResultMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveHitTestResultMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveHitTestResultMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveHitTestResultMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveHitTestResultMethod t HitTestResult, O.OverloadedMethod info HitTestResult p) => OL.IsLabel t (HitTestResult -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveHitTestResultMethod t HitTestResult, O.OverloadedMethod info HitTestResult p, R.HasField t HitTestResult p) => R.HasField t HitTestResult p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveHitTestResultMethod t HitTestResult, O.OverloadedMethodInfo info HitTestResult) => OL.IsLabel t (O.MethodProxy info HitTestResult) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getHitTestResultContext :: (MonadIO m, IsHitTestResult o) => o -> m Word32
getHitTestResultContext :: forall (m :: * -> *) o.
(MonadIO m, IsHitTestResult o) =>
o -> m Word32
getHitTestResultContext o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"context"
constructHitTestResultContext :: (IsHitTestResult o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructHitTestResultContext :: forall o (m :: * -> *).
(IsHitTestResult o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructHitTestResultContext Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"context" Word32
val
#if defined(ENABLE_OVERLOADING)
data HitTestResultContextPropertyInfo
instance AttrInfo HitTestResultContextPropertyInfo where
type AttrAllowedOps HitTestResultContextPropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint HitTestResultContextPropertyInfo = IsHitTestResult
type AttrSetTypeConstraint HitTestResultContextPropertyInfo = (~) Word32
type AttrTransferTypeConstraint HitTestResultContextPropertyInfo = (~) Word32
type AttrTransferType HitTestResultContextPropertyInfo = Word32
type AttrGetType HitTestResultContextPropertyInfo = Word32
type AttrLabel HitTestResultContextPropertyInfo = "context"
type AttrOrigin HitTestResultContextPropertyInfo = HitTestResult
attrGet = getHitTestResultContext
attrSet = undefined
attrTransfer _ v = do
return v
attrConstruct = constructHitTestResultContext
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.context"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#g:attr:context"
})
#endif
getHitTestResultImageUri :: (MonadIO m, IsHitTestResult o) => o -> m T.Text
getHitTestResultImageUri :: forall (m :: * -> *) o.
(MonadIO m, IsHitTestResult o) =>
o -> m Text
getHitTestResultImageUri o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getHitTestResultImageUri" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"image-uri"
constructHitTestResultImageUri :: (IsHitTestResult o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructHitTestResultImageUri :: forall o (m :: * -> *).
(IsHitTestResult o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructHitTestResultImageUri Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"image-uri" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
#if defined(ENABLE_OVERLOADING)
data HitTestResultImageUriPropertyInfo
instance AttrInfo HitTestResultImageUriPropertyInfo where
type AttrAllowedOps HitTestResultImageUriPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint HitTestResultImageUriPropertyInfo = IsHitTestResult
type AttrSetTypeConstraint HitTestResultImageUriPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint HitTestResultImageUriPropertyInfo = (~) T.Text
type AttrTransferType HitTestResultImageUriPropertyInfo = T.Text
type AttrGetType HitTestResultImageUriPropertyInfo = T.Text
type AttrLabel HitTestResultImageUriPropertyInfo = "image-uri"
type AttrOrigin HitTestResultImageUriPropertyInfo = HitTestResult
attrGet = getHitTestResultImageUri
attrSet = undefined
attrTransfer _ v = do
return v
attrConstruct = constructHitTestResultImageUri
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.imageUri"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#g:attr:imageUri"
})
#endif
getHitTestResultLinkLabel :: (MonadIO m, IsHitTestResult o) => o -> m T.Text
getHitTestResultLinkLabel :: forall (m :: * -> *) o.
(MonadIO m, IsHitTestResult o) =>
o -> m Text
getHitTestResultLinkLabel o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getHitTestResultLinkLabel" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"link-label"
constructHitTestResultLinkLabel :: (IsHitTestResult o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructHitTestResultLinkLabel :: forall o (m :: * -> *).
(IsHitTestResult o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructHitTestResultLinkLabel Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"link-label" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
#if defined(ENABLE_OVERLOADING)
data HitTestResultLinkLabelPropertyInfo
instance AttrInfo HitTestResultLinkLabelPropertyInfo where
type AttrAllowedOps HitTestResultLinkLabelPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint HitTestResultLinkLabelPropertyInfo = IsHitTestResult
type AttrSetTypeConstraint HitTestResultLinkLabelPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint HitTestResultLinkLabelPropertyInfo = (~) T.Text
type AttrTransferType HitTestResultLinkLabelPropertyInfo = T.Text
type AttrGetType HitTestResultLinkLabelPropertyInfo = T.Text
type AttrLabel HitTestResultLinkLabelPropertyInfo = "link-label"
type AttrOrigin HitTestResultLinkLabelPropertyInfo = HitTestResult
attrGet = getHitTestResultLinkLabel
attrSet = undefined
attrTransfer _ v = do
return v
attrConstruct = constructHitTestResultLinkLabel
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.linkLabel"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#g:attr:linkLabel"
})
#endif
getHitTestResultLinkTitle :: (MonadIO m, IsHitTestResult o) => o -> m T.Text
getHitTestResultLinkTitle :: forall (m :: * -> *) o.
(MonadIO m, IsHitTestResult o) =>
o -> m Text
getHitTestResultLinkTitle o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getHitTestResultLinkTitle" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"link-title"
constructHitTestResultLinkTitle :: (IsHitTestResult o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructHitTestResultLinkTitle :: forall o (m :: * -> *).
(IsHitTestResult o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructHitTestResultLinkTitle Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"link-title" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
#if defined(ENABLE_OVERLOADING)
data HitTestResultLinkTitlePropertyInfo
instance AttrInfo HitTestResultLinkTitlePropertyInfo where
type AttrAllowedOps HitTestResultLinkTitlePropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint HitTestResultLinkTitlePropertyInfo = IsHitTestResult
type AttrSetTypeConstraint HitTestResultLinkTitlePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint HitTestResultLinkTitlePropertyInfo = (~) T.Text
type AttrTransferType HitTestResultLinkTitlePropertyInfo = T.Text
type AttrGetType HitTestResultLinkTitlePropertyInfo = T.Text
type AttrLabel HitTestResultLinkTitlePropertyInfo = "link-title"
type AttrOrigin HitTestResultLinkTitlePropertyInfo = HitTestResult
attrGet = getHitTestResultLinkTitle
attrSet = undefined
attrTransfer _ v = do
return v
attrConstruct = constructHitTestResultLinkTitle
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.linkTitle"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#g:attr:linkTitle"
})
#endif
getHitTestResultLinkUri :: (MonadIO m, IsHitTestResult o) => o -> m T.Text
getHitTestResultLinkUri :: forall (m :: * -> *) o.
(MonadIO m, IsHitTestResult o) =>
o -> m Text
getHitTestResultLinkUri o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getHitTestResultLinkUri" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"link-uri"
constructHitTestResultLinkUri :: (IsHitTestResult o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructHitTestResultLinkUri :: forall o (m :: * -> *).
(IsHitTestResult o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructHitTestResultLinkUri Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"link-uri" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
#if defined(ENABLE_OVERLOADING)
data HitTestResultLinkUriPropertyInfo
instance AttrInfo HitTestResultLinkUriPropertyInfo where
type AttrAllowedOps HitTestResultLinkUriPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint HitTestResultLinkUriPropertyInfo = IsHitTestResult
type AttrSetTypeConstraint HitTestResultLinkUriPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint HitTestResultLinkUriPropertyInfo = (~) T.Text
type AttrTransferType HitTestResultLinkUriPropertyInfo = T.Text
type AttrGetType HitTestResultLinkUriPropertyInfo = T.Text
type AttrLabel HitTestResultLinkUriPropertyInfo = "link-uri"
type AttrOrigin HitTestResultLinkUriPropertyInfo = HitTestResult
attrGet = getHitTestResultLinkUri
attrSet = undefined
attrTransfer _ v = do
return v
attrConstruct = constructHitTestResultLinkUri
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.linkUri"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#g:attr:linkUri"
})
#endif
getHitTestResultMediaUri :: (MonadIO m, IsHitTestResult o) => o -> m T.Text
getHitTestResultMediaUri :: forall (m :: * -> *) o.
(MonadIO m, IsHitTestResult o) =>
o -> m Text
getHitTestResultMediaUri o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getHitTestResultMediaUri" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"media-uri"
constructHitTestResultMediaUri :: (IsHitTestResult o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructHitTestResultMediaUri :: forall o (m :: * -> *).
(IsHitTestResult o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructHitTestResultMediaUri Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"media-uri" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
#if defined(ENABLE_OVERLOADING)
data HitTestResultMediaUriPropertyInfo
instance AttrInfo HitTestResultMediaUriPropertyInfo where
type AttrAllowedOps HitTestResultMediaUriPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint HitTestResultMediaUriPropertyInfo = IsHitTestResult
type AttrSetTypeConstraint HitTestResultMediaUriPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint HitTestResultMediaUriPropertyInfo = (~) T.Text
type AttrTransferType HitTestResultMediaUriPropertyInfo = T.Text
type AttrGetType HitTestResultMediaUriPropertyInfo = T.Text
type AttrLabel HitTestResultMediaUriPropertyInfo = "media-uri"
type AttrOrigin HitTestResultMediaUriPropertyInfo = HitTestResult
attrGet = getHitTestResultMediaUri
attrSet = undefined
attrTransfer _ v = do
return v
attrConstruct = constructHitTestResultMediaUri
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.mediaUri"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#g:attr:mediaUri"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList HitTestResult
type instance O.AttributeList HitTestResult = HitTestResultAttributeList
type HitTestResultAttributeList = ('[ '("context", HitTestResultContextPropertyInfo), '("imageUri", HitTestResultImageUriPropertyInfo), '("linkLabel", HitTestResultLinkLabelPropertyInfo), '("linkTitle", HitTestResultLinkTitlePropertyInfo), '("linkUri", HitTestResultLinkUriPropertyInfo), '("mediaUri", HitTestResultMediaUriPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
hitTestResultContext :: AttrLabelProxy "context"
hitTestResultContext = AttrLabelProxy
hitTestResultImageUri :: AttrLabelProxy "imageUri"
hitTestResultImageUri = AttrLabelProxy
hitTestResultLinkLabel :: AttrLabelProxy "linkLabel"
hitTestResultLinkLabel = AttrLabelProxy
hitTestResultLinkTitle :: AttrLabelProxy "linkTitle"
hitTestResultLinkTitle = AttrLabelProxy
hitTestResultLinkUri :: AttrLabelProxy "linkUri"
hitTestResultLinkUri = AttrLabelProxy
hitTestResultMediaUri :: AttrLabelProxy "mediaUri"
hitTestResultMediaUri = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList HitTestResult = HitTestResultSignalList
type HitTestResultSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "webkit_hit_test_result_context_is_editable" webkit_hit_test_result_context_is_editable ::
Ptr HitTestResult ->
IO CInt
hitTestResultContextIsEditable ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m Bool
hitTestResultContextIsEditable :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Bool
hitTestResultContextIsEditable a
hitTestResult = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CInt
result <- Ptr HitTestResult -> IO CInt
webkit_hit_test_result_context_is_editable Ptr HitTestResult
hitTestResult'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultContextIsEditableMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultContextIsEditableMethodInfo a signature where
overloadedMethod = hitTestResultContextIsEditable
instance O.OverloadedMethodInfo HitTestResultContextIsEditableMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultContextIsEditable",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultContextIsEditable"
})
#endif
foreign import ccall "webkit_hit_test_result_context_is_image" webkit_hit_test_result_context_is_image ::
Ptr HitTestResult ->
IO CInt
hitTestResultContextIsImage ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m Bool
hitTestResultContextIsImage :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Bool
hitTestResultContextIsImage a
hitTestResult = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CInt
result <- Ptr HitTestResult -> IO CInt
webkit_hit_test_result_context_is_image Ptr HitTestResult
hitTestResult'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultContextIsImageMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultContextIsImageMethodInfo a signature where
overloadedMethod = hitTestResultContextIsImage
instance O.OverloadedMethodInfo HitTestResultContextIsImageMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultContextIsImage",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultContextIsImage"
})
#endif
foreign import ccall "webkit_hit_test_result_context_is_link" webkit_hit_test_result_context_is_link ::
Ptr HitTestResult ->
IO CInt
hitTestResultContextIsLink ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m Bool
hitTestResultContextIsLink :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Bool
hitTestResultContextIsLink a
hitTestResult = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CInt
result <- Ptr HitTestResult -> IO CInt
webkit_hit_test_result_context_is_link Ptr HitTestResult
hitTestResult'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultContextIsLinkMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultContextIsLinkMethodInfo a signature where
overloadedMethod = hitTestResultContextIsLink
instance O.OverloadedMethodInfo HitTestResultContextIsLinkMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultContextIsLink",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultContextIsLink"
})
#endif
foreign import ccall "webkit_hit_test_result_context_is_media" webkit_hit_test_result_context_is_media ::
Ptr HitTestResult ->
IO CInt
hitTestResultContextIsMedia ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m Bool
hitTestResultContextIsMedia :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Bool
hitTestResultContextIsMedia a
hitTestResult = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CInt
result <- Ptr HitTestResult -> IO CInt
webkit_hit_test_result_context_is_media Ptr HitTestResult
hitTestResult'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultContextIsMediaMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultContextIsMediaMethodInfo a signature where
overloadedMethod = hitTestResultContextIsMedia
instance O.OverloadedMethodInfo HitTestResultContextIsMediaMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultContextIsMedia",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultContextIsMedia"
})
#endif
foreign import ccall "webkit_hit_test_result_context_is_scrollbar" webkit_hit_test_result_context_is_scrollbar ::
Ptr HitTestResult ->
IO CInt
hitTestResultContextIsScrollbar ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m Bool
hitTestResultContextIsScrollbar :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Bool
hitTestResultContextIsScrollbar a
hitTestResult = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CInt
result <- Ptr HitTestResult -> IO CInt
webkit_hit_test_result_context_is_scrollbar Ptr HitTestResult
hitTestResult'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultContextIsScrollbarMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultContextIsScrollbarMethodInfo a signature where
overloadedMethod = hitTestResultContextIsScrollbar
instance O.OverloadedMethodInfo HitTestResultContextIsScrollbarMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultContextIsScrollbar",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultContextIsScrollbar"
})
#endif
foreign import ccall "webkit_hit_test_result_context_is_selection" webkit_hit_test_result_context_is_selection ::
Ptr HitTestResult ->
IO CInt
hitTestResultContextIsSelection ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m Bool
hitTestResultContextIsSelection :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Bool
hitTestResultContextIsSelection a
hitTestResult = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CInt
result <- Ptr HitTestResult -> IO CInt
webkit_hit_test_result_context_is_selection Ptr HitTestResult
hitTestResult'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultContextIsSelectionMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultContextIsSelectionMethodInfo a signature where
overloadedMethod = hitTestResultContextIsSelection
instance O.OverloadedMethodInfo HitTestResultContextIsSelectionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultContextIsSelection",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultContextIsSelection"
})
#endif
foreign import ccall "webkit_hit_test_result_get_context" webkit_hit_test_result_get_context ::
Ptr HitTestResult ->
IO Word32
hitTestResultGetContext ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m Word32
hitTestResultGetContext :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Word32
hitTestResultGetContext a
hitTestResult = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
Word32
result <- Ptr HitTestResult -> IO Word32
webkit_hit_test_result_get_context Ptr HitTestResult
hitTestResult'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data HitTestResultGetContextMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultGetContextMethodInfo a signature where
overloadedMethod = hitTestResultGetContext
instance O.OverloadedMethodInfo HitTestResultGetContextMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultGetContext",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultGetContext"
})
#endif
foreign import ccall "webkit_hit_test_result_get_image_uri" webkit_hit_test_result_get_image_uri ::
Ptr HitTestResult ->
IO CString
hitTestResultGetImageUri ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m T.Text
hitTestResultGetImageUri :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Text
hitTestResultGetImageUri a
hitTestResult = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CString
result <- Ptr HitTestResult -> IO CString
webkit_hit_test_result_get_image_uri Ptr HitTestResult
hitTestResult'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"hitTestResultGetImageUri" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultGetImageUriMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultGetImageUriMethodInfo a signature where
overloadedMethod = hitTestResultGetImageUri
instance O.OverloadedMethodInfo HitTestResultGetImageUriMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultGetImageUri",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultGetImageUri"
})
#endif
foreign import ccall "webkit_hit_test_result_get_link_label" webkit_hit_test_result_get_link_label ::
Ptr HitTestResult ->
IO CString
hitTestResultGetLinkLabel ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m T.Text
hitTestResultGetLinkLabel :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Text
hitTestResultGetLinkLabel a
hitTestResult = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CString
result <- Ptr HitTestResult -> IO CString
webkit_hit_test_result_get_link_label Ptr HitTestResult
hitTestResult'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"hitTestResultGetLinkLabel" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultGetLinkLabelMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultGetLinkLabelMethodInfo a signature where
overloadedMethod = hitTestResultGetLinkLabel
instance O.OverloadedMethodInfo HitTestResultGetLinkLabelMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultGetLinkLabel",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultGetLinkLabel"
})
#endif
foreign import ccall "webkit_hit_test_result_get_link_title" webkit_hit_test_result_get_link_title ::
Ptr HitTestResult ->
IO CString
hitTestResultGetLinkTitle ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m T.Text
hitTestResultGetLinkTitle :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Text
hitTestResultGetLinkTitle a
hitTestResult = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CString
result <- Ptr HitTestResult -> IO CString
webkit_hit_test_result_get_link_title Ptr HitTestResult
hitTestResult'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"hitTestResultGetLinkTitle" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultGetLinkTitleMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultGetLinkTitleMethodInfo a signature where
overloadedMethod = hitTestResultGetLinkTitle
instance O.OverloadedMethodInfo HitTestResultGetLinkTitleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultGetLinkTitle",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultGetLinkTitle"
})
#endif
foreign import ccall "webkit_hit_test_result_get_link_uri" webkit_hit_test_result_get_link_uri ::
Ptr HitTestResult ->
IO CString
hitTestResultGetLinkUri ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m T.Text
hitTestResultGetLinkUri :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Text
hitTestResultGetLinkUri a
hitTestResult = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CString
result <- Ptr HitTestResult -> IO CString
webkit_hit_test_result_get_link_uri Ptr HitTestResult
hitTestResult'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"hitTestResultGetLinkUri" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultGetLinkUriMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultGetLinkUriMethodInfo a signature where
overloadedMethod = hitTestResultGetLinkUri
instance O.OverloadedMethodInfo HitTestResultGetLinkUriMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultGetLinkUri",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultGetLinkUri"
})
#endif
foreign import ccall "webkit_hit_test_result_get_media_uri" webkit_hit_test_result_get_media_uri ::
Ptr HitTestResult ->
IO CString
hitTestResultGetMediaUri ::
(B.CallStack.HasCallStack, MonadIO m, IsHitTestResult a) =>
a
-> m T.Text
hitTestResultGetMediaUri :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsHitTestResult a) =>
a -> m Text
hitTestResultGetMediaUri a
hitTestResult = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr HitTestResult
hitTestResult' <- a -> IO (Ptr HitTestResult)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
hitTestResult
CString
result <- Ptr HitTestResult -> IO CString
webkit_hit_test_result_get_media_uri Ptr HitTestResult
hitTestResult'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"hitTestResultGetMediaUri" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
hitTestResult
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data HitTestResultGetMediaUriMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsHitTestResult a) => O.OverloadedMethod HitTestResultGetMediaUriMethodInfo a signature where
overloadedMethod = hitTestResultGetMediaUri
instance O.OverloadedMethodInfo HitTestResultGetMediaUriMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.WebKit.Objects.HitTestResult.hitTestResultGetMediaUri",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-webkit-6.0.3/docs/GI-WebKit-Objects-HitTestResult.html#v:hitTestResultGetMediaUri"
})
#endif