-- 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/DocumentType.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.DocumentType
       (documentTypeGetName, documentTypeGetEntities,
        documentTypeGetNotations, documentTypeGetPublicId,
        documentTypeGetSystemId, documentTypeGetInternalSubset,
        DocumentType, DocumentTypeClass, castToDocumentType,
        gTypeDocumentType, toDocumentType)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 11 "./Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
documentTypeGetName ::
                    (DocumentTypeClass self, GlibString string) => self -> IO string
documentTypeGetName self
  = ((\(DocumentType arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_document_type_get_name argPtr1)
{-# LINE 18 "./Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs" #-}
       (toDocumentType self))
      >>=
      readUTFString
 
documentTypeGetEntities ::
                        (DocumentTypeClass self) => self -> IO (Maybe NamedNodeMap)
documentTypeGetEntities self
  = maybeNull (makeNewGObject mkNamedNodeMap)
      ((\(DocumentType arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_document_type_get_entities argPtr1)
{-# LINE 27 "./Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs" #-}
         (toDocumentType self))
 
documentTypeGetNotations ::
                         (DocumentTypeClass self) => self -> IO (Maybe NamedNodeMap)
documentTypeGetNotations self
  = maybeNull (makeNewGObject mkNamedNodeMap)
      ((\(DocumentType arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_document_type_get_notations argPtr1)
{-# LINE 34 "./Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs" #-}
         (toDocumentType self))
 
documentTypeGetPublicId ::
                        (DocumentTypeClass self, GlibString string) => self -> IO string
documentTypeGetPublicId self
  = ((\(DocumentType arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_document_type_get_public_id argPtr1)
{-# LINE 40 "./Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs" #-}
       (toDocumentType self))
      >>=
      readUTFString
 
documentTypeGetSystemId ::
                        (DocumentTypeClass self, GlibString string) => self -> IO string
documentTypeGetSystemId self
  = ((\(DocumentType arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_document_type_get_system_id argPtr1)
{-# LINE 48 "./Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs" #-}
       (toDocumentType self))
      >>=
      readUTFString
 
documentTypeGetInternalSubset ::
                              (DocumentTypeClass self, GlibString string) => self -> IO string
documentTypeGetInternalSubset self
  = ((\(DocumentType arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_document_type_get_internal_subset argPtr1)
{-# LINE 56 "./Graphics/UI/Gtk/WebKit/DOM/DocumentType.chs" #-}
       (toDocumentType self))
      >>=
      readUTFString

foreign import ccall safe "webkit_dom_document_type_get_name"
  webkit_dom_document_type_get_name :: ((Ptr DocumentType) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_document_type_get_entities"
  webkit_dom_document_type_get_entities :: ((Ptr DocumentType) -> (IO (Ptr NamedNodeMap)))

foreign import ccall safe "webkit_dom_document_type_get_notations"
  webkit_dom_document_type_get_notations :: ((Ptr DocumentType) -> (IO (Ptr NamedNodeMap)))

foreign import ccall safe "webkit_dom_document_type_get_public_id"
  webkit_dom_document_type_get_public_id :: ((Ptr DocumentType) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_document_type_get_system_id"
  webkit_dom_document_type_get_system_id :: ((Ptr DocumentType) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_document_type_get_internal_subset"
  webkit_dom_document_type_get_internal_subset :: ((Ptr DocumentType) -> (IO (Ptr CChar)))