-- 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/Element.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.Element
       (elementGetAttribute, elementSetAttribute, elementRemoveAttribute,
        elementGetAttributeNode, elementSetAttributeNode,
        elementRemoveAttributeNode, elementGetElementsByTagName,
        elementHasAttributes,
        elementGetAttributeNS, elementSetAttributeNS,
        elementRemoveAttributeNS, elementGetElementsByTagNameNS,
        elementGetAttributeNodeNS, elementSetAttributeNodeNS,
        elementHasAttribute, elementHasAttributeNS, elementFocus,
        elementBlur, elementScrollIntoView, elementScrollIntoViewIfNeeded,
        elementScrollByLines, elementScrollByPages,
        elementGetElementsByClassName, elementQuerySelector,
        elementQuerySelectorAll, elementWebkitMatchesSelector,
        elementWebkitRequestPointerLock,
        elementGetTagName,
        elementGetAttributes,
        elementGetStyle,
        elementSetId, elementGetId,
        elementGetOffsetLeft,
        elementGetOffsetTop, elementGetOffsetWidth, elementGetOffsetHeight,
        elementGetOffsetParent, elementGetClientLeft, elementGetClientTop,
        elementGetClientWidth, elementGetClientHeight,
        elementSetScrollLeft, elementGetScrollLeft, elementSetScrollTop,
        elementGetScrollTop, elementGetScrollWidth, elementGetScrollHeight,
        elementSetClassName, elementGetClassName, elementGetClassList,
        elementGetFirstElementChild, elementGetLastElementChild,
        elementGetPreviousElementSibling, elementGetNextElementSibling,
        elementGetChildElementCount,
        elementGetWebkitRegionOverset,
        elementOnabort, elementOnblur, elementOnchange, elementOnclick,
        elementOncontextmenu, elementOndblclick, elementOndrag,
        elementOndragend, elementOndragenter, elementOndragleave,
        elementOndragover, elementOndragstart, elementOndrop,
        elementOnerror, elementOnfocus, elementOninput, elementOninvalid,
        elementOnkeydown, elementOnkeypress, elementOnkeyup, elementOnload,
        elementOnmousedown,
        elementOnmouseenter, elementOnmouseleave,
        elementOnmousemove, elementOnmouseout,
        elementOnmouseover, elementOnmouseup, elementOnmousewheel,
        elementOnscroll, elementOnselect, elementOnsubmit,
        elementOnbeforecut, elementOncut, elementOnbeforecopy,
        elementOncopy, elementOnbeforepaste, elementOnpaste,
        elementOnreset, elementOnsearch, elementOnselectstart,
        elementOntouchstart, elementOntouchmove, elementOntouchend,
        elementOntouchcancel, elementOnwebkitfullscreenchange,
        elementOnwebkitfullscreenerror,
        Element, ElementClass, castToElement, gTypeElement, toElement)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 66 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
elementGetAttribute ::
                    (ElementClass self, GlibString string) =>
                      self -> string -> IO string
elementGetAttribute self name
  = (withUTFString name $
       \ namePtr ->
         (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_attribute argPtr1 arg2) (toElement self)
           namePtr)
      >>=
      readUTFString
 
elementSetAttribute ::
                    (ElementClass self, GlibString string) =>
                      self -> string -> string -> IO ()
