-- GENERATED by C->Haskell Compiler, version 0.13.11 (gtk2hs branch) "Bin IO", 27 May 2012 (Haskell)
-- Edit the ORIGNAL .chs file instead!


{-# LINE 1 "./Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.HTMLBaseElement
       (htmlBaseElementSetHref, htmlBaseElementGetHref,
        htmlBaseElementSetTarget, htmlBaseElementGetTarget,
        HTMLBaseElement, HTMLBaseElementClass, castToHTMLBaseElement,
        gTypeHTMLBaseElement, toHTMLBaseElement)
       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/HTMLBaseElement.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
htmlBaseElementSetHref ::
                       (HTMLBaseElementClass self) => self -> String -> IO ()
htmlBaseElementSetHref self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLBaseElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_base_element_set_href argPtr1 arg2)
{-# LINE 19 "./Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs" #-}
          (toHTMLBaseElement self)
          valPtr
 
htmlBaseElementGetHref ::
                       (HTMLBaseElementClass self) => self -> IO String
htmlBaseElementGetHref self
  = ((\(HTMLBaseElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_base_element_get_href argPtr1)
{-# LINE 26 "./Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs" #-}
       (toHTMLBaseElement self))
      >>=
      readUTFString
 
htmlBaseElementSetTarget ::
                         (HTMLBaseElementClass self) => self -> String -> IO ()
htmlBaseElementSetTarget self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLBaseElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_base_element_set_target argPtr1 arg2)
{-# LINE 36 "./Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs" #-}
          (toHTMLBaseElement self)
          valPtr
 
htmlBaseElementGetTarget ::
                         (HTMLBaseElementClass self) => self -> IO String
htmlBaseElementGetTarget self
  = ((\(HTMLBaseElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_base_element_get_target argPtr1)
{-# LINE 43 "./Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs" #-}
       (toHTMLBaseElement self))
      >>=
      readUTFString

foreign import ccall safe "webkit_dom_html_base_element_set_href"
  webkit_dom_html_base_element_set_href :: ((Ptr HTMLBaseElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "webkit_dom_html_base_element_get_href"
  webkit_dom_html_base_element_get_href :: ((Ptr HTMLBaseElement) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_html_base_element_set_target"
  webkit_dom_html_base_element_set_target :: ((Ptr HTMLBaseElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "webkit_dom_html_base_element_get_target"
  webkit_dom_html_base_element_get_target :: ((Ptr HTMLBaseElement) -> (IO (Ptr CChar)))