-- 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/NodeIterator.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.NodeIterator
       (nodeIteratorDetach, nodeIteratorGetRoot,
        nodeIteratorGetWhatToShow, nodeIteratorGetFilter,
        nodeIteratorGetExpandEntityReferences,
        nodeIteratorGetReferenceNode,
        nodeIteratorGetPointerBeforeReferenceNode, NodeIterator,
        NodeIteratorClass, castToNodeIterator, gTypeNodeIterator,
        toNodeIterator)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 13 "./Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
nodeIteratorDetach :: (NodeIteratorClass self) => self -> IO ()
nodeIteratorDetach self
  = (\(NodeIterator arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_node_iterator_detach argPtr1) (toNodeIterator self)
 
nodeIteratorGetRoot ::
                    (NodeIteratorClass self) => self -> IO (Maybe Node)
nodeIteratorGetRoot self
  = maybeNull (makeNewGObject mkNode)
      ((\(NodeIterator arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_node_iterator_get_root argPtr1)
{-# LINE 25 "./Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs" #-}
         (toNodeIterator self))
 
nodeIteratorGetWhatToShow ::
                          (NodeIteratorClass self) => self -> IO Word
nodeIteratorGetWhatToShow self
  = fromIntegral <$>
      ((\(NodeIterator arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_node_iterator_get_what_to_show argPtr1)
{-# LINE 32 "./Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs" #-}
         (toNodeIterator self))
 
nodeIteratorGetFilter ::
                      (NodeIteratorClass self) => self -> IO (Maybe NodeFilter)
nodeIteratorGetFilter self
  = maybeNull (makeNewGObject mkNodeFilter)
      ((\(NodeIterator arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_node_iterator_get_filter argPtr1)
{-# LINE 39 "./Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs" #-}
         (toNodeIterator self))
 
nodeIteratorGetExpandEntityReferences ::
                                      (NodeIteratorClass self) => self -> IO Bool
nodeIteratorGetExpandEntityReferences self
  = toBool <$>
      ((\(NodeIterator arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_node_iterator_get_expand_entity_references argPtr1)
{-# LINE 46 "./Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs" #-}
         (toNodeIterator self))
 
nodeIteratorGetReferenceNode ::
                             (NodeIteratorClass self) => self -> IO (Maybe Node)
nodeIteratorGetReferenceNode self
  = maybeNull (makeNewGObject mkNode)
      ((\(NodeIterator arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_node_iterator_get_reference_node argPtr1)
{-# LINE 53 "./Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs" #-}
         (toNodeIterator self))
 
nodeIteratorGetPointerBeforeReferenceNode ::
                                          (NodeIteratorClass self) => self -> IO Bool
nodeIteratorGetPointerBeforeReferenceNode self
  = toBool <$>
      ((\(NodeIterator arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_node_iterator_get_pointer_before_reference_node argPtr1)
{-# LINE 61 "./Graphics/UI/Gtk/WebKit/DOM/NodeIterator.chs" #-}
         (toNodeIterator self))

foreign import ccall safe "webkit_dom_node_iterator_detach"
  webkit_dom_node_iterator_detach :: ((Ptr NodeIterator) -> (IO ()))

foreign import ccall safe "webkit_dom_node_iterator_get_root"
  webkit_dom_node_iterator_get_root :: ((Ptr NodeIterator) -> (IO (Ptr Node)))

foreign import ccall safe "webkit_dom_node_iterator_get_what_to_show"
  webkit_dom_node_iterator_get_what_to_show :: ((Ptr NodeIterator) -> (IO CULong))

foreign import ccall safe "webkit_dom_node_iterator_get_filter"
  webkit_dom_node_iterator_get_filter :: ((Ptr NodeIterator) -> (IO (Ptr NodeFilter)))

foreign import ccall safe "webkit_dom_node_iterator_get_expand_entity_references"
  webkit_dom_node_iterator_get_expand_entity_references :: ((Ptr NodeIterator) -> (IO CInt))

foreign import ccall safe "webkit_dom_node_iterator_get_reference_node"
  webkit_dom_node_iterator_get_reference_node :: ((Ptr NodeIterator) -> (IO (Ptr Node)))

foreign import ccall safe "webkit_dom_node_iterator_get_pointer_before_reference_node"
  webkit_dom_node_iterator_get_pointer_before_reference_node :: ((Ptr NodeIterator) -> (IO CInt))