#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.FileList
(ghcjs_dom_file_list_item, fileListItem,
ghcjs_dom_file_list_get_length, fileListGetLength, FileList,
IsFileList, castToFileList, gTypeFileList, toFileList)
where
import GHCJS.Types
import GHCJS.Foreign
import GHCJS.Marshal
import Data.Int
import Data.Word
import GHCJS.DOM.Types
import Control.Applicative ((<$>))
import GHCJS.DOM.EventM
foreign import javascript unsafe "$1[\"item\"]($2)"
ghcjs_dom_file_list_item ::
JSRef FileList -> Word -> IO (JSRef File)
fileListItem ::
(IsFileList self) => self -> Word -> IO (Maybe File)
fileListItem self index
= fmap File . maybeJSNull <$>
(ghcjs_dom_file_list_item (unFileList (toFileList self)) index)
foreign import javascript unsafe "$1[\"length\"]"
ghcjs_dom_file_list_get_length :: JSRef FileList -> IO Word
fileListGetLength :: (IsFileList self) => self -> IO Word
fileListGetLength self
= ghcjs_dom_file_list_get_length (unFileList (toFileList self))
#else
module GHCJS.DOM.FileList (
module Graphics.UI.Gtk.WebKit.DOM.FileList
) where
import Graphics.UI.Gtk.WebKit.DOM.FileList
#endif