module GI.WebKit.Objects.DOMDOMPluginArray
(
DOMDOMPluginArray(..) ,
IsDOMDOMPluginArray ,
toDOMDOMPluginArray ,
noDOMDOMPluginArray ,
DOMDOMPluginArrayGetLengthMethodInfo ,
dOMDOMPluginArrayGetLength ,
DOMDOMPluginArrayItemMethodInfo ,
dOMDOMPluginArrayItem ,
DOMDOMPluginArrayNamedItemMethodInfo ,
dOMDOMPluginArrayNamedItem ,
DOMDOMPluginArrayRefreshMethodInfo ,
dOMDOMPluginArrayRefresh ,
DOMDOMPluginArrayLengthPropertyInfo ,
dOMDOMPluginArrayLength ,
getDOMDOMPluginArrayLength ,
) 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.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.WebKit.Objects.DOMDOMPlugin as WebKit.DOMDOMPlugin
import qualified GI.WebKit.Objects.DOMObject as WebKit.DOMObject
newtype DOMDOMPluginArray = DOMDOMPluginArray (ManagedPtr DOMDOMPluginArray)
foreign import ccall "webkit_dom_dom_plugin_array_get_type"
c_webkit_dom_dom_plugin_array_get_type :: IO GType
instance GObject DOMDOMPluginArray where
gobjectType _ = c_webkit_dom_dom_plugin_array_get_type
class GObject o => IsDOMDOMPluginArray o
#if MIN_VERSION_base(4,9,0)
instance (GObject a, O.UnknownAncestorError DOMDOMPluginArray a) =>
IsDOMDOMPluginArray a
#endif
instance IsDOMDOMPluginArray DOMDOMPluginArray
instance WebKit.DOMObject.IsDOMObject DOMDOMPluginArray
instance GObject.Object.IsObject DOMDOMPluginArray
toDOMDOMPluginArray :: IsDOMDOMPluginArray o => o -> IO DOMDOMPluginArray
toDOMDOMPluginArray = unsafeCastTo DOMDOMPluginArray
noDOMDOMPluginArray :: Maybe DOMDOMPluginArray
noDOMDOMPluginArray = Nothing
type family ResolveDOMDOMPluginArrayMethod (t :: Symbol) (o :: *) :: * where
ResolveDOMDOMPluginArrayMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveDOMDOMPluginArrayMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveDOMDOMPluginArrayMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveDOMDOMPluginArrayMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveDOMDOMPluginArrayMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveDOMDOMPluginArrayMethod "item" o = DOMDOMPluginArrayItemMethodInfo
ResolveDOMDOMPluginArrayMethod "namedItem" o = DOMDOMPluginArrayNamedItemMethodInfo
ResolveDOMDOMPluginArrayMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveDOMDOMPluginArrayMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveDOMDOMPluginArrayMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveDOMDOMPluginArrayMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveDOMDOMPluginArrayMethod "refresh" o = DOMDOMPluginArrayRefreshMethodInfo
ResolveDOMDOMPluginArrayMethod "replaceData" o = GObject.Object.ObjectReplaceDataMethodInfo
ResolveDOMDOMPluginArrayMethod "replaceQdata" o = GObject.Object.ObjectReplaceQdataMethodInfo
ResolveDOMDOMPluginArrayMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveDOMDOMPluginArrayMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveDOMDOMPluginArrayMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveDOMDOMPluginArrayMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveDOMDOMPluginArrayMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveDOMDOMPluginArrayMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveDOMDOMPluginArrayMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveDOMDOMPluginArrayMethod "getLength" o = DOMDOMPluginArrayGetLengthMethodInfo
ResolveDOMDOMPluginArrayMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveDOMDOMPluginArrayMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveDOMDOMPluginArrayMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveDOMDOMPluginArrayMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveDOMDOMPluginArrayMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveDOMDOMPluginArrayMethod t DOMDOMPluginArray, O.MethodInfo info DOMDOMPluginArray p) => O.IsLabelProxy t (DOMDOMPluginArray -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveDOMDOMPluginArrayMethod t DOMDOMPluginArray, O.MethodInfo info DOMDOMPluginArray p) => O.IsLabel t (DOMDOMPluginArray -> p) where
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
getDOMDOMPluginArrayLength :: (MonadIO m, IsDOMDOMPluginArray o) => o -> m CULong
getDOMDOMPluginArrayLength obj = liftIO $ getObjectPropertyULong obj "length"
data DOMDOMPluginArrayLengthPropertyInfo
instance AttrInfo DOMDOMPluginArrayLengthPropertyInfo where
type AttrAllowedOps DOMDOMPluginArrayLengthPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMDOMPluginArrayLengthPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMDOMPluginArrayLengthPropertyInfo = IsDOMDOMPluginArray
type AttrGetType DOMDOMPluginArrayLengthPropertyInfo = CULong
type AttrLabel DOMDOMPluginArrayLengthPropertyInfo = "length"
type AttrOrigin DOMDOMPluginArrayLengthPropertyInfo = DOMDOMPluginArray
attrGet _ = getDOMDOMPluginArrayLength
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
instance O.HasAttributeList DOMDOMPluginArray
type instance O.AttributeList DOMDOMPluginArray = DOMDOMPluginArrayAttributeList
type DOMDOMPluginArrayAttributeList = ('[ '("coreObject", WebKit.DOMObject.DOMObjectCoreObjectPropertyInfo), '("length", DOMDOMPluginArrayLengthPropertyInfo)] :: [(Symbol, *)])
dOMDOMPluginArrayLength :: AttrLabelProxy "length"
dOMDOMPluginArrayLength = AttrLabelProxy
type instance O.SignalList DOMDOMPluginArray = DOMDOMPluginArraySignalList
type DOMDOMPluginArraySignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, *)])
foreign import ccall "webkit_dom_dom_plugin_array_get_length" webkit_dom_dom_plugin_array_get_length ::
Ptr DOMDOMPluginArray ->
IO CULong
dOMDOMPluginArrayGetLength ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMDOMPluginArray a) =>
a
-> m CULong
dOMDOMPluginArrayGetLength self = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
result <- webkit_dom_dom_plugin_array_get_length self'
touchManagedPtr self
return result
data DOMDOMPluginArrayGetLengthMethodInfo
instance (signature ~ (m CULong), MonadIO m, IsDOMDOMPluginArray a) => O.MethodInfo DOMDOMPluginArrayGetLengthMethodInfo a signature where
overloadedMethod _ = dOMDOMPluginArrayGetLength
foreign import ccall "webkit_dom_dom_plugin_array_item" webkit_dom_dom_plugin_array_item ::
Ptr DOMDOMPluginArray ->
CULong ->
IO (Ptr WebKit.DOMDOMPlugin.DOMDOMPlugin)
dOMDOMPluginArrayItem ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMDOMPluginArray a) =>
a
-> CULong
-> m WebKit.DOMDOMPlugin.DOMDOMPlugin
dOMDOMPluginArrayItem self index = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
result <- webkit_dom_dom_plugin_array_item self' index
checkUnexpectedReturnNULL "dOMDOMPluginArrayItem" result
result' <- (wrapObject WebKit.DOMDOMPlugin.DOMDOMPlugin) result
touchManagedPtr self
return result'
data DOMDOMPluginArrayItemMethodInfo
instance (signature ~ (CULong -> m WebKit.DOMDOMPlugin.DOMDOMPlugin), MonadIO m, IsDOMDOMPluginArray a) => O.MethodInfo DOMDOMPluginArrayItemMethodInfo a signature where
overloadedMethod _ = dOMDOMPluginArrayItem
foreign import ccall "webkit_dom_dom_plugin_array_named_item" webkit_dom_dom_plugin_array_named_item ::
Ptr DOMDOMPluginArray ->
CString ->
IO (Ptr WebKit.DOMDOMPlugin.DOMDOMPlugin)
dOMDOMPluginArrayNamedItem ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMDOMPluginArray a) =>
a
-> T.Text
-> m WebKit.DOMDOMPlugin.DOMDOMPlugin
dOMDOMPluginArrayNamedItem self name = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
name' <- textToCString name
result <- webkit_dom_dom_plugin_array_named_item self' name'
checkUnexpectedReturnNULL "dOMDOMPluginArrayNamedItem" result
result' <- (wrapObject WebKit.DOMDOMPlugin.DOMDOMPlugin) result
touchManagedPtr self
freeMem name'
return result'
data DOMDOMPluginArrayNamedItemMethodInfo
instance (signature ~ (T.Text -> m WebKit.DOMDOMPlugin.DOMDOMPlugin), MonadIO m, IsDOMDOMPluginArray a) => O.MethodInfo DOMDOMPluginArrayNamedItemMethodInfo a signature where
overloadedMethod _ = dOMDOMPluginArrayNamedItem
foreign import ccall "webkit_dom_dom_plugin_array_refresh" webkit_dom_dom_plugin_array_refresh ::
Ptr DOMDOMPluginArray ->
CInt ->
IO ()
dOMDOMPluginArrayRefresh ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMDOMPluginArray a) =>
a
-> Bool
-> m ()
dOMDOMPluginArrayRefresh self reload = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
let reload' = (fromIntegral . fromEnum) reload
webkit_dom_dom_plugin_array_refresh self' reload'
touchManagedPtr self
return ()
data DOMDOMPluginArrayRefreshMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsDOMDOMPluginArray a) => O.MethodInfo DOMDOMPluginArrayRefreshMethodInfo a signature where
overloadedMethod _ = dOMDOMPluginArrayRefresh