-- 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/StyleSheetList.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.StyleSheetList
       (styleSheetListItem, styleSheetListGetLength, StyleSheetList,
        StyleSheetListClass, castToStyleSheetList, gTypeStyleSheetList,
        toStyleSheetList)
       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/StyleSheetList.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
styleSheetListItem ::
                   (StyleSheetListClass self) => self -> Word -> IO (Maybe StyleSheet)
styleSheetListItem self index
  = maybeNull (makeNewGObject mkStyleSheet)
      ((\(StyleSheetList arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_style_sheet_list_item argPtr1 arg2)
{-# LINE 17 "./Graphics/UI/Gtk/WebKit/DOM/StyleSheetList.chs" #-}
         (toStyleSheetList self)
         (fromIntegral index))
 
styleSheetListGetLength ::
                        (StyleSheetListClass self) => self -> IO Word
styleSheetListGetLength self
  = fromIntegral <$>
      ((\(StyleSheetList arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_style_sheet_list_get_length argPtr1)
{-# LINE 25 "./Graphics/UI/Gtk/WebKit/DOM/StyleSheetList.chs" #-}
         (toStyleSheetList self))

foreign import ccall safe "webkit_dom_style_sheet_list_item"
  webkit_dom_style_sheet_list_item :: ((Ptr StyleSheetList) -> (CULong -> (IO (Ptr StyleSheet))))

foreign import ccall safe "webkit_dom_style_sheet_list_get_length"
  webkit_dom_style_sheet_list_get_length :: ((Ptr StyleSheetList) -> (IO CULong))