Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- addEventListener :: (MonadDOM m, IsEventTarget self, ToJSString type', IsAddEventListenerOptionsOrBool options) => self -> type' -> Maybe EventListener -> options -> m ()
- removeEventListener :: (MonadDOM m, IsEventTarget self, ToJSString type', IsEventListenerOptionsOrBool options) => self -> type' -> Maybe EventListener -> options -> m ()
- dispatchEvent :: (MonadDOM m, IsEventTarget self, IsEvent event) => self -> event -> m Bool
- dispatchEvent_ :: (MonadDOM m, IsEventTarget self, IsEvent event) => self -> event -> m ()
- newtype EventTarget = EventTarget {}
- gTypeEventTarget :: JSM GType
- class IsGObject o => IsEventTarget o
- toEventTarget :: IsEventTarget o => o -> EventTarget
Documentation
addEventListener :: (MonadDOM m, IsEventTarget self, ToJSString type', IsAddEventListenerOptionsOrBool options) => self -> type' -> Maybe EventListener -> options -> m () Source #
removeEventListener :: (MonadDOM m, IsEventTarget self, ToJSString type', IsEventListenerOptionsOrBool options) => self -> type' -> Maybe EventListener -> options -> m () Source #
dispatchEvent :: (MonadDOM m, IsEventTarget self, IsEvent event) => self -> event -> m Bool Source #
dispatchEvent_ :: (MonadDOM m, IsEventTarget self, IsEvent event) => self -> event -> m () Source #
newtype EventTarget Source #
Functions for this inteface are in JSDOM.EventTarget.
Instances
PToJSVal EventTarget Source # | |
Defined in JSDOM.Types pToJSVal :: EventTarget -> JSVal # | |
PFromJSVal EventTarget Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> EventTarget # | |
ToJSVal EventTarget Source # | |
Defined in JSDOM.Types toJSVal :: EventTarget -> JSM JSVal # toJSValListOf :: [EventTarget] -> JSM JSVal # | |
FromJSVal EventTarget Source # | |
Defined in JSDOM.Types fromJSVal :: JSVal -> JSM (Maybe EventTarget) # fromJSValUnchecked :: JSVal -> JSM EventTarget # fromJSValListOf :: JSVal -> JSM (Maybe [EventTarget]) # fromJSValUncheckedListOf :: JSVal -> JSM [EventTarget] # | |
MakeObject EventTarget Source # | |
Defined in JSDOM.Types makeObject :: EventTarget -> JSM Object # | |
IsEventTarget EventTarget Source # | |
Defined in JSDOM.Types | |
IsGObject EventTarget Source # | |
Defined in JSDOM.Types typeGType :: EventTarget -> JSM GType |
class IsGObject o => IsEventTarget o Source #
Instances
toEventTarget :: IsEventTarget o => o -> EventTarget Source #