-- GENERATED by C->Haskell Compiler, version 0.13.13 (gtk2hs branch) "Bin IO", 27 May 2012 (Haskell)
-- Edit the ORIGNAL .chs file instead!


{-# LINE 1 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
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
{-# LINE 27 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
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)
{-# LINE 38 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
             (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)
{-# LINE 47 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
          (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)
{-# LINE 56 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
         (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)
{-# LINE 65 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
            (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)
{-# LINE 75 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
             (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)
{-# LINE 84 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
          (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)
{-# LINE 96 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
             (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)
{-# LINE 105 "./Graphics/UI/Gtk/WebKit/DOM/HTMLHRElement.chs" #-}
          (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)))