-- 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, GlibString string) =>
                         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 20 "./Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs" #-}
          (toHTMLBaseElement self)
          valPtr
 
htmlBaseElementGetHref ::
                       (HTMLBaseElementClass self, GlibString string) => self -> IO string
htmlBaseElementGetHref self
  = ((\(HTMLBaseElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_base_element_get_href argPtr1)
{-# LINE 27 "./Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs" #-}
       (toHTMLBaseElement self))
      >>=
      readUTFString
 
htmlBaseElementSetTarget ::
                         (HTMLBaseElementClass self, GlibString string) =>
                           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 38 "./Graphics/UI/Gtk/WebKit/DOM/HTMLBaseElement.chs" #-}
          (toHTMLBaseElement self)
          valPtr
 
htmlBaseElementGetTarget ::
                         (HTMLBaseElementClass self, GlibString string) => self -> IO string
htmlBaseElementGetTarget self
  = ((\(HTMLBaseElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_base_element_get_target argPtr1)
{-# LINE 45 "./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)))