module GI.WebKit2WebExtension.Objects.WebHitTestResult
(
WebHitTestResult(..) ,
WebHitTestResultK ,
toWebHitTestResult ,
noWebHitTestResult ,
webHitTestResultGetNode ,
WebHitTestResultNodePropertyInfo ,
constructWebHitTestResultNode ,
getWebHitTestResultNode ,
) where
import Prelude ()
import Data.GI.Base.ShortPrelude
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import GI.WebKit2WebExtension.Types
import GI.WebKit2WebExtension.Callbacks
import qualified GI.GObject as GObject
newtype WebHitTestResult = WebHitTestResult (ForeignPtr WebHitTestResult)
foreign import ccall "webkit_web_hit_test_result_get_type"
c_webkit_web_hit_test_result_get_type :: IO GType
type instance ParentTypes WebHitTestResult = WebHitTestResultParentTypes
type WebHitTestResultParentTypes = '[HitTestResult, GObject.Object]
instance GObject WebHitTestResult where
gobjectIsInitiallyUnowned _ = False
gobjectType _ = c_webkit_web_hit_test_result_get_type
class GObject o => WebHitTestResultK o
instance (GObject o, IsDescendantOf WebHitTestResult o) => WebHitTestResultK o
toWebHitTestResult :: WebHitTestResultK o => o -> IO WebHitTestResult
toWebHitTestResult = unsafeCastTo WebHitTestResult
noWebHitTestResult :: Maybe WebHitTestResult
noWebHitTestResult = Nothing
getWebHitTestResultNode :: (MonadIO m, WebHitTestResultK o) => o -> m DOMNode
getWebHitTestResultNode obj = liftIO $ getObjectPropertyObject obj "node" DOMNode
constructWebHitTestResultNode :: (DOMNodeK a) => a -> IO ([Char], GValue)
constructWebHitTestResultNode val = constructObjectPropertyObject "node" val
data WebHitTestResultNodePropertyInfo
instance AttrInfo WebHitTestResultNodePropertyInfo where
type AttrAllowedOps WebHitTestResultNodePropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint WebHitTestResultNodePropertyInfo = DOMNodeK
type AttrBaseTypeConstraint WebHitTestResultNodePropertyInfo = WebHitTestResultK
type AttrGetType WebHitTestResultNodePropertyInfo = DOMNode
type AttrLabel WebHitTestResultNodePropertyInfo = "WebHitTestResult::node"
attrGet _ = getWebHitTestResultNode
attrSet _ = undefined
attrConstruct _ = constructWebHitTestResultNode
type instance AttributeList WebHitTestResult = WebHitTestResultAttributeList
type WebHitTestResultAttributeList = ('[ '("context", HitTestResultContextPropertyInfo), '("image-uri", HitTestResultImageUriPropertyInfo), '("link-label", HitTestResultLinkLabelPropertyInfo), '("link-title", HitTestResultLinkTitlePropertyInfo), '("link-uri", HitTestResultLinkUriPropertyInfo), '("media-uri", HitTestResultMediaUriPropertyInfo), '("node", WebHitTestResultNodePropertyInfo)] :: [(Symbol, *)])
type instance SignalList WebHitTestResult = WebHitTestResultSignalList
type WebHitTestResultSignalList = ('[ '("notify", GObject.ObjectNotifySignalInfo), '("notify::[property]", GObjectNotifySignalInfo)] :: [(Symbol, *)])
foreign import ccall "webkit_web_hit_test_result_get_node" webkit_web_hit_test_result_get_node ::
Ptr WebHitTestResult ->
IO (Ptr DOMNode)
webHitTestResultGetNode ::
(MonadIO m, WebHitTestResultK a) =>
a ->
m DOMNode
webHitTestResultGetNode _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_web_hit_test_result_get_node _obj'
checkUnexpectedReturnNULL "webkit_web_hit_test_result_get_node" result
result' <- (newObject DOMNode) result
touchManagedPtr _obj
return result'