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