miso
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Subscription.Window

Contents

Description

 
Synopsis

Subscription

windowSub :: MisoString -> Decoder r -> (r -> action) -> Sub action Source #

windowSub eventName decoder toAction provides a subscription to listen to window level events.

windowCoordsSub :: ((Int, Int) -> action) -> Sub action Source #

Captures window coordinates changes as they occur and writes them to an event sink

windowPointerMoveSub :: (PointerEvent -> action) -> Sub action Source #

window.addEventListener ("pointermove", (event) => handle(event)) A Sub to handle PointerEvents on window

windowSubWithOptions :: Options -> MisoString -> Decoder r -> (r -> action) -> Sub action Source #

windowSubWithOptions options eventName decoder toAction provides a subscription to listen to window level events.