packages feed

ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/SpeechSynthesisVoice.hs

{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from speech-api (webref). Do not edit.
module GHCJS.DOM.JSFFI.Generated.SpeechSynthesisVoice
       (js_getVoiceURI, js_getName, js_getLang, js_getLocalService, js_getDefault, getVoiceURI, getName, getLang, getLocalService, getDefault, SpeechSynthesisVoice(..), gTypeSpeechSynthesisVoice)
       where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import GHCJS.Types (JSVal, JSString)
import GHCJS.Foreign (jsUndefined, jsNull)
import GHCJS.DOM.Types
import qualified GHCJS.DOM.Types as Types
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import GHCJS.DOM.JSFFI.Generated.Enums

foreign import javascript unsafe "(($1) => { return $1[\"voiceURI\"]; })"
        js_getVoiceURI :: SpeechSynthesisVoice -> IO JSString
-- | <https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI MDN SpeechSynthesisVoice.voiceURI documentation>
getVoiceURI :: (MonadDOM m, FromJSString result) => SpeechSynthesisVoice -> m result
getVoiceURI self = liftDOM ((fromJSString <$> (js_getVoiceURI (self))))

foreign import javascript unsafe "(($1) => { return $1[\"name\"]; })"
        js_getName :: SpeechSynthesisVoice -> IO JSString
-- | <https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name MDN SpeechSynthesisVoice.name documentation>
getName :: (MonadDOM m, FromJSString result) => SpeechSynthesisVoice -> m result
getName self = liftDOM ((fromJSString <$> (js_getName (self))))

foreign import javascript unsafe "(($1) => { return $1[\"lang\"]; })"
        js_getLang :: SpeechSynthesisVoice -> IO JSString
-- | <https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang MDN SpeechSynthesisVoice.lang documentation>
getLang :: (MonadDOM m, FromJSString result) => SpeechSynthesisVoice -> m result
getLang self = liftDOM ((fromJSString <$> (js_getLang (self))))

foreign import javascript unsafe "(($1) => { return $1[\"localService\"]; })"
        js_getLocalService :: SpeechSynthesisVoice -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService MDN SpeechSynthesisVoice.localService documentation>
getLocalService :: (MonadDOM m) => SpeechSynthesisVoice -> m Bool
getLocalService self = liftDOM ((js_getLocalService (self)))

foreign import javascript unsafe "(($1) => { return $1[\"default\"]; })"
        js_getDefault :: SpeechSynthesisVoice -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default MDN SpeechSynthesisVoice.default documentation>
getDefault :: (MonadDOM m) => SpeechSynthesisVoice -> m Bool
getDefault self = liftDOM ((js_getDefault (self)))