elementSetAttribute self name value
  = propagateGError $
      \ errorPtr_ ->
        withUTFString value $
          \ valuePtr ->
            withUTFString name $
              \ namePtr ->
                (\(Element arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_set_attribute argPtr1 arg2 arg3 arg4) (toElement self)
                  namePtr
              valuePtr
          errorPtr_
 
elementRemoveAttribute ::
                       (ElementClass self, GlibString string) => self -> string -> IO ()
elementRemoveAttribute self name
  = withUTFString name $
      \ namePtr ->
        (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_remove_attribute argPtr1 arg2) (toElement self)
          namePtr
 
elementGetAttributeNode ::
                        (ElementClass self, GlibString string) =>
                          self -> string -> IO (Maybe DOMAttr)
elementGetAttributeNode self name
  = maybeNull (makeNewGObject mkDOMAttr)
      (withUTFString name $
         \ namePtr ->
           (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_attribute_node argPtr1 arg2) (toElement self)
             namePtr)
 
elementSetAttributeNode ::
                        (ElementClass self, DOMAttrClass newAttr) =>
                          self -> Maybe newAttr -> IO (Maybe DOMAttr)
elementSetAttributeNode self newAttr
  = maybeNull (makeNewGObject mkDOMAttr)
      (propagateGError $
         \ errorPtr_ ->
           (\(Element arg1) (DOMAttr arg2) arg3 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->webkit_dom_element_set_attribute_node argPtr1 argPtr2 arg3) (toElement self)
             (maybe (DOMAttr nullForeignPtr) toDOMAttr newAttr)
             errorPtr_)
 
elementRemoveAttributeNode ::
                           (ElementClass self, DOMAttrClass oldAttr) =>
                             self -> Maybe oldAttr -> IO (Maybe DOMAttr)
elementRemoveAttributeNode self oldAttr
  = maybeNull (makeNewGObject mkDOMAttr)
      (propagateGError $
         \ errorPtr_ ->
           (\(Element arg1) (DOMAttr arg2) arg3 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->webkit_dom_element_remove_attribute_node argPtr1 argPtr2 arg3)
{-# LINE 132 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
             (toElement self)
             (maybe (DOMAttr nullForeignPtr) toDOMAttr oldAttr)
             errorPtr_)
 
elementGetElementsByTagName ::
                            (ElementClass self, GlibString string) =>
                              self -> string -> IO (Maybe NodeList)
elementGetElementsByTagName self name
  = maybeNull (makeNewGObject mkNodeList)
      (withUTFString name $
         \ namePtr ->
           (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_elements_by_tag_name argPtr1 arg2)
{-# LINE 144 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
             (toElement self)
             namePtr)
 
elementHasAttributes :: (ElementClass self) => self -> IO Bool
elementHasAttributes self
  = toBool <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_has_attributes argPtr1) (toElement self))

elementGetAttributeNS ::
                      (ElementClass self, GlibString string) =>
                        self -> string -> string -> IO string
elementGetAttributeNS self namespaceURI localName
  = (withUTFString localName $
       \ localNamePtr ->
         withUTFString namespaceURI $
           \ namespaceURIPtr ->
             (\(Element arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_attribute_ns argPtr1 arg2 arg3) (toElement self)
               namespaceURIPtr
           localNamePtr)
      >>=
      readUTFString
 
elementSetAttributeNS ::
                      (ElementClass self, GlibString string) =>
                        self -> string -> string -> string -> IO ()
elementSetAttributeNS self namespaceURI qualifiedName value
  = propagateGError $
      \ errorPtr_ ->
        withUTFString value $
          \ valuePtr ->
            withUTFString qualifiedName $
              \ qualifiedNamePtr ->
                withUTFString namespaceURI $
                  \ namespaceURIPtr ->
                    (\(Element arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_set_attribute_ns argPtr1 arg2 arg3 arg4 arg5) (toElement self)
                      namespaceURIPtr
                  qualifiedNamePtr
              valuePtr
          errorPtr_
 
elementRemoveAttributeNS ::
                         (ElementClass self, GlibString string) =>
                           self -> string -> string -> IO ()
elementRemoveAttributeNS self namespaceURI localName
  = withUTFString localName $
      \ localNamePtr ->
        withUTFString namespaceURI $
          \ namespaceURIPtr ->
            (\(Element arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_remove_attribute_ns argPtr1 arg2 arg3) (toElement self)
              namespaceURIPtr
          localNamePtr
 
elementGetElementsByTagNameNS ::
                              (ElementClass self, GlibString string) =>
                                self -> string -> string -> IO (Maybe NodeList)
elementGetElementsByTagNameNS self namespaceURI localName
  = maybeNull (makeNewGObject mkNodeList)
      (withUTFString localName $
         \ localNamePtr ->
           withUTFString namespaceURI $
             \ namespaceURIPtr ->
               (\(Element arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_elements_by_tag_name_ns argPtr1 arg2 arg3)
{-# LINE 208 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
                 (toElement self)
                 namespaceURIPtr
             localNamePtr)
 
elementGetAttributeNodeNS ::
                          (ElementClass self, GlibString string) =>
                            self -> string -> string -> IO (Maybe DOMAttr)
elementGetAttributeNodeNS self namespaceURI localName
  = maybeNull (makeNewGObject mkDOMAttr)
      (withUTFString localName $
         \ localNamePtr ->
           withUTFString namespaceURI $
             \ namespaceURIPtr ->
               (\(Element arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_attribute_node_ns argPtr1 arg2 arg3)
{-# LINE 222 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
                 (toElement self)
                 namespaceURIPtr
             localNamePtr)
 
elementSetAttributeNodeNS ::
                          (ElementClass self, DOMAttrClass newAttr) =>
                            self -> Maybe newAttr -> IO (Maybe DOMAttr)
elementSetAttributeNodeNS self newAttr
  = maybeNull (makeNewGObject mkDOMAttr)
      (propagateGError $
         \ errorPtr_ ->
           (\(Element arg1) (DOMAttr arg2) arg3 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->webkit_dom_element_set_attribute_node_ns argPtr1 argPtr2 arg3)
{-# LINE 234 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
             (toElement self)
             (maybe (DOMAttr nullForeignPtr) toDOMAttr newAttr)
             errorPtr_)
 
elementHasAttribute ::
                    (ElementClass self, GlibString string) => self -> string -> IO Bool
elementHasAttribute self name
  = toBool <$>
      (withUTFString name $
         \ namePtr ->
           (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_has_attribute argPtr1 arg2) (toElement self)
             namePtr)
 
elementHasAttributeNS ::
                      (ElementClass self, GlibString string) =>
                        self -> string -> string -> IO Bool
elementHasAttributeNS self namespaceURI localName
  = toBool <$>
      (withUTFString localName $
         \ localNamePtr ->
           withUTFString namespaceURI $
             \ namespaceURIPtr ->
               (\(Element arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_has_attribute_ns argPtr1 arg2 arg3) (toElement self)
                 namespaceURIPtr
             localNamePtr)
 
elementFocus :: (ElementClass self) => self -> IO ()
elementFocus self
  = (\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_focus argPtr1) (toElement self)
 
elementBlur :: (ElementClass self) => self -> IO ()
elementBlur self
  = (\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_blur argPtr1) (toElement self)
 
elementScrollIntoView ::
                      (ElementClass self) => self -> Bool -> IO ()
elementScrollIntoView self alignWithTop
  = (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_scroll_into_view argPtr1 arg2) (toElement self)
      (fromBool alignWithTop)
 
elementScrollIntoViewIfNeeded ::
                              (ElementClass self) => self -> Bool -> IO ()
elementScrollIntoViewIfNeeded self centerIfNeeded
  = (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_scroll_into_view_if_needed argPtr1 arg2)
{-# LINE 278 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
      (toElement self)
      (fromBool centerIfNeeded)
 
elementScrollByLines :: (ElementClass self) => self -> Int -> IO ()
elementScrollByLines self lines
  = (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_scroll_by_lines argPtr1 arg2) (toElement self)
      (fromIntegral lines)
 
elementScrollByPages :: (ElementClass self) => self -> Int -> IO ()
elementScrollByPages self pages
  = (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_scroll_by_pages argPtr1 arg2) (toElement self)
      (fromIntegral pages)
 
elementGetElementsByClassName ::
                              (ElementClass self, GlibString string) =>
                                self -> string -> IO (Maybe NodeList)
elementGetElementsByClassName self name
  = maybeNull (makeNewGObject mkNodeList)
      (withUTFString name $
         \ namePtr ->
           (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_elements_by_class_name argPtr1 arg2)
{-# LINE 299 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
             (toElement self)
             namePtr)
 
elementQuerySelector ::
                     (ElementClass self, GlibString string) =>
                       self -> string -> IO (Maybe Element)
elementQuerySelector self selectors
  = maybeNull (makeNewGObject mkElement)
      (propagateGError $
         \ errorPtr_ ->
           withUTFString selectors $
             \ selectorsPtr ->
               (\(Element arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_query_selector argPtr1 arg2 arg3) (toElement self)
                 selectorsPtr
             errorPtr_)
 
elementQuerySelectorAll ::
                        (ElementClass self, GlibString string) =>
                          self -> string -> IO (Maybe NodeList)
elementQuerySelectorAll self selectors
  = maybeNull (makeNewGObject mkNodeList)
      (propagateGError $
         \ errorPtr_ ->
           withUTFString selectors $
             \ selectorsPtr ->
               (\(Element arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_query_selector_all argPtr1 arg2 arg3) (toElement self)
                 selectorsPtr
             errorPtr_)
 
elementWebkitMatchesSelector ::
                             (ElementClass self, GlibString string) => self -> string -> IO Bool
elementWebkitMatchesSelector self selectors
  = toBool <$>
      (propagateGError $
         \ errorPtr_ ->
           withUTFString selectors $
             \ selectorsPtr ->
               (\(Element arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_webkit_matches_selector argPtr1 arg2 arg3)
{-# LINE 337 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
                 (toElement self)
                 selectorsPtr
             errorPtr_)
 
elementWebkitRequestPointerLock ::
                                (ElementClass self) => self -> IO ()
elementWebkitRequestPointerLock self
  = (\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_webkit_request_pointer_lock argPtr1)
{-# LINE 346 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
      (toElement self)

elementGetTagName ::
                  (ElementClass self, GlibString string) => self -> IO string
elementGetTagName self
  = ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_tag_name argPtr1) (toElement self)) >>=
      readUTFString
 
elementGetAttributes ::
                     (ElementClass self) => self -> IO (Maybe NamedNodeMap)
elementGetAttributes self
  = maybeNull (makeNewGObject mkNamedNodeMap)
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_attributes argPtr1) (toElement self))

elementGetStyle ::
                (ElementClass self) => self -> IO (Maybe CSSStyleDeclaration)
elementGetStyle self
  = maybeNull (makeNewGObject mkCSSStyleDeclaration)
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_style argPtr1) (toElement self))
 
elementSetId ::
             (ElementClass self, GlibString string) => self -> string -> IO ()
elementSetId self val
  = withUTFString val $
      \ valPtr ->
        (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_set_id argPtr1 arg2) (toElement self) valPtr
 
elementGetId ::
             (ElementClass self, GlibString string) => self -> IO string
elementGetId self
  = ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_id argPtr1) (toElement self)) >>=
      readUTFString

elementGetOffsetLeft :: (ElementClass self) => self -> IO Int
elementGetOffsetLeft self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_offset_left argPtr1) (toElement self))
 
elementGetOffsetTop :: (ElementClass self) => self -> IO Int
elementGetOffsetTop self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_offset_top argPtr1) (toElement self))
 
elementGetOffsetWidth :: (ElementClass self) => self -> IO Int
elementGetOffsetWidth self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_offset_width argPtr1) (toElement self))
 
elementGetOffsetHeight :: (ElementClass self) => self -> IO Int
elementGetOffsetHeight self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_offset_height argPtr1) (toElement self))
 
elementGetOffsetParent ::
                       (ElementClass self) => self -> IO (Maybe Element)
elementGetOffsetParent self
  = maybeNull (makeNewGObject mkElement)
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_offset_parent argPtr1) (toElement self))
 
