-- 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/DOMPluginArray.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.DOMPluginArray
       (domPluginArrayItem, domPluginArrayNamedItem,
        domPluginArrayRefresh, domPluginArrayGetLength, DOMPluginArray,
        DOMPluginArrayClass, castToDOMPluginArray, gTypeDOMPluginArray,
        toDOMPluginArray)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 10 "./Graphics/UI/Gtk/WebKit/DOM/DOMPluginArray.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
domPluginArrayItem ::
                   (DOMPluginArrayClass self) => self -> Word -> IO (Maybe DOMPlugin)
domPluginArrayItem self index
  = maybeNull (makeNewGObject mkDOMPlugin)
      ((\(DOMPluginArray arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_plugin_array_item argPtr1 arg2)
{-# LINE 18 "./Graphics/UI/Gtk/WebKit/DOM/DOMPluginArray.chs" #-}
         (toDOMPluginArray self)
         (fromIntegral index))
 
domPluginArrayNamedItem ::
                        (DOMPluginArrayClass self, GlibString string) =>
                          self -> string -> IO (Maybe DOMPlugin)
domPluginArrayNamedItem self name
  = maybeNull (makeNewGObject mkDOMPlugin)
      (withUTFString name $
         \ namePtr ->
           (\(DOMPluginArray arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_plugin_array_named_item argPtr1 arg2)
{-# LINE 29 "./Graphics/UI/Gtk/WebKit/DOM/DOMPluginArray.chs" #-}
             (toDOMPluginArray self)
             namePtr)
 
domPluginArrayRefresh ::
                      (DOMPluginArrayClass self) => self -> Bool -> IO ()
domPluginArrayRefresh self reload
  = (\(DOMPluginArray arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_plugin_array_refresh argPtr1 arg2)
{-# LINE 36 "./Graphics/UI/Gtk/WebKit/DOM/DOMPluginArray.chs" #-}
      (toDOMPluginArray self)
      (fromBool reload)
 
domPluginArrayGetLength ::
                        (DOMPluginArrayClass self) => self -> IO Word
domPluginArrayGetLength self
  = fromIntegral <$>
      ((\(DOMPluginArray arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_dom_plugin_array_get_length argPtr1)
{-# LINE 44 "./Graphics/UI/Gtk/WebKit/DOM/DOMPluginArray.chs" #-}
         (toDOMPluginArray self))

foreign import ccall safe "webkit_dom_dom_plugin_array_item"
  webkit_dom_dom_plugin_array_item :: ((Ptr DOMPluginArray) -> (CULong -> (IO (Ptr DOMPlugin))))

foreign import ccall safe "webkit_dom_dom_plugin_array_named_item"
  webkit_dom_dom_plugin_array_named_item :: ((Ptr DOMPluginArray) -> ((Ptr CChar) -> (IO (Ptr DOMPlugin))))

foreign import ccall safe "webkit_dom_dom_plugin_array_refresh"
  webkit_dom_dom_plugin_array_refresh :: ((Ptr DOMPluginArray) -> (CInt -> (IO ())))

foreign import ccall safe "webkit_dom_dom_plugin_array_get_length"
  webkit_dom_dom_plugin_array_get_length :: ((Ptr DOMPluginArray) -> (IO CULong))