-- 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/HTMLOptGroupElement.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.HTMLOptGroupElement(
setDisabled,
getDisabled,
setLabel,
getLabel,
HTMLOptGroupElement,
castToHTMLOptGroupElement,
gTypeHTMLOptGroupElement,
HTMLOptGroupElementClass,
toHTMLOptGroupElement,
) 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 23 "./Graphics/UI/Gtk/WebKit/DOM/HTMLOptGroupElement.chs" #-}
import Graphics.UI.Gtk.WebKit.DOM.Enums

 
setDisabled ::
            (MonadIO m, HTMLOptGroupElementClass self) => self -> Bool -> m ()
setDisabled self val
  = liftIO
      ((\(HTMLOptGroupElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_opt_group_element_set_disabled argPtr1 arg2)
{-# LINE 31 "./Graphics/UI/Gtk/WebKit/DOM/HTMLOptGroupElement.chs" #-}
         (toHTMLOptGroupElement self)
         (fromBool val))
 
getDisabled ::
            (MonadIO m, HTMLOptGroupElementClass self) => self -> m Bool
getDisabled self
  = liftIO
      (toBool <$>
         ((\(HTMLOptGroupElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_opt_group_element_get_disabled argPtr1)
{-# LINE 40 "./Graphics/UI/Gtk/WebKit/DOM/HTMLOptGroupElement.chs" #-}
            (toHTMLOptGroupElement self)))
 
setLabel ::
         (MonadIO m, HTMLOptGroupElementClass self, GlibString string) =>
           self -> string -> m ()
setLabel self val
  = liftIO
      (withUTFString val $
         \ valPtr ->
           (\(HTMLOptGroupElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_opt_group_element_set_label argPtr1 arg2)
{-# LINE 50 "./Graphics/UI/Gtk/WebKit/DOM/HTMLOptGroupElement.chs" #-}
             (toHTMLOptGroupElement self)
             valPtr)
 
getLabel ::
         (MonadIO m, HTMLOptGroupElementClass self, GlibString string) =>
           self -> m string
getLabel self
  = liftIO
      (((\(HTMLOptGroupElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_opt_group_element_get_label argPtr1)
{-# LINE 59 "./Graphics/UI/Gtk/WebKit/DOM/HTMLOptGroupElement.chs" #-}
          (toHTMLOptGroupElement self))
         >>=
         readUTFString)

foreign import ccall safe "webkit_dom_html_opt_group_element_set_disabled"
  webkit_dom_html_opt_group_element_set_disabled :: ((Ptr HTMLOptGroupElement) -> (CInt -> (IO ())))

foreign import ccall safe "webkit_dom_html_opt_group_element_get_disabled"
  webkit_dom_html_opt_group_element_get_disabled :: ((Ptr HTMLOptGroupElement) -> (IO CInt))

foreign import ccall safe "webkit_dom_html_opt_group_element_set_label"
  webkit_dom_html_opt_group_element_set_label :: ((Ptr HTMLOptGroupElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "webkit_dom_html_opt_group_element_get_label"
  webkit_dom_html_opt_group_element_get_label :: ((Ptr HTMLOptGroupElement) -> (IO (Ptr CChar)))