-- 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/HTMLMapElement.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.HTMLMapElement
       (htmlMapElementGetAreas, htmlMapElementSetName,
        htmlMapElementGetName, HTMLMapElement, HTMLMapElementClass,
        castToHTMLMapElement, gTypeHTMLMapElement, toHTMLMapElement)
       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/HTMLMapElement.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
htmlMapElementGetAreas ::
                       (HTMLMapElementClass self) => self -> IO (Maybe HTMLCollection)
htmlMapElementGetAreas self
  = maybeNull (makeNewGObject mkHTMLCollection)
      ((\(HTMLMapElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_map_element_get_areas argPtr1)
{-# LINE 17 "./Graphics/UI/Gtk/WebKit/DOM/HTMLMapElement.chs" #-}
         (toHTMLMapElement self))
 
htmlMapElementSetName ::
                      (HTMLMapElementClass self, GlibString string) =>
                        self -> string -> IO ()
htmlMapElementSetName self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLMapElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_map_element_set_name argPtr1 arg2)
{-# LINE 26 "./Graphics/UI/Gtk/WebKit/DOM/HTMLMapElement.chs" #-}
          (toHTMLMapElement self)
          valPtr
 
htmlMapElementGetName ::
                      (HTMLMapElementClass self, GlibString string) => self -> IO string
htmlMapElementGetName self
  = ((\(HTMLMapElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_map_element_get_name argPtr1)
{-# LINE 33 "./Graphics/UI/Gtk/WebKit/DOM/HTMLMapElement.chs" #-}
       (toHTMLMapElement self))
      >>=
      readUTFString

foreign import ccall safe "webkit_dom_html_map_element_get_areas"
  webkit_dom_html_map_element_get_areas :: ((Ptr HTMLMapElement) -> (IO (Ptr HTMLCollection)))

foreign import ccall safe "webkit_dom_html_map_element_set_name"
  webkit_dom_html_map_element_set_name :: ((Ptr HTMLMapElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "webkit_dom_html_map_element_get_name"
  webkit_dom_html_map_element_get_name :: ((Ptr HTMLMapElement) -> (IO (Ptr CChar)))