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
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))