elementGetClientLeft :: (ElementClass self) => self -> IO Int
elementGetClientLeft self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_client_left argPtr1) (toElement self))
 
elementGetClientTop :: (ElementClass self) => self -> IO Int
elementGetClientTop self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_client_top argPtr1) (toElement self))
 
elementGetClientWidth :: (ElementClass self) => self -> IO Int
elementGetClientWidth self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_client_width argPtr1) (toElement self))
 
elementGetClientHeight :: (ElementClass self) => self -> IO Int
elementGetClientHeight self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_client_height argPtr1) (toElement self))
 
elementSetScrollLeft :: (ElementClass self) => self -> Int -> IO ()
elementSetScrollLeft self val
  = (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_set_scroll_left argPtr1 arg2) (toElement self)
      (fromIntegral val)
 
elementGetScrollLeft :: (ElementClass self) => self -> IO Int
elementGetScrollLeft self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_scroll_left argPtr1) (toElement self))
 
elementSetScrollTop :: (ElementClass self) => self -> Int -> IO ()
elementSetScrollTop self val
  = (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_set_scroll_top argPtr1 arg2) (toElement self)
      (fromIntegral val)
 
elementGetScrollTop :: (ElementClass self) => self -> IO Int
elementGetScrollTop self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_scroll_top argPtr1) (toElement self))
 
