-- 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/HTMLLabelElement.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.HTMLLabelElement
       (htmlLabelElementGetForm, htmlLabelElementSetHtmlFor,
        htmlLabelElementGetHtmlFor, htmlLabelElementGetControl,
        HTMLLabelElement, HTMLLabelElementClass, castToHTMLLabelElement,
        gTypeHTMLLabelElement, toHTMLLabelElement)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 10 "./Graphics/UI/Gtk/WebKit/DOM/HTMLLabelElement.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
htmlLabelElementGetForm ::
                        (HTMLLabelElementClass self) => self -> IO (Maybe HTMLFormElement)
htmlLabelElementGetForm self
  = maybeNull (makeNewGObject mkHTMLFormElement)
      ((\(HTMLLabelElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_label_element_get_form argPtr1)
{-# LINE 18 "./Graphics/UI/Gtk/WebKit/DOM/HTMLLabelElement.chs" #-}
         (toHTMLLabelElement self))
 
htmlLabelElementSetHtmlFor ::
                           (HTMLLabelElementClass self, GlibString string) =>
                             self -> string -> IO ()
htmlLabelElementSetHtmlFor self val
  = withUTFString val $
      \ valPtr ->
        (\(HTMLLabelElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_label_element_set_html_for argPtr1 arg2)
{-# LINE 27 "./Graphics/UI/Gtk/WebKit/DOM/HTMLLabelElement.chs" #-}
          (toHTMLLabelElement self)
          valPtr
 
htmlLabelElementGetHtmlFor ::
                           (HTMLLabelElementClass self, GlibString string) =>
                             self -> IO string
htmlLabelElementGetHtmlFor self
  = ((\(HTMLLabelElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_label_element_get_html_for argPtr1)
{-# LINE 35 "./Graphics/UI/Gtk/WebKit/DOM/HTMLLabelElement.chs" #-}
       (toHTMLLabelElement self))
      >>=
      readUTFString
 
htmlLabelElementGetControl ::
                           (HTMLLabelElementClass self) => self -> IO (Maybe HTMLElement)
htmlLabelElementGetControl self
  = maybeNull (makeNewGObject mkHTMLElement)
      ((\(HTMLLabelElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_label_element_get_control argPtr1)
{-# LINE 44 "./Graphics/UI/Gtk/WebKit/DOM/HTMLLabelElement.chs" #-}
         (toHTMLLabelElement self))

foreign import ccall safe "webkit_dom_html_label_element_get_form"
  webkit_dom_html_label_element_get_form :: ((Ptr HTMLLabelElement) -> (IO (Ptr HTMLFormElement)))

foreign import ccall safe "webkit_dom_html_label_element_set_html_for"
  webkit_dom_html_label_element_set_html_for :: ((Ptr HTMLLabelElement) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "webkit_dom_html_label_element_get_html_for"
  webkit_dom_html_label_element_get_html_for :: ((Ptr HTMLLabelElement) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_html_label_element_get_control"
  webkit_dom_html_label_element_get_control :: ((Ptr HTMLLabelElement) -> (IO (Ptr HTMLElement)))