-- GENERATED by C->Haskell Compiler, version 0.13.9 (gtk2hs branch) "Bin IO", 27 May 2012 (Haskell)
-- Edit the ORIGNAL .chs file instead!


{-# LINE 1 "./Graphics/UI/Gtk/WebKit/DOM/HTMLCollection.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.HTMLCollection
       (htmlCollectionItem,
        htmlCollectionGetLength, HTMLCollection, HTMLCollectionClass,
        castToHTMLCollection, gTypeHTMLCollection, toHTMLCollection)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 12 "./Graphics/UI/Gtk/WebKit/DOM/HTMLCollection.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
htmlCollectionItem ::
                   (HTMLCollectionClass self) => self -> Word -> IO (Maybe Node)
htmlCollectionItem self index
  = maybeNull (makeNewGObject mkNode)
      ((\(HTMLCollection arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_collection_item argPtr1 arg2) (toHTMLCollection self)
         (fromIntegral index))
 

htmlCollectionGetLength ::
                        (HTMLCollectionClass self) => self -> IO Word
htmlCollectionGetLength self
  = fromIntegral <$>
      ((\(HTMLCollection arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_collection_get_length argPtr1)
{-# LINE 39 "./Graphics/UI/Gtk/WebKit/DOM/HTMLCollection.chs" #-}
         (toHTMLCollection self))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLCollection.h webkit_dom_html_collection_item"
  webkit_dom_html_collection_item :: ((Ptr HTMLCollection) -> (CULong -> (IO (Ptr Node))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLCollection.h webkit_dom_html_collection_get_length"
  webkit_dom_html_collection_get_length :: ((Ptr HTMLCollection) -> (IO CULong))