elementGetScrollWidth :: (ElementClass self) => self -> IO Int
elementGetScrollWidth self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_scroll_width argPtr1) (toElement self))
 
elementGetScrollHeight :: (ElementClass self) => self -> IO Int
elementGetScrollHeight self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_scroll_height argPtr1) (toElement self))
 
elementSetClassName ::
                    (ElementClass self, GlibString string) => self -> string -> IO ()
elementSetClassName self val
  = withUTFString val $
      \ valPtr ->
        (\(Element arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_set_class_name argPtr1 arg2) (toElement self)
          valPtr
 
elementGetClassName ::
                    (ElementClass self, GlibString string) => self -> IO string
elementGetClassName self
  = ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_class_name argPtr1) (toElement self))
      >>=
      readUTFString
 
elementGetClassList ::
                    (ElementClass self) => self -> IO (Maybe DOMTokenList)
elementGetClassList self
  = maybeNull (makeNewGObject mkDOMTokenList)
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_class_list argPtr1) (toElement self))
 
elementGetFirstElementChild ::
                            (ElementClass self) => self -> IO (Maybe Element)
elementGetFirstElementChild self
  = maybeNull (makeNewGObject mkElement)
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_first_element_child argPtr1)
{-# LINE 488 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
         (toElement self))
 
