module Graphics.UI.Gtk.WebKit.DOM.HTMLHRElement(
setAlign,
getAlign,
setNoShade,
getNoShade,
setSize,
getSize,
setWidth,
getWidth,
HTMLHRElement,
castToHTMLHRElement,
gTypeHTMLHRElement,
HTMLHRElementClass,
toHTMLHRElement,
) where
import Prelude hiding (drop, error, print)
import Data.Typeable (Typeable)
import Foreign.Marshal (maybePeek, maybeWith)
import System.Glib.FFI (maybeNull, withForeignPtr, nullForeignPtr, Ptr, nullPtr, castPtr, Word, Int64, Word64, CChar(..), CInt(..), CUInt(..), CLong(..), CULong(..), CLLong(..), CULLong(..), CShort(..), CUShort(..), CFloat(..), CDouble(..), toBool, fromBool)
import System.Glib.UTFString (GlibString(..), readUTFString)
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Monad.IO.Class (MonadIO(..))
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventTargetClosures
import Graphics.UI.Gtk.WebKit.DOM.EventM
import Graphics.UI.Gtk.WebKit.Types
import Graphics.UI.Gtk.WebKit.DOM.Enums
setAlign ::
(MonadIO m, HTMLHRElementClass self, GlibString string) =>
self -> string -> m ()
setAlign self val
= liftIO
(withUTFString val $
\ valPtr ->
(\(HTMLHRElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_htmlhr_element_set_align argPtr1 arg2)
(toHTMLHRElement self)
valPtr)
getAlign ::
(MonadIO m, HTMLHRElementClass self, GlibString string) =>
self -> m string
getAlign self
= liftIO
(((\(HTMLHRElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_htmlhr_element_get_align argPtr1)
(toHTMLHRElement self))
>>=
readUTFString)
setNoShade ::
(MonadIO m, HTMLHRElementClass self) => self -> Bool -> m ()
setNoShade self val
= liftIO
((\(HTMLHRElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_htmlhr_element_set_no_shade argPtr1 arg2)
(toHTMLHRElement self)
(fromBool val))
getNoShade ::
(MonadIO m, HTMLHRElementClass self) => self -> m Bool
getNoShade self
= liftIO
(toBool <$>
((\(HTMLHRElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_htmlhr_element_get_no_shade argPtr1)
(toHTMLHRElement self)))
setSize ::
(MonadIO m, HTMLHRElementClass self, GlibString string) =>
self -> string -> m ()
setSize self val
= liftIO
(withUTFString val $
\ valPtr ->
(\(HTMLHRElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_htmlhr_element_set_size argPtr1 arg2)
(toHTMLHRElement self)
valPtr)
getSize ::
(MonadIO m, HTMLHRElementClass self, GlibString string) =>
self -> m string
getSize self
= liftIO
(((\(HTMLHRElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_htmlhr_element_get_size argPtr1)
(toHTMLHRElement self))
>>=
readUTFString)
setWidth ::
(MonadIO m, HTMLHRElementClass self, GlibString string) =>
self -> string -> m ()
setWidth self val
= liftIO
(withUTFString val $
\ valPtr ->
(\(HTMLHRElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_htmlhr_element_set_width argPtr1 arg2)
(toHTMLHRElement self)
valPtr)
getWidth ::
(MonadIO m, HTMLHRElementClass self, GlibString string) =>
self -> m string
getWidth self
= liftIO
(((\(HTMLHRElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_htmlhr_element_get_width argPtr1)
(toHTMLHRElement self))
>>=
readUTFString)
foreign import ccall safe "webkit_dom_htmlhr_element_set_align"
webkit_dom_htmlhr_element_set_align :: ((Ptr HTMLHRElement) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "webkit_dom_htmlhr_element_get_align"
webkit_dom_htmlhr_element_get_align :: ((Ptr HTMLHRElement) -> (IO (Ptr CChar)))
foreign import ccall safe "webkit_dom_htmlhr_element_set_no_shade"
webkit_dom_htmlhr_element_set_no_shade :: ((Ptr HTMLHRElement) -> (CInt -> (IO ())))
foreign import ccall safe "webkit_dom_htmlhr_element_get_no_shade"
webkit_dom_htmlhr_element_get_no_shade :: ((Ptr HTMLHRElement) -> (IO CInt))
foreign import ccall safe "webkit_dom_htmlhr_element_set_size"
webkit_dom_htmlhr_element_set_size :: ((Ptr HTMLHRElement) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "webkit_dom_htmlhr_element_get_size"
webkit_dom_htmlhr_element_get_size :: ((Ptr HTMLHRElement) -> (IO (Ptr CChar)))
foreign import ccall safe "webkit_dom_htmlhr_element_set_width"
webkit_dom_htmlhr_element_set_width :: ((Ptr HTMLHRElement) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "webkit_dom_htmlhr_element_get_width"
webkit_dom_htmlhr_element_get_width :: ((Ptr HTMLHRElement) -> (IO (Ptr CChar)))