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
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)
(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)
(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)
(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)
(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))