-- 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/DOMMimeTypeArray.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.DOMMimeTypeArray
       (domMimeTypeArrayItem, domMimeTypeArrayNamedItem,
        domMimeTypeArrayGetLength, DOMMimeTypeArray, DOMMimeTypeArrayClass,
        castToDOMMimeTypeArray, gTypeDOMMimeTypeArray, toDOMMimeTypeArray)
       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/DOMMimeTypeArray.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
domMimeTypeArrayItem ::
                     (DOMMimeTypeArrayClass self) =>
                       self -> Word -> IO (Maybe DOMMimeType)
domMimeTypeArrayItem self index
  = maybeNull (makeNewGObject mkDOMMimeType)
      ((\(DOMMimeTypeArray arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_mime_type_array_item argPtr1 arg2)
{-# LINE 18 "./Graphics/UI/Gtk/WebKit/DOM/DOMMimeTypeArray.chs" #-}
         (toDOMMimeTypeArray self)
         (fromIntegral index))
 
domMimeTypeArrayNamedItem ::
                          (DOMMimeTypeArrayClass self, GlibString string) =>
                            self -> string -> IO (Maybe DOMMimeType)
domMimeTypeArrayNamedItem self name
  = maybeNull (makeNewGObject mkDOMMimeType)
      (withUTFString name $
         \ namePtr ->
           (\(DOMMimeTypeArray arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_mime_type_array_named_item argPtr1 arg2)
{-# LINE 29 "./Graphics/UI/Gtk/WebKit/DOM/DOMMimeTypeArray.chs" #-}
             (toDOMMimeTypeArray self)
             namePtr)
 
domMimeTypeArrayGetLength ::
                          (DOMMimeTypeArrayClass self) => self -> IO Word
domMimeTypeArrayGetLength self
  = fromIntegral <$>
      ((\(DOMMimeTypeArray arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_mime_type_array_get_length argPtr1)
{-# LINE 37 "./Graphics/UI/Gtk/WebKit/DOM/DOMMimeTypeArray.chs" #-}
         (toDOMMimeTypeArray self))

foreign import ccall safe "webkit_dom_dom_mime_type_array_item"
  webkit_dom_dom_mime_type_array_item :: ((Ptr DOMMimeTypeArray) -> (CULong -> (IO (Ptr DOMMimeType))))

foreign import ccall safe "webkit_dom_dom_mime_type_array_named_item"
  webkit_dom_dom_mime_type_array_named_item :: ((Ptr DOMMimeTypeArray) -> ((Ptr CChar) -> (IO (Ptr DOMMimeType))))

foreign import ccall safe "webkit_dom_dom_mime_type_array_get_length"
  webkit_dom_dom_mime_type_array_get_length :: ((Ptr DOMMimeTypeArray) -> (IO CULong))