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
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)
(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)
(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)
(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)
(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)))