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


{-# LINE 1 "./Graphics/UI/Gtk/WebKit/DOM/FileList.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.FileList
       (fileListItem, fileListGetLength, FileList, FileListClass,
        castToFileList, gTypeFileList, toFileList)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 8 "./Graphics/UI/Gtk/WebKit/DOM/FileList.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
fileListItem ::
             (FileListClass self) => self -> Word -> IO (Maybe File)
fileListItem self index
  = maybeNull (makeNewGObject mkFile)
      ((\(FileList arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_file_list_item argPtr1 arg2) (toFileList self)
         (fromIntegral index))
 
fileListGetLength :: (FileListClass self) => self -> IO Word
fileListGetLength self
  = fromIntegral <$>
      ((\(FileList arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_file_list_get_length argPtr1) (toFileList self))

foreign import ccall safe "webkit_dom_file_list_item"
  webkit_dom_file_list_item :: ((Ptr FileList) -> (CULong -> (IO (Ptr File))))

foreign import ccall safe "webkit_dom_file_list_get_length"
  webkit_dom_file_list_get_length :: ((Ptr FileList) -> (IO CULong))