Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Window = Window {}
- gTypeWindow :: JSM GType
- decodeURI :: (MonadDOM m, ToJSString uri, FromJSString result) => Window -> uri -> m result
- decodeURI_ :: (MonadDOM m, ToJSString uri) => Window -> uri -> m ()
- decodeURIComponent :: (MonadDOM m, ToJSString uri, FromJSString result) => Window -> uri -> m result
- decodeURIComponent_ :: (MonadDOM m, ToJSString uri) => Window -> uri -> m ()
- encodeURI :: (MonadDOM m, ToJSString uri, FromJSString result) => Window -> uri -> m result
- encodeURI_ :: (MonadDOM m, ToJSString uri) => Window -> uri -> m ()
- encodeURIComponent :: (MonadDOM m, ToJSString uri, FromJSString result) => Window -> uri -> m result
- encodeURIComponent_ :: (MonadDOM m, ToJSString uri) => Window -> uri -> m ()
- fetch :: (MonadDOM m, ToJSVal input) => Window -> input -> Maybe RequestInit -> m Response
- fetch_ :: (MonadDOM m, ToJSVal input) => Window -> input -> Maybe RequestInit -> m ()
- openDatabase_ :: (MonadDOM m, ToJSString name, ToJSString version, ToJSString displayName) => Window -> name -> version -> displayName -> Word -> Maybe DatabaseCallback -> m ()
- openDatabaseUnsafe :: (MonadDOM m, ToJSString name, ToJSString version, ToJSString displayName, HasCallStack) => Window -> name -> version -> displayName -> Word -> Maybe DatabaseCallback -> m Database
- openDatabaseUnchecked :: (MonadDOM m, ToJSString name, ToJSString version, ToJSString displayName) => Window -> name -> version -> displayName -> Word -> Maybe DatabaseCallback -> m Database
- close :: MonadDOM m => Window -> m ()
- stop :: MonadDOM m => Window -> m ()
- focus :: MonadDOM m => Window -> m ()
- blur :: MonadDOM m => Window -> m ()
- open :: (MonadDOM m, ToJSString url, ToJSString target, ToJSString features) => Window -> Maybe url -> Maybe target -> Maybe features -> m (Maybe Window)
- open_ :: (MonadDOM m, ToJSString url, ToJSString target, ToJSString features) => Window -> Maybe url -> Maybe target -> Maybe features -> m ()
- openUnsafe :: (MonadDOM m, ToJSString url, ToJSString target, ToJSString features, HasCallStack) => Window -> Maybe url -> Maybe target -> Maybe features -> m Window
- openUnchecked :: (MonadDOM m, ToJSString url, ToJSString target, ToJSString features) => Window -> Maybe url -> Maybe target -> Maybe features -> m Window
- alertNoMessage :: MonadDOM m => Window -> m ()
- alert :: (MonadDOM m, ToJSString message) => Window -> message -> m ()
- confirm :: (MonadDOM m, ToJSString message) => Window -> Maybe message -> m Bool
- confirm_ :: (MonadDOM m, ToJSString message) => Window -> Maybe message -> m ()
- prompt :: (MonadDOM m, ToJSString message, ToJSString defaultValue, FromJSString result) => Window -> Maybe message -> Maybe defaultValue -> m (Maybe result)
- prompt_ :: (MonadDOM m, ToJSString message, ToJSString defaultValue) => Window -> Maybe message -> Maybe defaultValue -> m ()
- promptUnsafe :: (MonadDOM m, ToJSString message, ToJSString defaultValue, HasCallStack, FromJSString result) => Window -> Maybe message -> Maybe defaultValue -> m result
- promptUnchecked :: (MonadDOM m, ToJSString message, ToJSString defaultValue, FromJSString result) => Window -> Maybe message -> Maybe defaultValue -> m result
- print :: MonadDOM m => Window -> m ()
- requestAnimationFrame :: MonadDOM m => Window -> RequestAnimationFrameCallback -> m Int
- requestAnimationFrame_ :: MonadDOM m => Window -> RequestAnimationFrameCallback -> m ()
- cancelAnimationFrame :: MonadDOM m => Window -> Int -> m ()
- postMessage :: (MonadDOM m, ToJSVal message, ToJSString targetOrigin, IsGObject transfer) => Window -> message -> targetOrigin -> [transfer] -> m ()
- captureEvents :: MonadDOM m => Window -> m ()
- releaseEvents :: MonadDOM m => Window -> m ()
- getComputedStyle :: (MonadDOM m, IsElement element, ToJSString pseudoElement) => Window -> element -> Maybe pseudoElement -> m CSSStyleDeclaration
- getComputedStyle_ :: (MonadDOM m, IsElement element, ToJSString pseudoElement) => Window -> element -> Maybe pseudoElement -> m ()
- matchMedia :: (MonadDOM m, ToJSString query) => Window -> query -> m MediaQueryList
- matchMedia_ :: (MonadDOM m, ToJSString query) => Window -> query -> m ()
- moveTo :: MonadDOM m => Window -> Maybe Float -> Maybe Float -> m ()
- moveBy :: MonadDOM m => Window -> Maybe Float -> Maybe Float -> m ()
- resizeTo :: MonadDOM m => Window -> Maybe Float -> Maybe Float -> m ()
- resizeBy :: MonadDOM m => Window -> Maybe Float -> Maybe Float -> m ()
- scrollOpt :: MonadDOM m => Window -> Maybe ScrollToOptions -> m ()
- scroll :: MonadDOM m => Window -> Double -> Double -> m ()
- scrollToOpt :: MonadDOM m => Window -> Maybe ScrollToOptions -> m ()
- scrollTo :: MonadDOM m => Window -> Double -> Double -> m ()
- scrollByOpt :: MonadDOM m => Window -> Maybe ScrollToOptions -> m ()
- scrollBy :: MonadDOM m => Window -> Double -> Double -> m ()
- getSelection :: MonadDOM m => Window -> m (Maybe Selection)
- getSelection_ :: MonadDOM m => Window -> m ()
- getSelectionUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Selection
- getSelectionUnchecked :: MonadDOM m => Window -> m Selection
- find :: (MonadDOM m, ToJSString string) => Window -> Maybe string -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> m Bool
- find_ :: (MonadDOM m, ToJSString string) => Window -> Maybe string -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> m ()
- webkitRequestAnimationFrame :: MonadDOM m => Window -> RequestAnimationFrameCallback -> m Int
- webkitRequestAnimationFrame_ :: MonadDOM m => Window -> RequestAnimationFrameCallback -> m ()
- webkitCancelAnimationFrame :: MonadDOM m => Window -> Int -> m ()
- webkitCancelRequestAnimationFrame :: MonadDOM m => Window -> Int -> m ()
- getMatchedCSSRules :: (MonadDOM m, IsElement element, ToJSString pseudoElement) => Window -> Maybe element -> Maybe pseudoElement -> m CSSRuleList
- getMatchedCSSRules_ :: (MonadDOM m, IsElement element, ToJSString pseudoElement) => Window -> Maybe element -> Maybe pseudoElement -> m ()
- showModalDialog :: (MonadDOM m, ToJSString url, ToJSVal dialogArgs, ToJSString featureArgs) => Window -> url -> Maybe dialogArgs -> Maybe featureArgs -> m JSVal
- showModalDialog_ :: (MonadDOM m, ToJSString url, ToJSVal dialogArgs, ToJSString featureArgs) => Window -> url -> Maybe dialogArgs -> Maybe featureArgs -> m ()
- webkitConvertPointFromPageToNode :: (MonadDOM m, IsNode node) => Window -> Maybe node -> Maybe WebKitPoint -> m WebKitPoint
- webkitConvertPointFromPageToNode_ :: (MonadDOM m, IsNode node) => Window -> Maybe node -> Maybe WebKitPoint -> m ()
- webkitConvertPointFromNodeToPage :: (MonadDOM m, IsNode node) => Window -> Maybe node -> Maybe WebKitPoint -> m WebKitPoint
- webkitConvertPointFromNodeToPage_ :: (MonadDOM m, IsNode node) => Window -> Maybe node -> Maybe WebKitPoint -> m ()
- collectMatchingElementsInFlatTree :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m NodeList
- collectMatchingElementsInFlatTree_ :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m ()
- matchingElementInFlatTree :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m (Maybe Element)
- matchingElementInFlatTree_ :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m ()
- matchingElementInFlatTreeUnsafe :: (MonadDOM m, IsNode scope, ToJSString selectors, HasCallStack) => Window -> scope -> selectors -> m Element
- matchingElementInFlatTreeUnchecked :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m Element
- getIndexedDB :: MonadDOM m => Window -> m IDBFactory
- getWebkitIndexedDB :: MonadDOM m => Window -> m IDBFactory
- getWebkitStorageInfo :: MonadDOM m => Window -> m StorageInfo
- getSpeechSynthesis :: MonadDOM m => Window -> m SpeechSynthesis
- getWindow :: MonadDOM m => Window -> m Window
- getSelf :: MonadDOM m => Window -> m Window
- getDocument :: MonadDOM m => Window -> m Document
- setName :: (MonadDOM m, ToJSString val) => Window -> val -> m ()
- getName :: (MonadDOM m, FromJSString result) => Window -> m result
- getLocation :: MonadDOM m => Window -> m Location
- getHistory :: MonadDOM m => Window -> m History
- getCustomElements :: MonadDOM m => Window -> m CustomElementRegistry
- getLocationbar :: MonadDOM m => Window -> m BarProp
- getMenubar :: MonadDOM m => Window -> m BarProp
- getPersonalbar :: MonadDOM m => Window -> m BarProp
- getScrollbars :: MonadDOM m => Window -> m BarProp
- getStatusbar :: MonadDOM m => Window -> m BarProp
- getToolbar :: MonadDOM m => Window -> m BarProp
- setStatus :: (MonadDOM m, ToJSString val) => Window -> val -> m ()
- getStatus :: (MonadDOM m, FromJSString result) => Window -> m result
- getClosed :: MonadDOM m => Window -> m Bool
- getFrames :: MonadDOM m => Window -> m Window
- getLength :: MonadDOM m => Window -> m Word
- getTop :: MonadDOM m => Window -> m (Maybe Window)
- getTopUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Window
- getTopUnchecked :: MonadDOM m => Window -> m Window
- getOpener :: MonadDOM m => Window -> m (Maybe Window)
- getOpenerUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Window
- getOpenerUnchecked :: MonadDOM m => Window -> m Window
- getParent :: MonadDOM m => Window -> m (Maybe Window)
- getParentUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Window
- getParentUnchecked :: MonadDOM m => Window -> m Window
- getFrameElement :: MonadDOM m => Window -> m (Maybe Element)
- getFrameElementUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Element
- getFrameElementUnchecked :: MonadDOM m => Window -> m Element
- getNavigator :: MonadDOM m => Window -> m Navigator
- getApplicationCache :: MonadDOM m => Window -> m ApplicationCache
- getSessionStorage :: MonadDOM m => Window -> m Storage
- getLocalStorage :: MonadDOM m => Window -> m Storage
- getScreen :: MonadDOM m => Window -> m Screen
- getInnerHeight :: MonadDOM m => Window -> m Int
- getInnerWidth :: MonadDOM m => Window -> m Int
- getScrollX :: MonadDOM m => Window -> m Double
- getPageXOffset :: MonadDOM m => Window -> m Double
- getScrollY :: MonadDOM m => Window -> m Double
- getPageYOffset :: MonadDOM m => Window -> m Double
- getScreenX :: MonadDOM m => Window -> m Int
- getScreenY :: MonadDOM m => Window -> m Int
- getOuterWidth :: MonadDOM m => Window -> m Int
- getOuterHeight :: MonadDOM m => Window -> m Int
- getDevicePixelRatio :: MonadDOM m => Window -> m Double
- getOrientation :: MonadDOM m => Window -> m Int
- getEvent :: MonadDOM m => Window -> m Event
- setDefaultStatus :: (MonadDOM m, ToJSString val) => Window -> val -> m ()
- getDefaultStatus :: (MonadDOM m, FromJSString result) => Window -> m result
- setDefaultstatus :: (MonadDOM m, ToJSString val) => Window -> val -> m ()
- getDefaultstatus :: (MonadDOM m, FromJSString result) => Window -> m result
- getOffscreenBuffering :: MonadDOM m => Window -> m Bool
- getScreenLeft :: MonadDOM m => Window -> m Int
- getScreenTop :: MonadDOM m => Window -> m Int
- getClientInformation :: MonadDOM m => Window -> m Navigator
- getStyleMedia :: MonadDOM m => Window -> m StyleMedia
- gestureChange :: EventName Window UIEvent
- gestureEnd :: EventName Window UIEvent
- gestureStart :: EventName Window UIEvent
- deviceMotion :: EventName Window DeviceMotionEvent
- deviceOrientation :: EventName Window DeviceOrientationEvent
- webKitDeviceProximity :: EventName Window DeviceProximityEvent
- webKitAnimationEnd :: EventName Window AnimationEvent
- webKitAnimationIteration :: EventName Window AnimationEvent
- webKitAnimationStart :: EventName Window AnimationEvent
- webKitTransitionEnd :: EventName Window TransitionEvent
- openDatabase :: (MonadDOM m, ToJSString name, ToJSString version, ToJSString displayName) => Window -> name -> version -> displayName -> Word -> m Database
Documentation
Functions for this inteface are in JSDOM.Window. Base interface functions are in:
Instances
PToJSVal Window Source # | |
Defined in JSDOM.Types | |
PFromJSVal Window Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> Window # | |
ToJSVal Window Source # | |
FromJSVal Window Source # | |
MakeObject Window Source # | |
Defined in JSDOM.Types makeObject :: Window -> JSM Object # | |
IsWindowOrWorkerGlobalScope Window Source # | |
Defined in JSDOM.Types | |
IsWindowEventHandlers Window Source # | |
Defined in JSDOM.Types | |
IsGlobalPerformance Window Source # | |
Defined in JSDOM.Types | |
IsGlobalEventHandlers Window Source # | |
Defined in JSDOM.Types | |
IsGlobalCrypto Window Source # | |
Defined in JSDOM.Types | |
IsEventTarget Window Source # | |
Defined in JSDOM.Types | |
IsMessageEventSource Window Source # | |
Defined in JSDOM.Types | |
IsGObject Window Source # | |
Defined in JSDOM.Types |
gTypeWindow :: JSM GType Source #
decodeURI :: (MonadDOM m, ToJSString uri, FromJSString result) => Window -> uri -> m result Source #
decodeURI_ :: (MonadDOM m, ToJSString uri) => Window -> uri -> m () Source #
decodeURIComponent :: (MonadDOM m, ToJSString uri, FromJSString result) => Window -> uri -> m result Source #
decodeURIComponent_ :: (MonadDOM m, ToJSString uri) => Window -> uri -> m () Source #
encodeURI :: (MonadDOM m, ToJSString uri, FromJSString result) => Window -> uri -> m result Source #
encodeURI_ :: (MonadDOM m, ToJSString uri) => Window -> uri -> m () Source #
encodeURIComponent :: (MonadDOM m, ToJSString uri, FromJSString result) => Window -> uri -> m result Source #
encodeURIComponent_ :: (MonadDOM m, ToJSString uri) => Window -> uri -> m () Source #
openDatabase_ :: (MonadDOM m, ToJSString name, ToJSString version, ToJSString displayName) => Window -> name -> version -> displayName -> Word -> Maybe DatabaseCallback -> m () Source #
openDatabaseUnsafe :: (MonadDOM m, ToJSString name, ToJSString version, ToJSString displayName, HasCallStack) => Window -> name -> version -> displayName -> Word -> Maybe DatabaseCallback -> m Database Source #
openDatabaseUnchecked :: (MonadDOM m, ToJSString name, ToJSString version, ToJSString displayName) => Window -> name -> version -> displayName -> Word -> Maybe DatabaseCallback -> m Database Source #
open :: (MonadDOM m, ToJSString url, ToJSString target, ToJSString features) => Window -> Maybe url -> Maybe target -> Maybe features -> m (Maybe Window) Source #
open_ :: (MonadDOM m, ToJSString url, ToJSString target, ToJSString features) => Window -> Maybe url -> Maybe target -> Maybe features -> m () Source #
openUnsafe :: (MonadDOM m, ToJSString url, ToJSString target, ToJSString features, HasCallStack) => Window -> Maybe url -> Maybe target -> Maybe features -> m Window Source #
openUnchecked :: (MonadDOM m, ToJSString url, ToJSString target, ToJSString features) => Window -> Maybe url -> Maybe target -> Maybe features -> m Window Source #
alertNoMessage :: MonadDOM m => Window -> m () Source #
prompt :: (MonadDOM m, ToJSString message, ToJSString defaultValue, FromJSString result) => Window -> Maybe message -> Maybe defaultValue -> m (Maybe result) Source #
prompt_ :: (MonadDOM m, ToJSString message, ToJSString defaultValue) => Window -> Maybe message -> Maybe defaultValue -> m () Source #
promptUnsafe :: (MonadDOM m, ToJSString message, ToJSString defaultValue, HasCallStack, FromJSString result) => Window -> Maybe message -> Maybe defaultValue -> m result Source #
promptUnchecked :: (MonadDOM m, ToJSString message, ToJSString defaultValue, FromJSString result) => Window -> Maybe message -> Maybe defaultValue -> m result Source #
requestAnimationFrame :: MonadDOM m => Window -> RequestAnimationFrameCallback -> m Int Source #
requestAnimationFrame_ :: MonadDOM m => Window -> RequestAnimationFrameCallback -> m () Source #
postMessage :: (MonadDOM m, ToJSVal message, ToJSString targetOrigin, IsGObject transfer) => Window -> message -> targetOrigin -> [transfer] -> m () Source #
captureEvents :: MonadDOM m => Window -> m () Source #
releaseEvents :: MonadDOM m => Window -> m () Source #
getComputedStyle :: (MonadDOM m, IsElement element, ToJSString pseudoElement) => Window -> element -> Maybe pseudoElement -> m CSSStyleDeclaration Source #
getComputedStyle_ :: (MonadDOM m, IsElement element, ToJSString pseudoElement) => Window -> element -> Maybe pseudoElement -> m () Source #
matchMedia :: (MonadDOM m, ToJSString query) => Window -> query -> m MediaQueryList Source #
matchMedia_ :: (MonadDOM m, ToJSString query) => Window -> query -> m () Source #
scrollToOpt :: MonadDOM m => Window -> Maybe ScrollToOptions -> m () Source #
scrollByOpt :: MonadDOM m => Window -> Maybe ScrollToOptions -> m () Source #
getSelection_ :: MonadDOM m => Window -> m () Source #
getSelectionUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Selection Source #
find :: (MonadDOM m, ToJSString string) => Window -> Maybe string -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> m Bool Source #
find_ :: (MonadDOM m, ToJSString string) => Window -> Maybe string -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> m () Source #
webkitRequestAnimationFrame :: MonadDOM m => Window -> RequestAnimationFrameCallback -> m Int Source #
webkitRequestAnimationFrame_ :: MonadDOM m => Window -> RequestAnimationFrameCallback -> m () Source #
getMatchedCSSRules :: (MonadDOM m, IsElement element, ToJSString pseudoElement) => Window -> Maybe element -> Maybe pseudoElement -> m CSSRuleList Source #
getMatchedCSSRules_ :: (MonadDOM m, IsElement element, ToJSString pseudoElement) => Window -> Maybe element -> Maybe pseudoElement -> m () Source #
showModalDialog :: (MonadDOM m, ToJSString url, ToJSVal dialogArgs, ToJSString featureArgs) => Window -> url -> Maybe dialogArgs -> Maybe featureArgs -> m JSVal Source #
showModalDialog_ :: (MonadDOM m, ToJSString url, ToJSVal dialogArgs, ToJSString featureArgs) => Window -> url -> Maybe dialogArgs -> Maybe featureArgs -> m () Source #
webkitConvertPointFromPageToNode :: (MonadDOM m, IsNode node) => Window -> Maybe node -> Maybe WebKitPoint -> m WebKitPoint Source #
webkitConvertPointFromPageToNode_ :: (MonadDOM m, IsNode node) => Window -> Maybe node -> Maybe WebKitPoint -> m () Source #
webkitConvertPointFromNodeToPage :: (MonadDOM m, IsNode node) => Window -> Maybe node -> Maybe WebKitPoint -> m WebKitPoint Source #
webkitConvertPointFromNodeToPage_ :: (MonadDOM m, IsNode node) => Window -> Maybe node -> Maybe WebKitPoint -> m () Source #
collectMatchingElementsInFlatTree :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m NodeList Source #
collectMatchingElementsInFlatTree_ :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m () Source #
matchingElementInFlatTree :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m (Maybe Element) Source #
matchingElementInFlatTree_ :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m () Source #
matchingElementInFlatTreeUnsafe :: (MonadDOM m, IsNode scope, ToJSString selectors, HasCallStack) => Window -> scope -> selectors -> m Element Source #
matchingElementInFlatTreeUnchecked :: (MonadDOM m, IsNode scope, ToJSString selectors) => Window -> scope -> selectors -> m Element Source #
getWebkitIndexedDB :: MonadDOM m => Window -> m IDBFactory Source #
getWebkitStorageInfo :: MonadDOM m => Window -> m StorageInfo Source #
getSpeechSynthesis :: MonadDOM m => Window -> m SpeechSynthesis Source #
getCustomElements :: MonadDOM m => Window -> m CustomElementRegistry Source #
getTopUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Window Source #
getOpenerUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Window Source #
getParentUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Window Source #
getFrameElementUnsafe :: (MonadDOM m, HasCallStack) => Window -> m Element Source #
getApplicationCache :: MonadDOM m => Window -> m ApplicationCache Source #
setDefaultStatus :: (MonadDOM m, ToJSString val) => Window -> val -> m () Source #
getDefaultStatus :: (MonadDOM m, FromJSString result) => Window -> m result Source #
setDefaultstatus :: (MonadDOM m, ToJSString val) => Window -> val -> m () Source #
getDefaultstatus :: (MonadDOM m, FromJSString result) => Window -> m result Source #
getStyleMedia :: MonadDOM m => Window -> m StyleMedia Source #
openDatabase :: (MonadDOM m, ToJSString name, ToJSString version, ToJSString displayName) => Window -> name -> version -> displayName -> Word -> m Database Source #