module Graphics.UI.Gtk.WebKit.DOM.WebKitNamedFlow
(
webKitNamedFlowGetRegionsByContent, webKitNamedFlowGetRegions,
webKitNamedFlowGetContent, webKitNamedFlowDispatchEvent,
webKitNamedFlowGetName, webKitNamedFlowGetOverset,
webKitNamedFlowGetFirstEmptyRegionIndex, WebKitNamedFlow,
WebKitNamedFlowClass, castToWebKitNamedFlow, gTypeWebKitNamedFlow,
toWebKitNamedFlow
)
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
webKitNamedFlowGetRegionsByContent ::
(WebKitNamedFlowClass self, NodeClass contentNode) =>
self -> Maybe contentNode -> IO (Maybe NodeList)
webKitNamedFlowGetRegionsByContent self contentNode
= maybeNull (makeNewGObject mkNodeList)
((\(WebKitNamedFlow arg1) (Node arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->webkit_dom_webkit_named_flow_get_regions_by_content argPtr1 argPtr2)
(toWebKitNamedFlow self)
(maybe (Node nullForeignPtr) toNode contentNode))
webKitNamedFlowGetRegions ::
(WebKitNamedFlowClass self) => self -> IO (Maybe NodeList)
webKitNamedFlowGetRegions self
= maybeNull (makeNewGObject mkNodeList)
((\(WebKitNamedFlow arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_webkit_named_flow_get_regions argPtr1)
(toWebKitNamedFlow self))
webKitNamedFlowGetContent ::
(WebKitNamedFlowClass self) => self -> IO (Maybe NodeList)
webKitNamedFlowGetContent self
= maybeNull (makeNewGObject mkNodeList)
((\(WebKitNamedFlow arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_webkit_named_flow_get_content argPtr1)
(toWebKitNamedFlow self))
webKitNamedFlowDispatchEvent ::
(WebKitNamedFlowClass self, EventClass event) =>
self -> Maybe event -> IO Bool
webKitNamedFlowDispatchEvent self event
= toBool <$>
(propagateGError $
\ errorPtr_ ->
(\(WebKitNamedFlow arg1) (Event arg2) arg3 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->webkit_dom_webkit_named_flow_dispatch_event argPtr1 argPtr2 arg3)
(toWebKitNamedFlow self)
(maybe (Event nullForeignPtr) toEvent event)
errorPtr_)
webKitNamedFlowGetName ::
(WebKitNamedFlowClass self, GlibString string) => self -> IO string
webKitNamedFlowGetName self
= ((\(WebKitNamedFlow arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_webkit_named_flow_get_name argPtr1)
(toWebKitNamedFlow self))
>>=
readUTFString
webKitNamedFlowGetOverset ::
(WebKitNamedFlowClass self) => self -> IO Bool
webKitNamedFlowGetOverset self
= toBool <$>
((\(WebKitNamedFlow arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_webkit_named_flow_get_overset argPtr1)
(toWebKitNamedFlow self))
webKitNamedFlowGetFirstEmptyRegionIndex ::
(WebKitNamedFlowClass self) => self -> IO Int
webKitNamedFlowGetFirstEmptyRegionIndex self
= fromIntegral <$>
((\(WebKitNamedFlow arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_webkit_named_flow_get_first_empty_region_index argPtr1)
(toWebKitNamedFlow self))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.h webkit_dom_webkit_named_flow_get_regions_by_content"
webkit_dom_webkit_named_flow_get_regions_by_content :: ((Ptr WebKitNamedFlow) -> ((Ptr Node) -> (IO (Ptr NodeList))))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.h webkit_dom_webkit_named_flow_get_regions"
webkit_dom_webkit_named_flow_get_regions :: ((Ptr WebKitNamedFlow) -> (IO (Ptr NodeList)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.h webkit_dom_webkit_named_flow_get_content"
webkit_dom_webkit_named_flow_get_content :: ((Ptr WebKitNamedFlow) -> (IO (Ptr NodeList)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.h webkit_dom_webkit_named_flow_dispatch_event"
webkit_dom_webkit_named_flow_dispatch_event :: ((Ptr WebKitNamedFlow) -> ((Ptr Event) -> ((Ptr (Ptr ())) -> (IO CInt))))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.h webkit_dom_webkit_named_flow_get_name"
webkit_dom_webkit_named_flow_get_name :: ((Ptr WebKitNamedFlow) -> (IO (Ptr CChar)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.h webkit_dom_webkit_named_flow_get_overset"
webkit_dom_webkit_named_flow_get_overset :: ((Ptr WebKitNamedFlow) -> (IO CInt))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/WebKitNamedFlow.h webkit_dom_webkit_named_flow_get_first_empty_region_index"
webkit_dom_webkit_named_flow_get_first_empty_region_index :: ((Ptr WebKitNamedFlow) -> (IO CLong))