{- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria (garetxe@gmail.com) -} module GI.WebKit.Objects.DOMPropertyNodeList ( -- * Exported types DOMPropertyNodeList(..) , DOMPropertyNodeListK , toDOMPropertyNodeList , noDOMPropertyNodeList , -- * Methods -- ** dOMPropertyNodeListGetLength dOMPropertyNodeListGetLength , -- ** dOMPropertyNodeListItem dOMPropertyNodeListItem , -- * Properties -- ** Length DOMPropertyNodeListLengthPropertyInfo , getDOMPropertyNodeListLength , ) 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.WebKit.Types import GI.WebKit.Callbacks import qualified GI.GObject as GObject newtype DOMPropertyNodeList = DOMPropertyNodeList (ForeignPtr DOMPropertyNodeList) foreign import ccall "webkit_dom_property_node_list_get_type" c_webkit_dom_property_node_list_get_type :: IO GType type instance ParentTypes DOMPropertyNodeList = DOMPropertyNodeListParentTypes type DOMPropertyNodeListParentTypes = '[DOMNodeList, DOMObject, GObject.Object] instance GObject DOMPropertyNodeList where gobjectIsInitiallyUnowned _ = False gobjectType _ = c_webkit_dom_property_node_list_get_type class GObject o => DOMPropertyNodeListK o instance (GObject o, IsDescendantOf DOMPropertyNodeList o) => DOMPropertyNodeListK o toDOMPropertyNodeList :: DOMPropertyNodeListK o => o -> IO DOMPropertyNodeList toDOMPropertyNodeList = unsafeCastTo DOMPropertyNodeList noDOMPropertyNodeList :: Maybe DOMPropertyNodeList noDOMPropertyNodeList = Nothing -- VVV Prop "length" -- Type: TBasicType TUInt64 -- Flags: [PropertyReadable] getDOMPropertyNodeListLength :: (MonadIO m, DOMPropertyNodeListK o) => o -> m Word64 getDOMPropertyNodeListLength obj = liftIO $ getObjectPropertyUInt64 obj "length" data DOMPropertyNodeListLengthPropertyInfo instance AttrInfo DOMPropertyNodeListLengthPropertyInfo where type AttrAllowedOps DOMPropertyNodeListLengthPropertyInfo = '[ 'AttrGet] type AttrSetTypeConstraint DOMPropertyNodeListLengthPropertyInfo = (~) () type AttrBaseTypeConstraint DOMPropertyNodeListLengthPropertyInfo = DOMPropertyNodeListK type AttrGetType DOMPropertyNodeListLengthPropertyInfo = Word64 type AttrLabel DOMPropertyNodeListLengthPropertyInfo = "DOMPropertyNodeList::length" attrGet _ = getDOMPropertyNodeListLength attrSet _ = undefined attrConstruct _ = undefined type instance AttributeList DOMPropertyNodeList = DOMPropertyNodeListAttributeList type DOMPropertyNodeListAttributeList = ('[ '("core-object", DOMObjectCoreObjectPropertyInfo), '("length", DOMPropertyNodeListLengthPropertyInfo)] :: [(Symbol, *)]) type instance SignalList DOMPropertyNodeList = DOMPropertyNodeListSignalList type DOMPropertyNodeListSignalList = ('[ '("notify", GObject.ObjectNotifySignalInfo), '("notify::[property]", GObjectNotifySignalInfo)] :: [(Symbol, *)]) -- method DOMPropertyNodeList::get_length -- method type : MemberFunction -- Args : [Arg {argName = "self", argType = TBasicType TVoid, direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, transfer = TransferNothing}] -- Lengths : [] -- hInArgs : [Arg {argName = "self", argType = TBasicType TVoid, direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, transfer = TransferNothing}] -- returnType : TBasicType TUInt64 -- throws : False -- Skip return : False foreign import ccall "webkit_dom_property_node_list_get_length" webkit_dom_property_node_list_get_length :: Ptr () -> -- self : TBasicType TVoid IO Word64 {-# DEPRECATED dOMPropertyNodeListGetLength ["(Since version 2.2)"]#-} dOMPropertyNodeListGetLength :: (MonadIO m) => Ptr () -> -- self m Word64 dOMPropertyNodeListGetLength self = liftIO $ do result <- webkit_dom_property_node_list_get_length self return result -- method DOMPropertyNodeList::item -- method type : MemberFunction -- Args : [Arg {argName = "self", argType = TBasicType TVoid, direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, transfer = TransferNothing},Arg {argName = "index", argType = TBasicType TUInt64, direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, transfer = TransferNothing}] -- Lengths : [] -- hInArgs : [Arg {argName = "self", argType = TBasicType TVoid, direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, transfer = TransferNothing},Arg {argName = "index", argType = TBasicType TUInt64, direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, transfer = TransferNothing}] -- returnType : TInterface "WebKit" "DOMNode" -- throws : False -- Skip return : False foreign import ccall "webkit_dom_property_node_list_item" webkit_dom_property_node_list_item :: Ptr () -> -- self : TBasicType TVoid Word64 -> -- index : TBasicType TUInt64 IO (Ptr DOMNode) {-# DEPRECATED dOMPropertyNodeListItem ["(Since version 2.2)"]#-} dOMPropertyNodeListItem :: (MonadIO m) => Ptr () -> -- self Word64 -> -- index m DOMNode dOMPropertyNodeListItem self index = liftIO $ do result <- webkit_dom_property_node_list_item self index checkUnexpectedReturnNULL "webkit_dom_property_node_list_item" result result' <- (newObject DOMNode) result return result'