-- 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/HTMLScriptElement.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.HTMLScriptElement
       (htmlScriptElementSetText, htmlScriptElementGetText,
        htmlScriptElementSetHtmlFor, htmlScriptElementGetHtmlFor,
        htmlScriptElementSetEvent, htmlScriptElementGetEvent,
        htmlScriptElementSetCharset, htmlScriptElementGetCharset,
        htmlScriptElementSetAsync, htmlScriptElementGetAsync,
        htmlScriptElementSetDefer, htmlScriptElementGetDefer,
        htmlScriptElementSetSrc, htmlScriptElementGetSrc,
        htmlScriptElementSetCrossOrigin, htmlScriptElementGetCrossOrigin,
        htmlScriptElementSetNonce, htmlScriptElementGetNonce,
        HTMLScriptElement, HTMLScriptElementClass, castToHTMLScriptElement,
        gTypeHTMLScriptElement, toHTMLScriptElement)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 19 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
htmlScriptElementSetText ::
                         (HTMLScriptElementClass self, GlibString string) =>
                           self -> string -> IO ()
htmlScriptElementSetText self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLScriptElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_set_text argPtr1 arg2)
{-# LINE 29 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
          (toHTMLScriptElement self)
          valPtr
 
htmlScriptElementGetText ::
                         (HTMLScriptElementClass self, GlibString string) =>
                           self -> IO string
htmlScriptElementGetText self
  = ((\(HTMLScriptElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_get_text argPtr1)
{-# LINE 37 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
       (toHTMLScriptElement self))
      >>=
      readUTFString
 
htmlScriptElementSetHtmlFor ::
                            (HTMLScriptElementClass self, GlibString string) =>
                              self -> string -> IO ()
htmlScriptElementSetHtmlFor self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLScriptElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_set_html_for argPtr1 arg2)
{-# LINE 48 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
          (toHTMLScriptElement self)
          valPtr
 
htmlScriptElementGetHtmlFor ::
                            (HTMLScriptElementClass self, GlibString string) =>
                              self -> IO string
htmlScriptElementGetHtmlFor self
  = ((\(HTMLScriptElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_get_html_for argPtr1)
{-# LINE 56 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
       (toHTMLScriptElement self))
      >>=
      readUTFString
 
htmlScriptElementSetEvent ::
                          (HTMLScriptElementClass self, GlibString string) =>
                            self -> string -> IO ()
htmlScriptElementSetEvent self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLScriptElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_set_event argPtr1 arg2)
{-# LINE 67 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
          (toHTMLScriptElement self)
          valPtr
 
htmlScriptElementGetEvent ::
                          (HTMLScriptElementClass self, GlibString string) =>
                            self -> IO string
htmlScriptElementGetEvent self
  = ((\(HTMLScriptElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_get_event argPtr1)
{-# LINE 75 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
       (toHTMLScriptElement self))
      >>=
      readUTFString
 
htmlScriptElementSetCharset ::
                            (HTMLScriptElementClass self, GlibString string) =>
                              self -> string -> IO ()
htmlScriptElementSetCharset self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLScriptElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_set_charset argPtr1 arg2)
{-# LINE 86 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
          (toHTMLScriptElement self)
          valPtr
 
htmlScriptElementGetCharset ::
                            (HTMLScriptElementClass self, GlibString string) =>
                              self -> IO string
htmlScriptElementGetCharset self
  = ((\(HTMLScriptElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_get_charset argPtr1)
{-# LINE 94 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
       (toHTMLScriptElement self))
      >>=
      readUTFString
 
htmlScriptElementSetAsync ::
                          (HTMLScriptElementClass self) => self -> Bool -> IO ()
htmlScriptElementSetAsync self val
  = (\(HTMLScriptElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_set_async argPtr1 arg2)
{-# LINE 102 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
      (toHTMLScriptElement self)
      (fromBool val)
 
htmlScriptElementGetAsync ::
                          (HTMLScriptElementClass self) => self -> IO Bool
htmlScriptElementGetAsync self
  = toBool <$>
      ((\(HTMLScriptElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_get_async argPtr1)
{-# LINE 110 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
         (toHTMLScriptElement self))
 
htmlScriptElementSetDefer ::
                          (HTMLScriptElementClass self) => self -> Bool -> IO ()
htmlScriptElementSetDefer self val
  = (\(HTMLScriptElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_set_defer argPtr1 arg2)
{-# LINE 116 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
      (toHTMLScriptElement self)
      (fromBool val)
 
htmlScriptElementGetDefer ::
                          (HTMLScriptElementClass self) => self -> IO Bool
htmlScriptElementGetDefer self
  = toBool <$>
      ((\(HTMLScriptElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_get_defer argPtr1)
{-# LINE 124 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
         (toHTMLScriptElement self))
 
htmlScriptElementSetSrc ::
                        (HTMLScriptElementClass self, GlibString string) =>
                          self -> string -> IO ()
htmlScriptElementSetSrc self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLScriptElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_set_src argPtr1 arg2)
{-# LINE 133 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
          (toHTMLScriptElement self)
          valPtr
 
htmlScriptElementGetSrc ::
                        (HTMLScriptElementClass self, GlibString string) =>
                          self -> IO string
htmlScriptElementGetSrc self
  = ((\(HTMLScriptElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_get_src argPtr1)
{-# LINE 141 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
       (toHTMLScriptElement self))
      >>=
      readUTFString
 
htmlScriptElementSetCrossOrigin ::
                                (HTMLScriptElementClass self, GlibString string) =>
                                  self -> string -> IO ()
htmlScriptElementSetCrossOrigin self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLScriptElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_set_cross_origin argPtr1 arg2)
{-# LINE 153 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
          (toHTMLScriptElement self)
          valPtr
 
htmlScriptElementGetCrossOrigin ::
                                (HTMLScriptElementClass self, GlibString string) =>
                                  self -> IO string
htmlScriptElementGetCrossOrigin self
  = ((\(HTMLScriptElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_get_cross_origin argPtr1)
{-# LINE 161 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
       (toHTMLScriptElement self))
      >>=
      readUTFString
 
htmlScriptElementSetNonce ::
                          (HTMLScriptElementClass self, GlibString string) =>
                            self -> string -> IO ()
htmlScriptElementSetNonce self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLScriptElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_set_nonce argPtr1 arg2)
{-# LINE 172 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
          (toHTMLScriptElement self)
          valPtr
 
htmlScriptElementGetNonce ::
                          (HTMLScriptElementClass self, GlibString string) =>
                            self -> IO string
htmlScriptElementGetNonce self
  = ((\(HTMLScriptElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_script_element_get_nonce argPtr1)
{-# LINE 180 "./Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.chs" #-}
       (toHTMLScriptElement self))
      >>=
      readUTFString

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_set_text"
  webkit_dom_html_script_element_set_text :: ((Ptr HTMLScriptElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_get_text"
  webkit_dom_html_script_element_get_text :: ((Ptr HTMLScriptElement) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_set_html_for"
  webkit_dom_html_script_element_set_html_for :: ((Ptr HTMLScriptElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_get_html_for"
  webkit_dom_html_script_element_get_html_for :: ((Ptr HTMLScriptElement) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_set_event"
  webkit_dom_html_script_element_set_event :: ((Ptr HTMLScriptElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_get_event"
  webkit_dom_html_script_element_get_event :: ((Ptr HTMLScriptElement) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_set_charset"
  webkit_dom_html_script_element_set_charset :: ((Ptr HTMLScriptElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_get_charset"
  webkit_dom_html_script_element_get_charset :: ((Ptr HTMLScriptElement) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_set_async"
  webkit_dom_html_script_element_set_async :: ((Ptr HTMLScriptElement) -> (CInt -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_get_async"
  webkit_dom_html_script_element_get_async :: ((Ptr HTMLScriptElement) -> (IO CInt))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_set_defer"
  webkit_dom_html_script_element_set_defer :: ((Ptr HTMLScriptElement) -> (CInt -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_get_defer"
  webkit_dom_html_script_element_get_defer :: ((Ptr HTMLScriptElement) -> (IO CInt))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_set_src"
  webkit_dom_html_script_element_set_src :: ((Ptr HTMLScriptElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_get_src"
  webkit_dom_html_script_element_get_src :: ((Ptr HTMLScriptElement) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_set_cross_origin"
  webkit_dom_html_script_element_set_cross_origin :: ((Ptr HTMLScriptElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_get_cross_origin"
  webkit_dom_html_script_element_get_cross_origin :: ((Ptr HTMLScriptElement) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_set_nonce"
  webkit_dom_html_script_element_set_nonce :: ((Ptr HTMLScriptElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLScriptElement.h webkit_dom_html_script_element_get_nonce"
  webkit_dom_html_script_element_get_nonce :: ((Ptr HTMLScriptElement) -> (IO (Ptr CChar)))