module JSDOM.Generated.PannerNode
(setPosition, setOrientation, setVelocity, setPanningModel,
getPanningModel, setDistanceModel, getDistanceModel,
setRefDistance, getRefDistance, setMaxDistance, getMaxDistance,
setRolloffFactor, getRolloffFactor, setConeInnerAngle,
getConeInnerAngle, setConeOuterAngle, getConeOuterAngle,
setConeOuterGain, getConeOuterGain, PannerNode(..),
gTypePannerNode)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName)
import JSDOM.Enums
setPosition ::
(MonadDOM m) => PannerNode -> Float -> Float -> Float -> m ()
setPosition self x y z
= liftDOM
(void
(self ^. jsf "setPosition" [toJSVal x, toJSVal y, toJSVal z]))
setOrientation ::
(MonadDOM m) => PannerNode -> Float -> Float -> Float -> m ()
setOrientation self x y z
= liftDOM
(void
(self ^. jsf "setOrientation" [toJSVal x, toJSVal y, toJSVal z]))
setVelocity ::
(MonadDOM m) => PannerNode -> Float -> Float -> Float -> m ()
setVelocity self x y z
= liftDOM
(void
(self ^. jsf "setVelocity" [toJSVal x, toJSVal y, toJSVal z]))
setPanningModel ::
(MonadDOM m) => PannerNode -> PanningModelType -> m ()
setPanningModel self val
= liftDOM (self ^. jss "panningModel" (toJSVal val))
getPanningModel :: (MonadDOM m) => PannerNode -> m PanningModelType
getPanningModel self
= liftDOM ((self ^. js "panningModel") >>= fromJSValUnchecked)
setDistanceModel ::
(MonadDOM m) => PannerNode -> DistanceModelType -> m ()
setDistanceModel self val
= liftDOM (self ^. jss "distanceModel" (toJSVal val))
getDistanceModel ::
(MonadDOM m) => PannerNode -> m DistanceModelType
getDistanceModel self
= liftDOM ((self ^. js "distanceModel") >>= fromJSValUnchecked)
setRefDistance :: (MonadDOM m) => PannerNode -> Double -> m ()
setRefDistance self val
= liftDOM (self ^. jss "refDistance" (toJSVal val))
getRefDistance :: (MonadDOM m) => PannerNode -> m Double
getRefDistance self
= liftDOM ((self ^. js "refDistance") >>= valToNumber)
setMaxDistance :: (MonadDOM m) => PannerNode -> Double -> m ()
setMaxDistance self val
= liftDOM (self ^. jss "maxDistance" (toJSVal val))
getMaxDistance :: (MonadDOM m) => PannerNode -> m Double
getMaxDistance self
= liftDOM ((self ^. js "maxDistance") >>= valToNumber)
setRolloffFactor :: (MonadDOM m) => PannerNode -> Double -> m ()
setRolloffFactor self val
= liftDOM (self ^. jss "rolloffFactor" (toJSVal val))
getRolloffFactor :: (MonadDOM m) => PannerNode -> m Double
getRolloffFactor self
= liftDOM ((self ^. js "rolloffFactor") >>= valToNumber)
setConeInnerAngle :: (MonadDOM m) => PannerNode -> Double -> m ()
setConeInnerAngle self val
= liftDOM (self ^. jss "coneInnerAngle" (toJSVal val))
getConeInnerAngle :: (MonadDOM m) => PannerNode -> m Double
getConeInnerAngle self
= liftDOM ((self ^. js "coneInnerAngle") >>= valToNumber)
setConeOuterAngle :: (MonadDOM m) => PannerNode -> Double -> m ()
setConeOuterAngle self val
= liftDOM (self ^. jss "coneOuterAngle" (toJSVal val))
getConeOuterAngle :: (MonadDOM m) => PannerNode -> m Double
getConeOuterAngle self
= liftDOM ((self ^. js "coneOuterAngle") >>= valToNumber)
setConeOuterGain :: (MonadDOM m) => PannerNode -> Double -> m ()
setConeOuterGain self val
= liftDOM (self ^. jss "coneOuterGain" (toJSVal val))
getConeOuterGain :: (MonadDOM m) => PannerNode -> m Double
getConeOuterGain self
= liftDOM ((self ^. js "coneOuterGain") >>= valToNumber)