-- 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/HTMLStyleElement.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.HTMLStyleElement
       (htmlStyleElementSetDisabled, htmlStyleElementGetDisabled,
        htmlStyleElementSetScoped, htmlStyleElementGetScoped,
        htmlStyleElementSetMedia, htmlStyleElementGetMedia,
        htmlStyleElementGetSheet, HTMLStyleElement, HTMLStyleElementClass,
        castToHTMLStyleElement, gTypeHTMLStyleElement, toHTMLStyleElement)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 11 "./Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
htmlStyleElementSetDisabled ::
                            (HTMLStyleElementClass self) => self -> Bool -> IO ()
htmlStyleElementSetDisabled self val
  = (\(HTMLStyleElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_style_element_set_disabled argPtr1 arg2)
{-# LINE 18 "./Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs" #-}
      (toHTMLStyleElement self)
      (fromBool val)
 
htmlStyleElementGetDisabled ::
                            (HTMLStyleElementClass self) => self -> IO Bool
htmlStyleElementGetDisabled self
  = toBool <$>
      ((\(HTMLStyleElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_style_element_get_disabled argPtr1)
{-# LINE 26 "./Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs" #-}
         (toHTMLStyleElement self))
 
htmlStyleElementSetScoped ::
                          (HTMLStyleElementClass self) => self -> Bool -> IO ()
htmlStyleElementSetScoped self val
  = (\(HTMLStyleElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_style_element_set_scoped argPtr1 arg2)
{-# LINE 32 "./Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs" #-}
      (toHTMLStyleElement self)
      (fromBool val)
 
htmlStyleElementGetScoped ::
                          (HTMLStyleElementClass self) => self -> IO Bool
htmlStyleElementGetScoped self
  = toBool <$>
      ((\(HTMLStyleElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_style_element_get_scoped argPtr1)
{-# LINE 40 "./Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs" #-}
         (toHTMLStyleElement self))
 
htmlStyleElementSetMedia ::
                         (HTMLStyleElementClass self, GlibString string) =>
                           self -> string -> IO ()
htmlStyleElementSetMedia self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLStyleElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_style_element_set_media argPtr1 arg2)
{-# LINE 49 "./Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs" #-}
          (toHTMLStyleElement self)
          valPtr
 
htmlStyleElementGetMedia ::
                         (HTMLStyleElementClass self, GlibString string) =>
                           self -> IO string
htmlStyleElementGetMedia self
  = ((\(HTMLStyleElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_style_element_get_media argPtr1)
{-# LINE 57 "./Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs" #-}
       (toHTMLStyleElement self))
      >>=
      readUTFString
 
htmlStyleElementGetSheet ::
                         (HTMLStyleElementClass self) => self -> IO (Maybe StyleSheet)
htmlStyleElementGetSheet self
  = maybeNull (makeNewGObject mkStyleSheet)
      ((\(HTMLStyleElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_style_element_get_sheet argPtr1)
{-# LINE 66 "./Graphics/UI/Gtk/WebKit/DOM/HTMLStyleElement.chs" #-}
         (toHTMLStyleElement self))

foreign import ccall safe "webkit_dom_html_style_element_set_disabled"
  webkit_dom_html_style_element_set_disabled :: ((Ptr HTMLStyleElement) -> (CInt -> (IO ())))

foreign import ccall safe "webkit_dom_html_style_element_get_disabled"
  webkit_dom_html_style_element_get_disabled :: ((Ptr HTMLStyleElement) -> (IO CInt))

foreign import ccall safe "webkit_dom_html_style_element_set_scoped"
  webkit_dom_html_style_element_set_scoped :: ((Ptr HTMLStyleElement) -> (CInt -> (IO ())))

foreign import ccall safe "webkit_dom_html_style_element_get_scoped"
  webkit_dom_html_style_element_get_scoped :: ((Ptr HTMLStyleElement) -> (IO CInt))

foreign import ccall safe "webkit_dom_html_style_element_set_media"
  webkit_dom_html_style_element_set_media :: ((Ptr HTMLStyleElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "webkit_dom_html_style_element_get_media"
  webkit_dom_html_style_element_get_media :: ((Ptr HTMLStyleElement) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_html_style_element_get_sheet"
  webkit_dom_html_style_element_get_sheet :: ((Ptr HTMLStyleElement) -> (IO (Ptr StyleSheet)))