-- 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/ProcessingInstruction.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.ProcessingInstruction
       (processingInstructionGetTarget, processingInstructionSetData,
        processingInstructionGetData, processingInstructionGetSheet,
        ProcessingInstruction, ProcessingInstructionClass,
        castToProcessingInstruction, gTypeProcessingInstruction,
        toProcessingInstruction)
       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/ProcessingInstruction.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
processingInstructionGetTarget ::
                               (ProcessingInstructionClass self, GlibString string) =>
                                 self -> IO string
processingInstructionGetTarget self
  = ((\(ProcessingInstruction arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_processing_instruction_get_target argPtr1)
{-# LINE 19 "./Graphics/UI/Gtk/WebKit/DOM/ProcessingInstruction.chs" #-}
       (toProcessingInstruction self))
      >>=
      readUTFString
 
processingInstructionSetData ::
                             (ProcessingInstructionClass self, GlibString string) => self -> string -> IO ()
processingInstructionSetData self val
  = propagateGError $
      \ errorPtr_ ->
        withUTFString val $
          \ valPtr ->
            (\(ProcessingInstruction arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_processing_instruction_set_data argPtr1 arg2 arg3)
{-# LINE 31 "./Graphics/UI/Gtk/WebKit/DOM/ProcessingInstruction.chs" #-}
              (toProcessingInstruction self)
              valPtr
          errorPtr_
 
processingInstructionGetData ::
                             (ProcessingInstructionClass self, GlibString string) => self -> IO string
processingInstructionGetData self
  = ((\(ProcessingInstruction arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_processing_instruction_get_data argPtr1)
{-# LINE 39 "./Graphics/UI/Gtk/WebKit/DOM/ProcessingInstruction.chs" #-}
       (toProcessingInstruction self))
      >>=
      readUTFString
 
processingInstructionGetSheet ::
                              (ProcessingInstructionClass self) => self -> IO (Maybe StyleSheet)
processingInstructionGetSheet self
  = maybeNull (makeNewGObject mkStyleSheet)
      ((\(ProcessingInstruction arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_processing_instruction_get_sheet argPtr1)
{-# LINE 48 "./Graphics/UI/Gtk/WebKit/DOM/ProcessingInstruction.chs" #-}
         (toProcessingInstruction self))

foreign import ccall safe "webkit_dom_processing_instruction_get_target"
  webkit_dom_processing_instruction_get_target :: ((Ptr ProcessingInstruction) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_processing_instruction_set_data"
  webkit_dom_processing_instruction_set_data :: ((Ptr ProcessingInstruction) -> ((Ptr CChar) -> ((Ptr (Ptr ())) -> (IO ()))))

foreign import ccall safe "webkit_dom_processing_instruction_get_data"
  webkit_dom_processing_instruction_get_data :: ((Ptr ProcessingInstruction) -> (IO (Ptr CChar)))

foreign import ccall safe "webkit_dom_processing_instruction_get_sheet"
  webkit_dom_processing_instruction_get_sheet :: ((Ptr ProcessingInstruction) -> (IO (Ptr StyleSheet)))