-- GENERATED by C->Haskell Compiler, version 0.13.11 (gtk2hs branch) "Bin IO", 27 May 2012 (Haskell)
-- Edit the ORIGNAL .chs file instead!


{-# LINE 1 "./Graphics/UI/Gtk/WebKit/DOM/CSSRuleList.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.CSSRuleList
       (cssRuleListItem, cssRuleListGetLength, CSSRuleList,
        CSSRuleListClass, castToCSSRuleList, gTypeCSSRuleList,
        toCSSRuleList)
       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/CSSRuleList.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
cssRuleListItem ::
                (CSSRuleListClass self) => self -> Word -> IO (Maybe CSSRule)
cssRuleListItem self index
  = maybeNull (makeNewGObject mkCSSRule)
      ((\(CSSRuleList arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_css_rule_list_item argPtr1 arg2) (toCSSRuleList self)
         (fromIntegral index))
 
cssRuleListGetLength :: (CSSRuleListClass self) => self -> IO Word
cssRuleListGetLength self
  = fromIntegral <$>
      ((\(CSSRuleList arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_css_rule_list_get_length argPtr1)
{-# LINE 23 "./Graphics/UI/Gtk/WebKit/DOM/CSSRuleList.chs" #-}
         (toCSSRuleList self))

foreign import ccall safe "webkit_dom_css_rule_list_item"
  webkit_dom_css_rule_list_item :: ((Ptr CSSRuleList) -> (CULong -> (IO (Ptr CSSRule))))

foreign import ccall safe "webkit_dom_css_rule_list_get_length"
  webkit_dom_css_rule_list_get_length :: ((Ptr CSSRuleList) -> (IO CULong))