-- 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/DOMNamedFlowCollection.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.DOMNamedFlowCollection
       (
        domNamedFlowCollectionItem, domNamedFlowCollectionNamedItem,
        domNamedFlowCollectionGetLength, DOMNamedFlowCollection,
        DOMNamedFlowCollectionClass, castToDOMNamedFlowCollection,
        gTypeDOMNamedFlowCollection, toDOMNamedFlowCollection
       )
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 14 "./Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
domNamedFlowCollectionItem ::
                           (DOMNamedFlowCollectionClass self) =>
                             self -> Word -> IO (Maybe WebKitNamedFlow)
domNamedFlowCollectionItem self index
  = maybeNull (makeNewGObject mkWebKitNamedFlow)
      ((\(DOMNamedFlowCollection arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_named_flow_collection_item argPtr1 arg2)
{-# LINE 24 "./Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.chs" #-}
         (toDOMNamedFlowCollection self)
         (fromIntegral index))
 
domNamedFlowCollectionNamedItem ::
                                (DOMNamedFlowCollectionClass self, GlibString string) =>
                                  self -> string -> IO (Maybe WebKitNamedFlow)
domNamedFlowCollectionNamedItem self name
  = maybeNull (makeNewGObject mkWebKitNamedFlow)
      (withUTFString name $
         \ namePtr ->
           (\(DOMNamedFlowCollection arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_named_flow_collection_named_item argPtr1 arg2)
{-# LINE 35 "./Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.chs" #-}
             (toDOMNamedFlowCollection self)
             namePtr)
 
domNamedFlowCollectionGetLength ::
                                (DOMNamedFlowCollectionClass self) => self -> IO Word
domNamedFlowCollectionGetLength self
  = fromIntegral <$>
      ((\(DOMNamedFlowCollection arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_named_flow_collection_get_length argPtr1)
{-# LINE 43 "./Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.chs" #-}
         (toDOMNamedFlowCollection self))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.h webkit_dom_dom_named_flow_collection_item"
  webkit_dom_dom_named_flow_collection_item :: ((Ptr DOMNamedFlowCollection) -> (CULong -> (IO (Ptr WebKitNamedFlow))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.h webkit_dom_dom_named_flow_collection_named_item"
  webkit_dom_dom_named_flow_collection_named_item :: ((Ptr DOMNamedFlowCollection) -> ((Ptr CChar) -> (IO (Ptr WebKitNamedFlow))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/DOMNamedFlowCollection.h webkit_dom_dom_named_flow_collection_get_length"
  webkit_dom_dom_named_flow_collection_get_length :: ((Ptr DOMNamedFlowCollection) -> (IO CULong))