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