{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.WebKitPoint (js_newWebKitPoint, newWebKitPoint, js_newWebKitPoint', newWebKitPoint', js_setX, setX, js_getX, getX, js_setY, setY, js_getY, getY, WebKitPoint, castToWebKitPoint, gTypeWebKitPoint) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, fmap, Show, Read, Eq, Ord) import Data.Typeable (Typeable) import GHCJS.Types (JSRef(..), JSString, castRef) import GHCJS.Foreign (jsNull) import GHCJS.Foreign.Callback (syncCallback, asyncCallback, syncCallback1, asyncCallback1, syncCallback2, asyncCallback2, OnBlocked(..)) import GHCJS.Marshal (ToJSRef(..), FromJSRef(..)) import GHCJS.Marshal.Pure (PToJSRef(..), PFromJSRef(..)) import Control.Monad.IO.Class (MonadIO(..)) import Data.Int (Int64) import Data.Word (Word, Word64) import GHCJS.DOM.Types import Control.Applicative ((<$>)) import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName) import GHCJS.DOM.Enums foreign import javascript unsafe "new window[\"WebKitPoint\"]()" js_newWebKitPoint :: IO (JSRef WebKitPoint) -- | newWebKitPoint :: (MonadIO m) => m WebKitPoint newWebKitPoint = liftIO (js_newWebKitPoint >>= fromJSRefUnchecked) foreign import javascript unsafe "new window[\"WebKitPoint\"]($1,\n$2)" js_newWebKitPoint' :: Float -> Float -> IO (JSRef WebKitPoint) -- | newWebKitPoint' :: (MonadIO m) => Float -> Float -> m WebKitPoint newWebKitPoint' x y = liftIO (js_newWebKitPoint' x y >>= fromJSRefUnchecked) foreign import javascript unsafe "$1[\"x\"] = $2;" js_setX :: JSRef WebKitPoint -> Float -> IO () -- | setX :: (MonadIO m) => WebKitPoint -> Float -> m () setX self val = liftIO (js_setX (unWebKitPoint self) val) foreign import javascript unsafe "$1[\"x\"]" js_getX :: JSRef WebKitPoint -> IO Float -- | getX :: (MonadIO m) => WebKitPoint -> m Float getX self = liftIO (js_getX (unWebKitPoint self)) foreign import javascript unsafe "$1[\"y\"] = $2;" js_setY :: JSRef WebKitPoint -> Float -> IO () -- | setY :: (MonadIO m) => WebKitPoint -> Float -> m () setY self val = liftIO (js_setY (unWebKitPoint self) val) foreign import javascript unsafe "$1[\"y\"]" js_getY :: JSRef WebKitPoint -> IO Float -- | getY :: (MonadIO m) => WebKitPoint -> m Float getY self = liftIO (js_getY (unWebKitPoint self))