module Graphics.UI.Gtk.WebKit.DOM.Location
(locationGetOrigin,
locationGetAncestorOrigins,
Location, LocationClass, castToLocation, gTypeLocation, toLocation) 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
locationGetOrigin ::
(LocationClass self, GlibString string) => self -> IO string
locationGetOrigin self
= ((\(Location arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_location_get_origin argPtr1) (toLocation self)) >>=
readUTFString
locationGetAncestorOrigins ::
(LocationClass self) => self -> IO (Maybe DOMStringList)
locationGetAncestorOrigins self
= maybeNull (makeNewGObject mkDOMStringList)
((\(Location arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_location_get_ancestor_origins argPtr1)
(toLocation self))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Location.h webkit_dom_location_get_origin"
webkit_dom_location_get_origin :: ((Ptr Location) -> (IO (Ptr CChar)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Location.h webkit_dom_location_get_ancestor_origins"
webkit_dom_location_get_ancestor_origins :: ((Ptr Location) -> (IO (Ptr DOMStringList)))