elementGetLastElementChild ::
                           (ElementClass self) => self -> IO (Maybe Element)
elementGetLastElementChild self
  = maybeNull (makeNewGObject mkElement)
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_last_element_child argPtr1)
{-# LINE 495 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
         (toElement self))
 
elementGetPreviousElementSibling ::
                                 (ElementClass self) => self -> IO (Maybe Element)
elementGetPreviousElementSibling self
  = maybeNull (makeNewGObject mkElement)
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_previous_element_sibling argPtr1)
{-# LINE 502 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
         (toElement self))
 
elementGetNextElementSibling ::
                             (ElementClass self) => self -> IO (Maybe Element)
elementGetNextElementSibling self
  = maybeNull (makeNewGObject mkElement)
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_next_element_sibling argPtr1)
{-# LINE 509 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
         (toElement self))
 
elementGetChildElementCount ::
                            (ElementClass self) => self -> IO Word
elementGetChildElementCount self
  = fromIntegral <$>
      ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_child_element_count argPtr1)
{-# LINE 516 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
         (toElement self))
 
elementGetWebkitRegionOverset ::
                              (ElementClass self, GlibString string) => self -> IO string
elementGetWebkitRegionOverset self
  = ((\(Element arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_element_get_webkit_region_overset argPtr1)
{-# LINE 523 "./Graphics/UI/Gtk/WebKit/DOM/Element.chs" #-}
       (toElement self))
      >>=
      readUTFString
 
elementOnabort ::
               (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnabort = (connect "abort")
 
elementOnblur ::
              (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnblur = (connect "blur")
 
elementOnchange ::
                (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnchange = (connect "change")
 
elementOnclick ::
               (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOnclick = (connect "click")
 
elementOncontextmenu ::
                     (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOncontextmenu = (connect "contextmenu")
 
elementOndblclick ::
                  (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOndblclick = (connect "dblclick")
 
elementOndrag ::
              (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOndrag = (connect "drag")
 
elementOndragend ::
                 (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOndragend = (connect "dragend")
 
elementOndragenter ::
                   (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOndragenter = (connect "dragenter")
 
elementOndragleave ::
                   (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOndragleave = (connect "dragleave")
 
elementOndragover ::
                  (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOndragover = (connect "dragover")
 
elementOndragstart ::
                   (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOndragstart = (connect "dragstart")
 
elementOndrop ::
              (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOndrop = (connect "drop")
 
elementOnerror ::
               (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnerror = (connect "error")
 
elementOnfocus ::
               (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnfocus = (connect "focus")
 
elementOninput ::
               (ElementClass self) => Signal self (EventM UIEvent self ())
elementOninput = (connect "input")
 
elementOninvalid ::
                 (ElementClass self) => Signal self (EventM UIEvent self ())
elementOninvalid = (connect "invalid")
 
elementOnkeydown ::
                 (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnkeydown = (connect "keydown")
 
elementOnkeypress ::
                  (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnkeypress = (connect "keypress")
 
elementOnkeyup ::
               (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnkeyup = (connect "keyup")
 
elementOnload ::
              (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnload = (connect "load")
 
elementOnmousedown ::
                   (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOnmousedown = (connect "mousedown")
 
elementOnmouseenter ::
                    (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnmouseenter = (connect "mouseenter")
 
elementOnmouseleave ::
                    (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnmouseleave = (connect "mouseleave")

elementOnmousemove ::
                   (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOnmousemove = (connect "mousemove")
 
elementOnmouseout ::
                  (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOnmouseout = (connect "mouseout")
 
elementOnmouseover ::
                   (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOnmouseover = (connect "mouseover")
 
elementOnmouseup ::
                 (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOnmouseup = (connect "mouseup")
 
elementOnmousewheel ::
                    (ElementClass self) => Signal self (EventM MouseEvent self ())
elementOnmousewheel = (connect "mousewheel")
 
elementOnscroll ::
                (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnscroll = (connect "scroll")
 
elementOnselect ::
                (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnselect = (connect "select")
 
elementOnsubmit ::
                (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnsubmit = (connect "submit")
 
elementOnbeforecut ::
                   (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnbeforecut = (connect "beforecut")
 
elementOncut ::
             (ElementClass self) => Signal self (EventM UIEvent self ())
elementOncut = (connect "cut")
 
elementOnbeforecopy ::
                    (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnbeforecopy = (connect "beforecopy")
 
elementOncopy ::
              (ElementClass self) => Signal self (EventM UIEvent self ())
elementOncopy = (connect "copy")
 
elementOnbeforepaste ::
                     (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnbeforepaste = (connect "beforepaste")
 
elementOnpaste ::
               (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnpaste = (connect "paste")
 
elementOnreset ::
               (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnreset = (connect "reset")
 
elementOnsearch ::
                (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnsearch = (connect "search")
 
elementOnselectstart ::
                     (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnselectstart = (connect "selectstart")
 
elementOntouchstart ::
                    (ElementClass self) => Signal self (EventM UIEvent self ())
elementOntouchstart = (connect "touchstart")
 
elementOntouchmove ::
                   (ElementClass self) => Signal self (EventM UIEvent self ())
elementOntouchmove = (connect "touchmove")
 
elementOntouchend ::
                  (ElementClass self) => Signal self (EventM UIEvent self ())
elementOntouchend = (connect "touchend")
 
elementOntouchcancel ::
                     (ElementClass self) => Signal self (EventM UIEvent self ())
elementOntouchcancel = (connect "touchcancel")
 
elementOnwebkitfullscreenchange ::
                                (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnwebkitfullscreenchange
  = (connect "webkitfullscreenchange")
 
elementOnwebkitfullscreenerror ::
                               (ElementClass self) => Signal self (EventM UIEvent self ())
elementOnwebkitfullscreenerror = (connect "webkitfullscreenerror")

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_attribute"
  webkit_dom_element_get_attribute :: ((Ptr Element) -> ((Ptr CChar) -> (IO (Ptr CChar))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_set_attribute"
  webkit_dom_element_set_attribute :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr (Ptr ())) -> (IO ())))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_remove_attribute"
  webkit_dom_element_remove_attribute :: ((Ptr Element) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_attribute_node"
  webkit_dom_element_get_attribute_node :: ((Ptr Element) -> ((Ptr CChar) -> (IO (Ptr DOMAttr))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_set_attribute_node"
  webkit_dom_element_set_attribute_node :: ((Ptr Element) -> ((Ptr DOMAttr) -> ((Ptr (Ptr ())) -> (IO (Ptr DOMAttr)))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_remove_attribute_node"
  webkit_dom_element_remove_attribute_node :: ((Ptr Element) -> ((Ptr DOMAttr) -> ((Ptr (Ptr ())) -> (IO (Ptr DOMAttr)))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_elements_by_tag_name"
  webkit_dom_element_get_elements_by_tag_name :: ((Ptr Element) -> ((Ptr CChar) -> (IO (Ptr NodeList))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_has_attributes"
  webkit_dom_element_has_attributes :: ((Ptr Element) -> (IO CInt))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_attribute_ns"
  webkit_dom_element_get_attribute_ns :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO (Ptr CChar)))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_set_attribute_ns"
  webkit_dom_element_set_attribute_ns :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr CChar) -> ((Ptr (Ptr ())) -> (IO ()))))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_remove_attribute_ns"
  webkit_dom_element_remove_attribute_ns :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_elements_by_tag_name_ns"
  webkit_dom_element_get_elements_by_tag_name_ns :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO (Ptr NodeList)))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_attribute_node_ns"
  webkit_dom_element_get_attribute_node_ns :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO (Ptr DOMAttr)))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_set_attribute_node_ns"
  webkit_dom_element_set_attribute_node_ns :: ((Ptr Element) -> ((Ptr DOMAttr) -> ((Ptr (Ptr ())) -> (IO (Ptr DOMAttr)))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_has_attribute"
  webkit_dom_element_has_attribute :: ((Ptr Element) -> ((Ptr CChar) -> (IO CInt)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_has_attribute_ns"
  webkit_dom_element_has_attribute_ns :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO CInt))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_focus"
  webkit_dom_element_focus :: ((Ptr Element) -> (IO ()))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_blur"
  webkit_dom_element_blur :: ((Ptr Element) -> (IO ()))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_scroll_into_view"
  webkit_dom_element_scroll_into_view :: ((Ptr Element) -> (CInt -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_scroll_into_view_if_needed"
  webkit_dom_element_scroll_into_view_if_needed :: ((Ptr Element) -> (CInt -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_scroll_by_lines"
  webkit_dom_element_scroll_by_lines :: ((Ptr Element) -> (CLong -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_scroll_by_pages"
  webkit_dom_element_scroll_by_pages :: ((Ptr Element) -> (CLong -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_elements_by_class_name"
  webkit_dom_element_get_elements_by_class_name :: ((Ptr Element) -> ((Ptr CChar) -> (IO (Ptr NodeList))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_query_selector"
  webkit_dom_element_query_selector :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr (Ptr ())) -> (IO (Ptr Element)))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_query_selector_all"
  webkit_dom_element_query_selector_all :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr (Ptr ())) -> (IO (Ptr NodeList)))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_webkit_matches_selector"
  webkit_dom_element_webkit_matches_selector :: ((Ptr Element) -> ((Ptr CChar) -> ((Ptr (Ptr ())) -> (IO CInt))))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_webkit_request_pointer_lock"
  webkit_dom_element_webkit_request_pointer_lock :: ((Ptr Element) -> (IO ()))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_tag_name"
  webkit_dom_element_get_tag_name :: ((Ptr Element) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_attributes"
  webkit_dom_element_get_attributes :: ((Ptr Element) -> (IO (Ptr NamedNodeMap)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_style"
  webkit_dom_element_get_style :: ((Ptr Element) -> (IO (Ptr CSSStyleDeclaration)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_set_id"
  webkit_dom_element_set_id :: ((Ptr Element) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_id"
  webkit_dom_element_get_id :: ((Ptr Element) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_offset_left"
  webkit_dom_element_get_offset_left :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_offset_top"
  webkit_dom_element_get_offset_top :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_offset_width"
  webkit_dom_element_get_offset_width :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_offset_height"
  webkit_dom_element_get_offset_height :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_offset_parent"
  webkit_dom_element_get_offset_parent :: ((Ptr Element) -> (IO (Ptr Element)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_client_left"
  webkit_dom_element_get_client_left :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_client_top"
  webkit_dom_element_get_client_top :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_client_width"
  webkit_dom_element_get_client_width :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_client_height"
  webkit_dom_element_get_client_height :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_set_scroll_left"
  webkit_dom_element_set_scroll_left :: ((Ptr Element) -> (CLong -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_scroll_left"
  webkit_dom_element_get_scroll_left :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_set_scroll_top"
  webkit_dom_element_set_scroll_top :: ((Ptr Element) -> (CLong -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_scroll_top"
  webkit_dom_element_get_scroll_top :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_scroll_width"
  webkit_dom_element_get_scroll_width :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_scroll_height"
  webkit_dom_element_get_scroll_height :: ((Ptr Element) -> (IO CLong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_set_class_name"
  webkit_dom_element_set_class_name :: ((Ptr Element) -> ((Ptr CChar) -> (IO ())))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_class_name"
  webkit_dom_element_get_class_name :: ((Ptr Element) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_class_list"
  webkit_dom_element_get_class_list :: ((Ptr Element) -> (IO (Ptr DOMTokenList)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_first_element_child"
  webkit_dom_element_get_first_element_child :: ((Ptr Element) -> (IO (Ptr Element)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_last_element_child"
  webkit_dom_element_get_last_element_child :: ((Ptr Element) -> (IO (Ptr Element)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_previous_element_sibling"
  webkit_dom_element_get_previous_element_sibling :: ((Ptr Element) -> (IO (Ptr Element)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_next_element_sibling"
  webkit_dom_element_get_next_element_sibling :: ((Ptr Element) -> (IO (Ptr Element)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_child_element_count"
  webkit_dom_element_get_child_element_count :: ((Ptr Element) -> (IO CULong))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Element.h webkit_dom_element_get_webkit_region_overset"
  webkit_dom_element_get_webkit_region_overset :: ((Ptr Element) -> (IO (Ptr CChar)))