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
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)
(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)
(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)
(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)
(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)
(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)
(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)
(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)))