-- 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/DOMStringList.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.DOMStringList
       (domStringListItem, domStringListContains, domStringListGetLength,
        DOMStringList, DOMStringListClass, castToDOMStringList,
        gTypeDOMStringList, toDOMStringList)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 9 "./Graphics/UI/Gtk/WebKit/DOM/DOMStringList.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
domStringListItem ::
                  (DOMStringListClass self, GlibString string) =>
                    self -> Word -> IO string
domStringListItem self index
  = ((\(DOMStringList arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_string_list_item argPtr1 arg2)
{-# LINE 17 "./Graphics/UI/Gtk/WebKit/DOM/DOMStringList.chs" #-}
       (toDOMStringList self)
       (fromIntegral index))
      >>=
      readUTFString
 
domStringListContains ::
                      (DOMStringListClass self, GlibString string) =>
                        self -> string -> IO Bool
domStringListContains self string
  = toBool <$>
      (withUTFString string $
         \ stringPtr ->
           (\(DOMStringList arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_string_list_contains argPtr1 arg2)
{-# LINE 30 "./Graphics/UI/Gtk/WebKit/DOM/DOMStringList.chs" #-}
             (toDOMStringList self)
             stringPtr)
 
domStringListGetLength ::
                       (DOMStringListClass self) => self -> IO Word
domStringListGetLength self
  = fromIntegral <$>
      ((\(DOMStringList arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_string_list_get_length argPtr1)
{-# LINE 38 "./Graphics/UI/Gtk/WebKit/DOM/DOMStringList.chs" #-}
         (toDOMStringList self))

foreign import ccall safe "webkit_dom_dom_string_list_item"
  webkit_dom_dom_string_list_item :: ((Ptr DOMStringList) -> (CULong -> (IO (Ptr CChar))))

foreign import ccall safe "webkit_dom_dom_string_list_contains"
  webkit_dom_dom_string_list_contains :: ((Ptr DOMStringList) -> ((Ptr CChar) -> (IO CInt)))

foreign import ccall safe "webkit_dom_dom_string_list_get_length"
  webkit_dom_dom_string_list_get_length :: ((Ptr DOMStringList) -> (IO CULong))